/* SRA Projects plugin styles */

/* News grid equal-height square cards */
.news-list.row {
    display: flex;
    flex-wrap: wrap;
}

.news-list.row::before,
.news-list.row::after {
    display: none;
}

.news-list .newsBlock {
    display: flex;
    margin-bottom: 30px;
}

.newsDetails {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.newsDetails img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.newsExtra {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.newsExtra h3 {
    display: inline-block;
    margin: 10px 0 0 10px;
}

.newsWords {
    position: absolute;
    top: 60px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    display: block;
    opacity: 0;
    visibility: hidden;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    transition-delay: 0.15s;
    pointer-events: auto;
}

.newsDetails:hover .newsWords {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.news-list .newsBlock a,
.news-list .newsDetails a {
    pointer-events: none;
}

/* Centred news pagination */
.sra-news-pagination {
    text-align: center;
    margin: 20px 0;
    width: 100%;
}

.sra-news-pagination .counter {
    display: block;
    margin: 0 0 10px;
}

.sra-news-pagination ul.pagination,
.sra-news-pagination ul.pagination > li {
    float: none;
    display: inline-block;
}

.sra-news-pagination ul.pagination > li > a,
.sra-news-pagination ul.pagination > li > span {
    float: none;
    display: inline-block;
}

#catMenu {
    text-align: center;
    margin-bottom: 30px;
    padding: 0;
}

#catMenu ul.nav {
    display: inline-block;
    float: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

#catMenu ul.nav li {
    display: inline-block;
    margin: 0 10px;
}

#catMenu ul.nav li a {
    color: #919290;
    text-transform: capitalize;
    font-size: 0.95em;
    text-decoration: none;
}

#catMenu ul.nav li.current.active a,
#catMenu ul.nav li a:hover {
    font-weight: bold;
    color: #5a5a5a;
}

.chooseProject a {
    color: #919290;
    text-decoration: none;
}

.chooseProject a:hover {
    color: #5a5a5a;
}

.project-list.row {
    margin-left: -15px;
    margin-right: -15px;
}

.project-list .project-card {
    margin-bottom: 30px;
    overflow: hidden;
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease, width 0.7s ease, padding-left 0.7s ease, padding-right 0.7s ease, margin-bottom 0.7s ease;
}

.project-list .project-card .project-link {
    transition: transform 0.7s ease, opacity 0.7s ease;
}

/* Stagger cards as they reappear after a filter change. */
.project-list.is-filtering .project-card {
    transition-delay: 0s;
}

.project-list .project-card.is-hidden {
    opacity: 0;
    visibility: hidden;
    width: 0;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 0;
    /* Scale the inner link down so the box appears to shrink from the inside */
}

.project-list .project-card.is-hidden .project-link {
    transform: scale(0.65);
    opacity: 0;
}

.project-grid-empty {
    text-align: center;
    color: #919290;
    margin: 30px 0;
}

.project-list .project-card .project-link {
    display: block;
    width: 100%;
}

.project-list .project-card .project-details {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
}

.project-list .project-card .project-details img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: saturate(20%);
    -webkit-filter: saturate(20%);
    transition: filter 0.3s ease;
}

.project-list .project-card .project-details:hover img {
    filter: saturate(100%);
    -webkit-filter: saturate(100%);
}

.project-list .project-card .project-details .project-overlay {
    display: none;
}

.project-list .project-card .project-details .project-title-wrap {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    padding: 0 20px;
    pointer-events: none;
}

.project-list .project-card .project-details:hover .project-title-wrap {
    display: block;
}

.project-list .project-card .project-details .project-title-wrap .project-title {
    display: inline-block;
    font-weight: normal;
    color: #fff;
    margin: 10px 5px 5px 5px;
    background-color: #000;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 5px 10px 5px;
    font-size: 1.5em;
    line-height: 120%;
    text-shadow: 2px 2px 4px #000000;
}

/* Legacy project-thumb / projectName classes kept for any other usages */
.project-card {
    margin-bottom: 30px;
}

