/* Campus gallery */

.gallery-page {
    color: #536779;
    background: #f4f8fb;
}

.gallery-page .gallery-hero {
    min-height: 330px;
    padding-top: 82px;
    padding-bottom: 62px;
    background-position: center 48%;
}

.gallery-hero__intro {
    max-width: 650px;
    margin: 13px 0 0;
    color: rgba(255,255,255,.8);
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.gallery-page .page-hero .title-menu {
    margin-top: 16px;
}

.gallery-collection {
    padding: 82px 0 96px;
    background:
        radial-gradient(circle at 8% 8%, rgba(32,185,223,.08), transparent 23%),
        linear-gradient(#f7fafc, #f3f7fa);
}

.gallery-collection__header {
    display: flex;
    margin-bottom: 40px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.gallery-collection__header > div:first-child {
    max-width: 735px;
}

.gallery-kicker {
    display: inline-flex;
    margin-bottom: 9px;
    align-items: center;
    gap: 8px;
    color: #0d5e8f;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.gallery-kicker i {
    color: #20b9df;
    font-size: 13px;
}

.gallery-collection__header h2 {
    margin: 0;
    color: #10263b;
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.03em;
}

.gallery-collection__header p {
    max-width: 690px;
    margin: 12px 0 0;
    color: #627386;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.75;
}

.gallery-count {
    display: flex;
    min-width: 155px;
    min-height: 72px;
    padding: 12px 19px;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #dce7ee;
    border-radius: 9px;
    box-shadow: 0 10px 30px rgba(10,45,70,.06);
}

.gallery-count strong {
    color: #20b9df;
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.gallery-count span {
    max-width: 65px;
    color: #536779;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
}

.gallery-grid {
    margin-right: -13px;
    margin-left: -13px;
}

.gallery-grid__item {
    margin-bottom: 26px;
    padding-right: 13px;
    padding-left: 13px;
}

.album-card {
    position: relative;
    display: block;
    height: 460px;
    overflow: hidden;
    color: #ffffff;
    background: #0b2b4b;
    border: 1px solid rgba(10,45,70,.1);
    border-radius: 12px;
    box-shadow: 0 18px 46px rgba(10,45,70,.13);
    transform: translateY(0);
    transition: box-shadow .35s ease, transform .35s ease;
}

.album-card:hover,
.album-card:focus,
.album-card:visited {
    color: #ffffff;
}

.album-card:hover,
.album-card:focus-visible {
    box-shadow: 0 24px 56px rgba(10,45,70,.2);
    transform: translateY(-5px);
}

.album-card:focus-visible {
    outline: 3px solid #20b9df;
    outline-offset: 3px;
}

.album-card__image,
.album-card__image img,
.album-card__shade {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.album-card__image img {
    object-fit: cover;
    object-position: center;
    transition: transform .75s cubic-bezier(.2,.65,.3,1);
}

.album-card:hover .album-card__image img,
.album-card:focus .album-card__image img {
    transform: scale(1.055);
}

.album-card__shade {
    background: linear-gradient(180deg, rgba(4,24,42,.18) 18%, rgba(4,24,42,.08) 42%, rgba(4,24,42,.94) 100%);
}

.album-card__topline {
    position: absolute;
    top: 20px;
    right: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.album-card__count {
    display: inline-flex;
    min-height: 35px;
    padding: 0 12px;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    background: rgba(6,29,51,.74);
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 20px;
    backdrop-filter: blur(7px);
}

.album-card__count i {
    color: #f4b844;
}

.album-card__open {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #061d33;
    background: #f4b844;
    border-radius: 50%;
    box-shadow: 0 7px 20px rgba(0,0,0,.16);
    transition: background .3s ease, transform .3s ease;
}

.album-card:hover .album-card__open,
.album-card:focus .album-card__open {
    background: #20b9df;
    transform: rotate(-35deg);
}

.album-card__content {
    position: absolute;
    right: 28px;
    bottom: 27px;
    left: 28px;
    display: block;
}

.album-card__label {
    display: block;
    margin-bottom: 7px;
    color: #f4b844;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.album-card__content strong {
    display: block;
    max-width: 470px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,.28);
}

.album-card__link {
    display: inline-flex;
    margin-top: 13px;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.84);
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.album-card__link i {
    color: #20b9df;
    transition: transform .3s ease;
}

.album-card:hover .album-card__link i,
.album-card:focus .album-card__link i {
    transform: translateX(5px);
}

.gallery-note {
    display: flex;
    margin-top: 20px;
    padding: 24px 27px;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border: 1px solid #dce7ee;
    border-left: 4px solid #20b9df;
    border-radius: 9px;
    box-shadow: 0 12px 35px rgba(10,45,70,.06);
}

.gallery-note__icon {
    display: inline-flex;
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    color: #0d5e8f;
    font-size: 18px;
    background: #eaf7fb;
    border-radius: 50%;
}

.gallery-note div {
    flex: 1;
}

.gallery-note strong {
    display: block;
    margin-bottom: 3px;
    color: #10263b;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.gallery-note p {
    margin: 0;
    color: #6a7c8d;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

.gallery-note > a {
    display: inline-flex;
    min-height: 42px;
    padding: 0 16px;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    background: #0b2b4b;
    border-radius: 6px;
}

.gallery-note > a:hover,
.gallery-note > a:focus,
.gallery-note > a:visited {
    color: #ffffff;
}

.gallery-note > a:hover {
    background: #0d5e8f;
}

.gallery-empty {
    padding: 70px 25px;
    color: #627386;
    text-align: center;
    background: #ffffff;
    border: 1px solid #dce7ee;
    border-radius: 12px;
}

.gallery-empty > span {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    color: #0d5e8f;
    font-size: 23px;
    background: #eaf7fb;
    border-radius: 50%;
}

.gallery-empty h2 {
    margin: 18px 0 7px;
    color: #10263b;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
}

.gallery-empty p {
    margin: 0;
}

@media (max-width: 991px) {
    .gallery-page .gallery-hero {
        min-height: 290px;
        padding-top: 75px;
    }

    .album-card {
        height: 380px;
    }

    .album-card__content strong {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .gallery-page .gallery-hero {
        min-height: 270px;
        padding: 55px 0 45px;
    }

    .gallery-hero__intro {
        max-width: 92%;
        font-size: 13px;
    }

    .gallery-collection {
        padding: 58px 0 70px;
    }

    .gallery-collection__header {
        display: block;
        margin-bottom: 30px;
    }

    .gallery-collection__header h2 {
        font-size: 29px;
    }

    .gallery-collection__header p {
        font-size: 14px;
    }

    .gallery-count {
        display: inline-flex;
        min-height: 60px;
        margin-top: 20px;
    }

    .gallery-count strong {
        font-size: 25px;
    }

    .album-card {
        height: min(112vw, 480px);
    }

    .album-card__content {
        right: 22px;
        bottom: 22px;
        left: 22px;
    }

    .album-card__content strong {
        font-size: 21px;
    }

    .gallery-note {
        display: block;
        padding: 23px;
    }

    .gallery-note div {
        margin: 14px 0 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .album-card,
    .album-card__image img,
    .album-card__open,
    .album-card__link i {
        transition: none;
    }
}
