.cloud-gallery {
    --gallery-green: #173f25;
    --gallery-green-light: #5d8d51;
    --gallery-gold: #d8aa35;
    --gallery-cream: #faf7ed;
    overflow: hidden;
    color: #334d3a;
}

.gallery-cloud-hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 25%, rgba(216, 170, 53, .19), transparent 27%),
        linear-gradient(135deg, #fdfbf4 0%, #eff4e6 52%, #e0ead6 100%);
}

.gallery-cloud-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(55, 91, 58, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 91, 58, .045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to right, #000, transparent 72%);
}

.gallery-cloud-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
    gap: clamp(50px, 7vw, 100px);
    align-items: center;
    padding-top: 90px;
    padding-bottom: 90px;
}

.gallery-cloud-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--gallery-green-light);
    font: 700 .72rem "Montserrat", sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.gallery-cloud-copy h1 {
    max-width: 720px;
    margin: 0;
    color: var(--gallery-green);
    font: 400 clamp(3.5rem, 6.5vw, 6.7rem)/.92 "Cormorant Garamond", serif;
}

.gallery-cloud-copy > p {
    max-width: 650px;
    margin: 28px 0 32px;
    color: #5e7162;
    font: 400 1.05rem/1.8 "Montserrat", sans-serif;
}

.gallery-cloud-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gallery-cloud-primary,
.gallery-cloud-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 14px 21px;
    border-radius: 999px;
    font: 600 .82rem "Montserrat", sans-serif;
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-cloud-primary {
    background: var(--gallery-green);
    color: #fff;
    box-shadow: 0 14px 32px rgba(23, 63, 37, .2);
}

.gallery-cloud-secondary {
    border: 1px solid rgba(23, 63, 37, .22);
    background: rgba(255, 255, 255, .55);
    color: var(--gallery-green);
}

.gallery-cloud-primary:hover,
.gallery-cloud-secondary:hover {
    transform: translateY(-3px);
}

.gallery-cloud-primary:hover {
    color: #fff;
    box-shadow: 0 18px 38px rgba(23, 63, 37, .27);
}

.gallery-cloud-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    color: #748176;
    font-size: .76rem;
}

.gallery-cloud-note i {
    color: #4285f4;
    font-size: 1.15rem;
}

.gallery-cloud-mosaic {
    display: grid;
    height: 560px;
    grid-template-columns: 1.25fr .75fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    transform: rotate(1.5deg);
}

.gallery-cloud-mosaic figure {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, .78);
    border-radius: 24px;
    background: #dce6d5;
    box-shadow: 0 22px 55px rgba(35, 70, 43, .15);
}

.gallery-cloud-mosaic .gallery-mosaic-main {
    grid-row: 1 / 3;
}

.gallery-cloud-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.gallery-cloud-mosaic figure:hover img {
    transform: scale(1.045);
}

.gallery-cloud-mosaic figcaption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(14, 50, 27, .72);
    color: #fff;
    font-size: .78rem;
    backdrop-filter: blur(8px);
}

.gallery-years-section {
    padding: 105px 0;
    background: #fff;
}