.project-link {
    display: block;
    position: relative;
}

.project-thumb {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    width: 100%;
}

.project-thumb img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-filter: saturate(20%);
    filter: saturate(20%);
    transition: filter 0.3s ease;
}

.project-thumb:hover img {
    -webkit-filter: saturate(100%);
    filter: saturate(100%);
}

.projectName {
    display: none;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding-left: 20px;
    padding-right: 20px;
    pointer-events: none;
}

.project-thumb:hover .projectName {
    display: block;
}

.projectName h3 {
    font-weight: normal;
    color: #fff;
    margin: 10px 5px 5px 5px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    font-size: 1.5em;
    line-height: 120%;
    text-shadow: 2px 2px 4px #000000;
}

.allProjectDetails {
    font-size: 0.9em;
    color: #919290;
    margin-top: 30px;
}

.projectDetails {
    border-top: 1px solid #a7a8a6;
}

.projectDetails p {
    font-size: 0.9em;
    color: #919290;
}

.projectSpecDetail {
    margin-left: 60px;
    font-size: 0.9em;
    color: #919290;
    font-weight: bold;
}

.projectSpecLine {
    float: left;
    color: #919290;
    font-size: 0.9em;
}

h2.projectHeader {
    font-size: 2em;
    color: #919290;
}

.projectDescription p {
    font-size: 0.9em;
    color: #919290;
}

.projectImages {
    margin-bottom: 30px;
}

.projectImages #mainImage {
    height: 300px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    margin-bottom: 30px;
    display: none;
}

@media (min-width: 768px) {
    .projectImages #mainImage {
        height: 350px;
        display: block;
    }
}

@media (min-width: 992px) {
    .projectImages #mainImage {
        height: 400px;
    }
}

@media (min-width: 1200px) {
    .projectImages #mainImage {
        height: 500px;
    }
}

.projectImages .mainImage {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.projectImages .mainImage:first-child,
.projectImages .mainImage.active {
    display: block;
}

.projectImages #mainImage img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    /* Span the same width as the Bootstrap .row above by using negative margins
       matching the parent column padding. */
    margin-left: -15px;
    margin-right: -15px;
}

.thumbnail-row .thumbnailImage {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

@media (max-width: 1199px) {
    .thumbnail-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .thumbnail-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .thumbnail-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .thumbnail-row {
        grid-template-columns: 1fr;
    }
}

.thumbnailImage {
    margin-bottom: 30px;
    cursor: pointer;
}

.thumbnailImage img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-filter: saturate(20%);
    filter: saturate(20%);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.thumbnailImage:hover img,
.thumbnailImage.active img {
    -webkit-filter: saturate(100%);
    filter: saturate(100%);
    opacity: 1;
}

/* Cycle2 slideshow */
.cycle-slideshow {
    width: 100%;
    margin: auto;
    border: 1px solid #bbb;
    background: #ffc;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .cycle-slideshow {
        height: 350px;
        display: block;
    }
}

@media (min-width: 992px) {
    .cycle-slideshow {
        height: 400px;
    }
}

@media (min-width: 1200px) {
    .cycle-slideshow {
        height: 500px;
    }
}

.cycle-slideshow img {
    min-width: 100%;
    min-height: 100%;
    display: block;
}

.cycle-prev,
.cycle-next {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    z-index: 999;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    text-align: center;
    line-height: 40px;
    font-family: 'FontAwesome';
    font-size: 24px;
    font-style: normal;
    font-weight: normal;
    text-decoration: none;
}

.cycle-prev:before {
    content: "\f104";
}

.cycle-next:before {
    content: "\f105";
}

.cycle-prev {
    left: 10px;
}

.cycle-next {
    right: 10px;
}

#awardsArea {
    margin-top: 40px;
}

.awardsBox {
    margin-bottom: 15px;
}

.awardsYear {
    font-weight: bold;
    color: #919290;
}

.awardsProject {
    font-style: italic;
}

.awardsAwarder {
    color: #666;
}

.awardsDetails p {
    margin-bottom: 0;
}
