/* as per the uc-front-page.css file - footer layout breaks if we don't reproduce here */
* {
    margin: 0px;
    padding: 0px;
    border-radius: 0px;
}

/* default body background colour */
body {
    background: #fff;
}

/* section layouts and variations */

section {
   background: #fff;
   padding: 20px 0 0px;
   margin: 0;
   position: relative;
   z-index: 0;
}
section:last-of-type {
    margin-bottom: 30px;
}
.section--grey {
    background: #eee;
    padding-bottom:40px;
}

.section--notitle {
    padding-bottom: 30px;
    padding-top: 30px;
}
.section--nobottompadding {
    padding-bottom: 0;
}
.section--video {
    margin: -20px 0 0;
    padding: 0;
}
/**
    Provide some additional padding when the section is within the .content container
**/
.content.container section.section--grey {   
    padding: 25px;
    margin-bottom: 20px;
    margin-right: 0;
    margin-left: 0;    
    
}
.section--video .pattern-overlay {
    background-color: rgba(71, 71, 71, 0.59);
    padding: 175px 0 32px;
    min-height: 496px;
}
.section--video .buttonBar {
    display: none;
}
section.section--video {margin-bottom:0px;}
.section--fees h4 {
    margin-top: 20px;
}
body.secondary-nav .content {}
@media (min-width: 768px) {
    body .content {
        margin-top: 70px;
        margin-bottom: 40px;
    }
}



/* text alignment helpers */
/* @TODO - bootstrap also has text-left, text-right - replace instances of below with those, instead */
.left {
    text-align: left;
}
.right {
    text-align: right;
}
.center {
    text-align: center;
}
.sm-center {
    text-align: center;
}
.md-center,
.lg-center,
xl-center {
    text-align: inherit;
}

/* padding helpers */
.pad-0              {padding:0 !important;}
.pad-5              {padding:5px !important;}
.pad-10             {padding:10px !important;}
.pad-20             {padding:20px !important;}
.pad-right-0        {padding-right:0 !important;}
.pad-right-10       {padding-right:10px !important;}
.pad-right-20       {padding-right:20px !important;}
.pad-left-0        {padding-left:0 !important;}
.pad-left-10        {padding-left:10px !important;}
.pad-left-20        {padding-left:20px !important;}
.pad-top-0        {padding-top:0 !important;}
.pad-top-5       {padding-top:5px !important;}
.pad-top-10       {padding-top:10px !important;}
.pad-top-20       {padding-top:20px !important;}
.pad-bottom-0        {padding-bottom:0 !important;}
.pad-bottom-5        {padding-bottom:5px !important;}
.pad-bottom-10        {padding-bottom:10px !important;}
.pad-bottom-20        {padding-bottom:20px !important;}

/* margin helpers */
.margin-0              {margin:0 !important;}
.margin-5              {margin:5px !important;}
.margin-10             {margin:10px !important;}
.margin-20             {margin:20px !important;}
.margin-top-0       {margin-top: 0 !important;}
.margin-top-5       {margin-top: 5px !important;}
.margin-top-10       {margin-top: 10px !important;}
.margin-top-20      {margin-top: 20px !important;}
.margin-top-40      {margin-top: 40px !important;}
/*.margin-bottom-20   {margin-bottom: 30px;}*/
.margin-bottom-0   {margin-bottom: 0 !important;}
.margin-bottom-5   {margin-bottom: 5px !important;}
.margin-bottom-10   {margin-bottom: 10px !important;}
.margin-bottom-20   {margin-bottom: 20px !important;}
.margin-bottom-30   {margin-bottom: 30px !important;}
.margin-bottom-40   {margin-bottom: 40px !important;}
.margin-right-0       {margin-right: 0 !important;}
.margin-right-10       {margin-right: 10px !important;}
.margin-right-20      {margin-right: 20px !important;}
.margin-right-40      {margin-right: 40px !important;}
.margin-left-0       {margin-left: 0 !important;}
.margin-left-10       {margin-left: 10px !important;}
.margin-left-20      {margin-left: 20px !important;}
.margin-left-40      {margin-left: 40px !important;}

.sm-margin-top-0   {margin-left: 0;}
.sm-margin-top-10   {margin-top: 10px;}
.sm-margin-top-20   {margin-top: 20px;}
.sm-margin-top-40   {margin-top: 40px;}


/* medium */
@media (min-width: 768px) {
    .sm-margin-top-10,
    .sm-margin-top-20,
    .sm-margin-top-40 {
        margin-top: 0;
    }
    .sm-center {
        text-align: inherit;
    }
    .md-center {
        text-align: center;
    }
}

/* large */
@media (min-width: 992px) {
    .sm-center {
        text-align: inherit;
    }    
    .lg-center {
        text-align: center;
    }
}

/** Shuffle Gallery extensions **/
.gallerygrid.fixed,
.gallerygrid.fixed .gallery-item .gallery-item__inner{
    height:390px;    
}
/**
  Forces height of the description paragraph depending on the size of the image used in the gallery
**/
.gallerygrid.fixed .gallery-item.small-height .gallery-item__description {
    max-height:170px;
}

.gallerygrid.fixed .gallery-item.medium-height .gallery-item__description {
    max-height:100px;
}

.gallerygrid .gallery-item {
    margin-bottom:30px;
}
.gallerygrid .gallery-item .gallery-item__inner {
    border: 1px solid #cccccc;
    overflow:hidden;
}

.gallery-item__details {
    padding:10px;
}

.gallery-item__tags {}

.gallery-item__description {
    font-size:12px;
    font-size:1.2rem;
    height:auto;
    margin:0;
    padding:0;
}
p.gallery-item__description {
    margin:0;
    padding:0;
}
.gallery-item__title {
    font-weight:700;
}

.gallery-item .overlayer {
    position: absolute;
    bottom: 10px;
    /* left: 10px; */
    background-color: #cc0011;
    padding: 10px;
    border-radius: 17px;
    color: #ffffff;
}

@media (max-width: 900px) {
}
@media (max-width: 768px) {
    
    body .content {
/*        margin-top:40px;*/
    }    
    
    
    /** Shuffle Gallery extensions **/
    .gallerygrid.fixed,
    .gallerygrid.fixed .gallery-item .gallery-item__inner{
        height:auto;    
    }
    /**
      Forces height of the description paragraph depending on the size of the image used in the gallery
    **/
    .gallerygrid.fixed .gallery-item.small-height .gallery-item__description {
        max-height:auto;
    }

    .gallerygrid.fixed .gallery-item.medium-height .gallery-item__description {
        max-height:auto;
    }    
    
    .gallery-item img {
        height:auto;
        max-width:inherit;
        max-height:inherit;
        width:100%
    }
    .gallery-item__inner {
        height:auto;
        border: 1px solid #cccccc;
        overflow:hidden;
    }  
    .gallery-item {
        height:auto;
    }
    
    .gallery-item__description {
        font-size:12px;
        font-size:1.2rem;
        height:auto;
    }    
}    