.gallery-index {
    --gallery-green-950: #052d20;
    --gallery-green-900: #074530;
    --gallery-green-800: #0d6242;
    --gallery-green-700: #138354;
    --gallery-gold: #d9ac49;
    --gallery-ink: #17251d;
    --gallery-muted: #65756c;
    --gallery-line: #dbe6df;
    --gallery-canvas: #f4f7f5;
    --gallery-surface: #ffffff;
    color: var(--gallery-ink);
    background: var(--gallery-canvas);
    font-family: "Poppins", Arial, sans-serif;
}

.gallery-index *,
.gallery-index *::before,
.gallery-index *::after {
    box-sizing: border-box;
}

.gallery-index-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 330px;
    overflow: hidden;
    padding: 48px 0 54px;
    color: #ffffff;
    background:
        radial-gradient(circle at 81% 76%, rgba(217, 172, 73, 0.24), transparent 28%),
        linear-gradient(115deg, var(--gallery-green-950), var(--gallery-green-800));
}

.gallery-index-hero::after {
    position: absolute;
    z-index: -1;
    top: -26%;
    right: 7%;
    width: min(33vw, 420px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    content: "";
}

.gallery-index-hero-image,
.gallery-index-hero-scrim {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gallery-index-hero-image {
    object-fit: cover;
    object-position: center;
    opacity: 0.48;
}

.gallery-index-hero-scrim {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5, 45, 32, 0.97) 0%, rgba(6, 68, 47, 0.9) 52%, rgba(8, 73, 50, 0.56) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22));
}

.gallery-index-hero-content {
    position: relative;
}

.gallery-index-breadcrumb {
    margin-bottom: 28px;
}

.gallery-index-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

.gallery-index-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.gallery-index-breadcrumb a:hover,
.gallery-index-breadcrumb a:focus-visible {
    color: #ffffff;
}

.gallery-index-breadcrumb li:last-child {
    overflow: hidden;
    color: #ffffff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.gallery-index-eyebrow,
.gallery-index-section-eyebrow,
.gallery-index-card-category {
    margin: 0;
    color: var(--gallery-gold);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.075em;
    line-height: 1.4;
    text-transform: uppercase;
}

.gallery-index-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.35rem, 4.6vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.gallery-index-hero-description {
    max-width: 650px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.75;
}

.gallery-index-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
}

.gallery-index-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gallery-index-hero-meta i {
    color: var(--gallery-gold);
}

.gallery-index-main {
    padding: 38px 0 84px;
}

.gallery-index-filter {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 34px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gallery-line);
}

.gallery-index-filter-label {
    flex: 0 0 auto;
    color: var(--gallery-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.gallery-index-filter-options {
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding: 2px 1px 4px;
    scrollbar-width: thin;
}

.gallery-index-filter-options a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--gallery-line);
    border-radius: 999px;
    color: var(--gallery-green-900);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition:
        color 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.gallery-index-filter-options a.is-active {
    border-color: var(--gallery-green-800);
    color: #ffffff;
    background: var(--gallery-green-800);
    box-shadow: 0 10px 22px rgba(13, 98, 66, 0.2);
}

.gallery-index-collection-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.gallery-index-collection-header h2 {
    margin: 4px 0 0;
    color: var(--gallery-ink);
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.15;
}

.gallery-index-count {
    display: inline-grid;
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid #c9e3d4;
    border-radius: 50%;
    color: var(--gallery-green-800);
    background: #f5fbf7;
    font-size: 0.84rem;
    font-weight: 700;
}

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

.gallery-index-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--gallery-line);
    border-radius: 16px;
    background: var(--gallery-surface);
    box-shadow: 0 13px 30px rgba(7, 69, 48, 0.055);
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.gallery-index-card-heading h3 a {
    color: inherit;
    text-decoration: none;
}

.gallery-index-album-count {
    position: absolute;
    z-index: 2;
    bottom: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 9px;
    background: #fff;
    color: #164932;
    font-size: .74rem;
    font-weight: 700;
}

.gallery-index-card-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    color: inherit;
    background: linear-gradient(135deg, #dfeae3, #f3f7f4);
    text-decoration: none;
}

.gallery-index-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-index-card-preview {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(5, 45, 32, 0.76);
    box-shadow: 0 8px 22px rgba(1, 21, 14, 0.2);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    opacity: 0;
    transform: translate3d(0, 5px, 0);
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        background-color 180ms ease;
}

.gallery-index-card-preview i {
    font-size: 0.72rem;
}

.gallery-index-card-body {
    display: flex;
    min-height: 152px;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 17px 18px 15px;
}

.gallery-index-card-heading h3 {
    display: -webkit-box;
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--gallery-ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.46;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gallery-index-card-description {
    display: -webkit-box;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--gallery-muted);
    font-size: 0.8rem;
    line-height: 1.63;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gallery-index-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #edf2ef;
    color: #77867d;
    font-size: 0.73rem;
    font-weight: 500;
}

