.gallery-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #2b0b14 0%, #4b1421 52%, #702535 100%)
}

.gallery-section:before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .045;
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 24px 24px
}

.gallery-glow {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%
}

.gallery-glow-one {
    width: 550px;
    height: 550px;
    right: -240px;
    top: -260px
}

.gallery-glow-two {
    width: 260px;
    height: 260px;
    left: -120px;
    bottom: 90px
}

.gallery-heading {
    display: grid;
    grid-template-columns: 1.45fr .55fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 40px
}

.gallery-heading .section-title {
    max-width: 780px;
    margin-bottom: 0
}

.gallery-heading>p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, .58);
    font-size: 14px;
    line-height: 1.8
}

.gallery-filter-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 35px
}

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50px;
    backdrop-filter: blur(12px)
}

.gallery-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, .67);
    font-size: 11px;
    font-weight: 700;
    background: transparent;
    border: 0;
    border-radius: 50px;
    transition: .3s
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    color: var(--wine-dark);
    background: var(--peach);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .17)
}

.gallery-filter-btn span {
    display: grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    color: #fff;
    font-size: 9px;
    background: var(--wine);
    border-radius: 50%
}

.creative-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 115px;
    gap: 16px;
    transition: .35s
}

.gallery-item {
    position: relative;
    min-width: 0;
    grid-column: span 4;
    grid-row: span 3;
    transition: opacity .38s ease, transform .48s cubic-bezier(.2, .8, .2, 1)
}

.gallery-item.gallery-shape-1 {
    grid-column: span 5;
    grid-row: span 4
}

.gallery-item.gallery-shape-2 {
    grid-column: span 3;
    grid-row: span 4
}

.gallery-item.gallery-shape-3 {
    grid-column: span 4;
    grid-row: span 3
}

.gallery-item.gallery-shape-4 {
    grid-column: span 4;
    grid-row: span 3
}

.gallery-item.is-hidden {
    display: none
}

.gallery-lightbox {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: #35121a;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 22px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .18);
    isolation: isolate
}

.gallery-lightbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .75s cubic-bezier(.2, .75, .2, 1), filter .45s
}

.gallery-item:hover img {
    transform: scale(1.065);
    filter: saturate(1.08)
}

.gallery-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(to bottom, rgba(25, 5, 10, .04) 30%, rgba(25, 5, 10, .22) 55%, rgba(25, 5, 10, .94) 100%);
    transition: .35s
}

.gallery-item:hover .gallery-overlay {
    background: linear-gradient(to bottom, rgba(25, 5, 10, .08) 20%, rgba(25, 5, 10, .3) 52%, rgba(25, 5, 10, .96) 100%)
}

.gallery-number {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    color: rgba(255, 255, 255, .82);
    font: 700 12px var(--serif);
    letter-spacing: 1px
}

.gallery-expand {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    color: var(--wine-dark);
    background: rgba(255, 248, 242, .92);
    border-radius: 50%;
    transform: scale(.85);
    opacity: 0;
    transition: .35s
}

.gallery-item:hover .gallery-expand {
    transform: scale(1);
    opacity: 1
}

.gallery-caption {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 21px;
    left: 22px;
    display: flex;
    flex-direction: column;
    transform: translateY(8px);
    transition: .35s
}

.gallery-caption small {
    margin-bottom: 7px;
    color: var(--peach);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase
}

.gallery-caption strong {
    font: 700 clamp(20px, 2vw, 28px)/1.15 var(--serif)
}

.gallery-caption em {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .68);
    font-size: 10px;
    font-style: normal;
    opacity: 0;
    transition: .35s
}

.gallery-item:hover .gallery-caption {
    transform: none
}

.gallery-item:hover .gallery-caption em {
    max-height: 25px;
    margin-top: 7px;
    opacity: 1
}

.gallery-empty {
    display: none;
    padding: 70px;
    color: rgba(255, 255, 255, .6);
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, .18);
    border-radius: 22px
}

.gallery-empty.show {
    display: block
}

.gallery-empty i {
    font-size: 35px;
    color: var(--peach)
}

.gallery-empty p {
    margin: 10px 0 0
}

.gallery-footnote {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, .48);
    font-size: 11px
}

.gallery-footnote span,
.gallery-footnote a {
    display: flex;
    gap: 8px;
    align-items: center
}

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