.gallery-section-heading {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.gallery-section-heading > span {
    color: var(--gallery-green-light);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.gallery-section-heading h2 {
    margin: 10px 0 12px;
    color: var(--gallery-green);
    font: 400 clamp(2.6rem, 5vw, 4.5rem)/1 "Cormorant Garamond", serif;
}

.gallery-section-heading p {
    color: #6b7b6e;
}

.gallery-year-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.gallery-year-card {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    border-radius: 28px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 20px 50px rgba(25, 60, 35, .13);
    isolation: isolate;
}

.gallery-year-card img,
.gallery-year-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gallery-year-card img {
    z-index: -2;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.gallery-year-overlay {
    z-index: -1;
    background: linear-gradient(180deg, rgba(5, 25, 12, .05) 20%, rgba(5, 29, 14, .9) 100%);
}

.gallery-year-content {
    position: absolute;
    right: 34px;
    bottom: 34px;
    left: 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gallery-year-content small {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.gallery-year-content strong {
    font: 400 clamp(4.5rem, 8vw, 7.5rem)/.85 "Cormorant Garamond", serif;
}

.gallery-year-content > span {
    margin-top: 14px;
}

.gallery-year-content b {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 11px 17px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: .78rem;
    backdrop-filter: blur(8px);
}

.gallery-year-card:hover {
    color: #fff;
}

.gallery-year-card:hover img {
    transform: scale(1.055);
}

.gallery-archive-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    margin-top: 55px;
    padding: 34px 38px;
    border-radius: 26px;
    background: linear-gradient(135deg, #173f25, #285e34);
    color: #fff;
    box-shadow: 0 20px 48px rgba(23, 63, 37, .18);
}

.gallery-archive-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
    color: #f0cf71;
    font-size: 1.45rem;
}

.gallery-archive-banner span {
    color: #c6d7c7;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.gallery-archive-banner h2 {
    margin: 5px 0;
    font: 400 2rem "Cormorant Garamond", serif;
}

.gallery-archive-banner p {
    margin: 0;
    color: #d7e3d8;
    font-size: .86rem;
}

.gallery-archive-banner > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--gallery-green);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .gallery-cloud-hero-inner {
        grid-template-columns: 1fr;
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .gallery-cloud-mosaic {
        width: min(100%, 720px);
        height: 500px;
        margin: 0 auto;
    }

    .gallery-archive-banner {
        grid-template-columns: auto 1fr;
    }

    .gallery-archive-banner > a {
        grid-column: 1 / 3;
        justify-self: start;
    }
}

@media (max-width: 767px) {
    .gallery-cloud-hero-inner {
        padding: 55px 18px;
    }

    .gallery-cloud-copy h1 {
        font-size: 3.7rem;
    }

    .gallery-cloud-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .gallery-cloud-primary,
    .gallery-cloud-secondary {
        width: 100%;
    }

    .gallery-cloud-mosaic {
        height: 430px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1.35fr .65fr;
        transform: none;
    }

    .gallery-cloud-mosaic .gallery-mosaic-main {
        grid-row: auto;
        grid-column: 1 / 3;
    }

    .gallery-years-section {
        padding: 75px 0;
    }

    .gallery-year-grid {
        grid-template-columns: 1fr;
    }

    .gallery-year-card {
        min-height: 420px;
    }

    .gallery-year-content {
        right: 24px;
        bottom: 26px;
        left: 24px;
    }

    .gallery-archive-banner {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }

    .gallery-archive-banner > a {
        grid-column: auto;
        justify-self: stretch;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-cloud-mosaic img,
    .gallery-year-card img,
    .gallery-cloud-primary,
    .gallery-cloud-secondary {
        transition: none;
    }
}

.gallery-inner-hero {
    padding: 80px 0 70px;
    background:
        radial-gradient(circle at 80% 20%, rgba(216, 170, 53, .18), transparent 28%),
        linear-gradient(135deg, #fdfbf4, #e7efdc);
}

.gallery-inner-hero h1 {
    max-width: 900px;
    margin: 8px 0 12px;
    color: var(--gallery-green);
    font: 400 clamp(3.5rem, 7vw, 6.5rem)/.92 "Cormorant Garamond", serif;
}

.gallery-inner-hero p {
    max-width: 700px;
    margin: 0;
    color: #667568;
}

.gallery-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    color: #748176;
    font-size: .76rem;
}

.gallery-breadcrumb a {
    color: var(--gallery-green);
    font-weight: 700;
    text-decoration: none;
}

.gallery-breadcrumb i {
    font-size: .58rem;
}

.gallery-albums-section,
.gallery-album-section {
    min-height: 480px;
    padding: 80px 0 105px;
    background: #fff;
}

.gallery-album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.gallery-year-coming-soon-grid {
    width: min(100%, 520px);
    margin: 0 auto;
}

.gallery-year-coming-soon-grid .gallery-album-card {
    min-height: 390px;
}

.gallery-album-card {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border-radius: 26px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 17px 42px rgba(23, 63, 37, .13);
    isolation: isolate;
}

.gallery-album-card > img,
.gallery-album-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gallery-album-card > img {
    z-index: -2;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.gallery-album-overlay {
    z-index: -1;
    background: linear-gradient(180deg, rgba(4, 24, 10, .03) 22%, rgba(5, 31, 14, .92) 100%);
}

.gallery-album-content {
    position: absolute;
    right: 26px;
    bottom: 26px;
    left: 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gallery-album-content small {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.gallery-album-content strong {
    margin-top: 6px;
    font: 400 clamp(2.1rem, 3.3vw, 3.2rem)/1 "Cormorant Garamond", serif;
}

.gallery-album-content b {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 17px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: .74rem;
    backdrop-filter: blur(8px);
}

.gallery-album-card:hover {
    color: #fff;
}

.gallery-album-card:hover > img {
    transform: scale(1.055);
}

.gallery-album-pending {
    background:
        radial-gradient(circle at 72% 18%, rgba(216, 170, 53, .2), transparent 29%),
        radial-gradient(circle at 15% 82%, rgba(88, 137, 76, .14), transparent 31%),
        linear-gradient(145deg, #f6f8ee, #dfe9d7);
    color: var(--gallery-green);
    box-shadow: inset 0 0 0 1px rgba(52, 91, 48, .13);
}

.gallery-album-pending::before {
    content: "";
    position: absolute;
    top: -65px;
    right: -55px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(109, 145, 91, .22);
    border-radius: 50%;
    box-shadow:
        0 0 0 24px rgba(109, 145, 91, .05),
        0 0 0 48px rgba(109, 145, 91, .035);
}

.gallery-pending-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(54, 92, 52, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(54, 92, 52, .045) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.gallery-pending-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 94px;
    height: 94px;
    place-items: center;
    border: 1px solid rgba(51, 91, 48, .18);
    border-radius: 50%;
    transform: translate(-50%, -88%);
    background: rgba(255, 255, 255, .7);
    color: #63865a;
    font-size: 1.9rem;
    box-shadow: 0 18px 42px rgba(49, 84, 47, .11);
    animation: galleryPendingFloat 3s ease-in-out infinite;
}

.gallery-pending-orbit::before,
.gallery-pending-orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.gallery-pending-orbit::before {
    inset: -13px;
    border: 1px dashed rgba(91, 128, 77, .28);
    animation: galleryPendingRotate 12s linear infinite;
}

.gallery-pending-orbit::after {
    top: -18px;
    right: 4px;
    width: 9px;
    height: 9px;
    background: #d8aa35;
    box-shadow: 0 0 14px rgba(216, 170, 53, .7);
}

.gallery-album-pending .gallery-album-content {
    right: 24px;
    bottom: 24px;
    left: 24px;
    color: var(--gallery-green);
    text-shadow: none;
}

.gallery-pending-message {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(42, 82, 40, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .62);
    color: #63785f;
    backdrop-filter: blur(8px);
}

.gallery-pending-message > i {
    color: #c69824;
}

.gallery-pending-message > span {
    display: block;
}

.gallery-pending-message em,
.gallery-pending-message small {
    display: block;
    font-style: normal;
}

.gallery-pending-message em {
    color: #315b36;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.gallery-pending-message small {
    margin-top: 3px;
    color: #6f7e6e;
    font-size: .67rem;
    line-height: 1.45;
}

.gallery-album-pending:hover {
    color: var(--gallery-green);
}

@keyframes galleryPendingFloat {
    50% { transform: translate(-50%, -94%); }
}

@keyframes galleryPendingRotate {
    to { transform: rotate(360deg); }
}

.gallery-album-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
    padding: 18px 22px;
    border: 1px solid rgba(60, 103, 51, .13);
    border-radius: 18px;
    background: #f7faef;
    color: #627064;
    font-size: .78rem;
}

.gallery-album-toolbar i {
    margin-right: 6px;
    color: #d19f20;
}

.gallery-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.gallery-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #e7ecdf;
    cursor: zoom-in;
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease, filter .5s ease;
}

.gallery-photo > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 42, 18, .35);
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-photo:hover img {
    transform: scale(1.055);
    filter: saturate(.85);
}

.gallery-photo:hover > span,
.gallery-photo:focus-visible > span {
    opacity: 1;
}

.gallery-empty-state {
    max-width: 720px;
    margin: 30px auto;
    padding: 55px 30px;
    border: 1px solid rgba(60, 103, 51, .14);
    border-radius: 24px;
    background: #f8faF2;
    color: #667568;
    text-align: center;
}

.gallery-empty-state i {
    margin-bottom: 18px;
    color: #739665;
    font-size: 2.2rem;
}

.gallery-lightbox {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 40px 80px;
    background: rgba(4, 16, 8, .94);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox figure {
    max-width: min(1400px, 100%);
    max-height: 90vh;
    margin: 0;
    text-align: center;
}

.gallery-lightbox figure img {
    max-width: 100%;
    max-height: 84vh;
    border-radius: 12px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .5);
}

.gallery-lightbox figcaption {
    margin-top: 10px;
    color: rgba(255, 255, 255, .75);
    font-size: .78rem;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.gallery-lightbox-close {
    top: 22px;
    right: 24px;
}

.gallery-lightbox-prev {
    left: 22px;
}

.gallery-lightbox-next {
    right: 22px;
}

.gallery-lightbox-open {
    overflow: hidden;
}

@media (max-width: 991px) {
    .gallery-album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .gallery-inner-hero {
        padding: 55px 0 48px;
    }

    .gallery-inner-hero h1 {
        font-size: 3.5rem;
    }

    .gallery-albums-section,
    .gallery-album-section {
        padding: 55px 0 75px;
    }

    .gallery-album-grid {
        grid-template-columns: 1fr;
    }

    .gallery-album-card {
        min-height: 360px;
    }

    .gallery-pending-message small {
        font-size: .64rem;
    }

    .gallery-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .gallery-photo {
        border-radius: 10px;
    }

    .gallery-album-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-lightbox {
        padding: 60px 12px;
    }

    .gallery-lightbox-nav {
        top: auto;
        bottom: 18px;
    }

    .gallery-lightbox-prev {
        left: calc(50% - 58px);
    }

    .gallery-lightbox-next {
        right: calc(50% - 58px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-pending-orbit,
    .gallery-pending-orbit::before {
        animation: none;
    }
}