.gallery-index-card-footer > span {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.gallery-index-card-footer > span i {
    color: var(--gallery-green-700);
}

.gallery-index-card-footer > a {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #d8e7de;
    border-radius: 50%;
    color: var(--gallery-green-800);
    background: #ffffff;
    text-decoration: none;
    transition:
        color 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.gallery-index-card-footer > a i {
    font-size: 0.7rem;
}

.gallery-index-empty-state {
    display: grid;
    min-height: 325px;
    place-content: center;
    justify-items: center;
    padding: 40px 26px;
    border: 1px dashed #bad8c6;
    border-radius: 16px;
    color: var(--gallery-muted);
    background: rgba(255, 255, 255, 0.64);
    text-align: center;
}

.gallery-index-empty-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 15px;
    place-items: center;
    border-radius: 50%;
    color: var(--gallery-green-700);
    background: #e8f5ed;
    font-size: 1.35rem;
}

.gallery-index-empty-state h2 {
    margin: 0;
    color: var(--gallery-ink);
    font-size: 1.28rem;
    font-weight: 700;
}

.gallery-index-empty-state p {
    max-width: 520px;
    margin: 9px 0 0;
    font-size: 0.87rem;
    line-height: 1.7;
}

.gallery-index-empty-state a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 19px;
    padding: 9px 15px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--gallery-green-800);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.gallery-index-pagination {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.gallery-index-pagination .pagination {
    gap: 6px;
    margin: 0;
}

.gallery-index-pagination .page-link {
    display: grid;
    min-width: 38px;
    min-height: 38px;
    place-items: center;
    padding: 7px 10px;
    border: 1px solid var(--gallery-line);
    border-radius: 9px !important;
    color: var(--gallery-green-900);
    background: #ffffff;
    box-shadow: none;
    font-size: 0.8rem;
    font-weight: 600;
}

.gallery-index-pagination .page-item.active .page-link {
    border-color: var(--gallery-green-800);
    color: #ffffff;
    background: var(--gallery-green-800);
}

.gallery-index-pagination .page-item.disabled .page-link {
    color: #a0ada5;
    background: #f7f9f8;
}

.gallery-index a:focus-visible {
    outline: 3px solid rgba(217, 172, 73, 0.78);
    outline-offset: 3px;
}

@media (hover: hover) {
    .gallery-index-filter-options a:hover {
        border-color: #b7d8c3;
        color: var(--gallery-green-900);
        background: #f5fbf7;
        transform: translate3d(0, -1px, 0);
    }

    .gallery-index-filter-options a.is-active:hover {
        border-color: var(--gallery-green-700);
        color: #ffffff;
        background: var(--gallery-green-700);
    }

    .gallery-index-card:hover {
        border-color: #bfdcc9;
        box-shadow: 0 20px 42px rgba(7, 69, 48, 0.12);
        transform: translate3d(0, -4px, 0);
    }

    .gallery-index-card:hover .gallery-index-card-image img {
        transform: scale(1.045);
    }

    .gallery-index-card:hover .gallery-index-card-preview {
        opacity: 1;
        transform: none;
    }

    .gallery-index-card-footer > a:hover {
        border-color: var(--gallery-green-800);
        color: #ffffff;
        background: var(--gallery-green-800);
        transform: translate3d(1px, -1px, 0);
    }

    .gallery-index-empty-state a:hover {
        color: #ffffff;
        background: var(--gallery-green-700);
    }

    .gallery-index-pagination .page-link:hover {
        border-color: var(--gallery-green-700);
        color: #ffffff;
        background: var(--gallery-green-700);
    }
}

@media (min-width: 992px) {
    .gallery-index-card.is-featured {
        grid-column: span 2;
    }

    .gallery-index-card.is-featured .gallery-index-card-image {
        aspect-ratio: 16 / 7;
    }

    .gallery-index-card.is-featured .gallery-index-card-body {
        min-height: 145px;
    }
}

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

@media (max-width: 767.98px) {
    .gallery-index-hero {
        min-height: 284px;
        padding: 35px 0 39px;
    }

    .gallery-index-hero::after {
        top: auto;
        right: -12%;
        bottom: -29%;
        width: 225px;
    }

    .gallery-index-breadcrumb {
        margin-bottom: 21px;
    }

    .gallery-index-hero h1 {
        font-size: clamp(2.08rem, 10vw, 2.55rem);
    }

    .gallery-index-hero-description {
        margin-top: 13px;
        font-size: 0.9rem;
        line-height: 1.68;
    }

    .gallery-index-hero-meta {
        gap: 8px 16px;
        margin-top: 17px;
        font-size: 0.78rem;
    }

    .gallery-index-main {
        padding: 28px 0 60px;
    }

    .gallery-index-filter {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 27px;
        padding-bottom: 18px;
    }

    .gallery-index-filter-options {
        width: 100%;
        margin-right: -12px;
        padding-right: 12px;
    }

    .gallery-index-collection-header {
        margin-bottom: 18px;
    }

    .gallery-index-grid {
        gap: 15px;
    }

    .gallery-index-card-body {
        min-height: 145px;
        padding: 15px;
    }

    .gallery-index-card-footer {
        padding-top: 12px;
    }
}

@media (max-width: 575.98px) {
    .gallery-index-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .gallery-index-card-image {
        aspect-ratio: 16 / 11;
    }

    .gallery-index-card-preview {
        opacity: 1;
        transform: none;
    }

    .gallery-index-pagination {
        margin-top: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-index *,
    .gallery-index *::before,
    .gallery-index *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