.fancybox__container {
    --fancybox-bg: rgba(31, 7, 14, .96);
    --f-button-bg: rgba(255, 255, 255, .1);
    --f-button-hover-bg: #7d2d3a;
    --f-button-color: #fff;
    --fancybox-accent-color: #f2b38e
}

.fancybox__caption {
    font-family: var(--sans);
    line-height: 1.6
}

.fancybox__caption strong {
    font: 700 20px var(--serif);
    color: #fff
}

@media(max-width:991px) {
    .gallery-heading {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .creative-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px
    }

    .gallery-item,
    .gallery-item.gallery-shape-1,
    .gallery-item.gallery-shape-2,
    .gallery-item.gallery-shape-3,
    .gallery-item.gallery-shape-4 {
        grid-column: span 1;
        grid-row: span 1
    }

    .gallery-item:first-child,
    .gallery-item:nth-child(6) {
        grid-column: span 2
    }

    .gallery-item:first-child {
        grid-row: span 2
    }
}

@media(max-width:575px) {
    .gallery-filter {
        justify-content: flex-start;
        width: 100%;
        padding: 7px;
        overflow-x: auto;
        flex-wrap: nowrap;
        border-radius: 16px;
        scrollbar-width: none
    }

    .gallery-filter::-webkit-scrollbar {
        display: none
    }

    .gallery-filter-btn {
        flex: 0 0 auto
    }

    .creative-gallery {
        display: flex;
        flex-direction: column
    }

    .gallery-item,
    .gallery-item:first-child,
    .gallery-item:nth-child(6) {
        width: 100%;
        height: 360px
    }

    .gallery-item:first-child {
        height: 470px
    }

    .gallery-caption strong {
        font-size: 23px
    }

    .gallery-footnote {
        align-items: flex-start;
        flex-direction: column
    }
}
/* Album-based gallery */

.album-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.album-card {
    grid-column: span 4;
    min-width: 0;
}

.album-card:first-child,
.album-card:nth-child(5n) {
    grid-column: span 5;
}

.album-card:nth-child(2),
.album-card:nth-child(5n + 1) {
    grid-column: span 7;
}

.album-cover {
    position: relative;
    display: block;
    height: 320px;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    background: #35121a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
    isolation: isolate;
    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
}

.album-card:nth-child(3n) .album-cover {
    height: 460px;
}

.album-cover:hover {
    color: #ffffff;
    transform: translateY(-10px);
    box-shadow: 0 35px 75px rgba(0, 0, 0, 0.35);
}

.album-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.5s ease;
}

.album-cover:hover > img {
    transform: scale(1.07);
    filter: saturate(1.1);
}

.album-cover-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(35, 6, 14, 0.05) 20%,
            rgba(35, 6, 14, 0.3) 52%,
            rgba(35, 6, 14, 0.96) 100%
        );
}

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

.album-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--wine-dark);
    font-size: 19px;
    background: rgba(255, 248, 242, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    backdrop-filter: blur(12px);
}

.album-count {
    padding: 9px 14px;
    color: var(--wine-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: var(--peach);
    border-radius: 50px;
}

.album-bottom-content {
    position: absolute;
    z-index: 2;
    right: 27px;
    bottom: 27px;
    left: 27px;
    display: flex;
    flex-direction: column;
}

.album-bottom-content small {
    margin-bottom: 8px;
    color: var(--peach);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.album-bottom-content strong {
    font:
        700 clamp(28px, 3vw, 43px) / 1.08
        var(--serif);
}

.album-bottom-content em {
    max-width: 500px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 12px;
    font-style: normal;
    line-height: 1.65;
}

.album-view-button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    width: max-content;
    margin-top: 20px;
    padding-bottom: 4px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.album-view-button i {
    transition: transform 0.3s ease;
}

.album-cover:hover .album-view-button i {
    transform: translate(4px, -4px);
}

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

    .album-card,
    .album-card:first-child,
    .album-card:nth-child(2),
    .album-card:nth-child(5n),
    .album-card:nth-child(5n + 1) {
        grid-column: span 1;
    }

    .album-cover,
    .album-card:nth-child(3n) .album-cover {
        height: 480px;
    }
}

@media (max-width: 575px) {
    .album-gallery-grid {
        grid-template-columns: 1fr;
    }

    .album-cover,
    .album-card:nth-child(3n) .album-cover {
        height: 470px;
    }

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

    .album-bottom-content strong {
        font-size: 31px;
    }
}