

/* =========================================================
   GALLERY SECTION
========================================================= */

.gallery-page-section {
    position: relative;

    padding: 95px 0 110px;

    background:
        radial-gradient(circle at right top,
            rgba(105, 19, 126, .06),
            transparent 28%),
        #ffffff;
}



/* =========================================================
   HEADING
========================================================= */

.gallery-heading {
    max-width: 820px;

    margin:
        0 auto 38px;
}


.gallery-small-title {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 13px;

    color: #b77808;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.gallery-small-title::before,
.gallery-small-title::after {
    content: "";

    width: 27px;

    height: 2px;

    background: #f7bc38;
}


.gallery-heading h2 {
    margin: 0;

    color: #260032;

    font-size:
        clamp(32px,
            4vw,
            48px);

    line-height: 1.17;

    letter-spacing: -1.2px;

    font-weight: 800;
}


.gallery-heading h2 span {
    color: #701887;
}



/* =========================================================
   FILTER
========================================================= */

.gallery-filter {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 42px;
}


.gallery-filter-btn {
    min-height: 41px;

    padding:
        0 18px;

    border:
        1px solid #e8e0e9;

    border-radius: 30px;

    color: #5e5362;

    background: #ffffff;

    font-family: inherit;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

    transition: .3s;
}


.gallery-filter-btn:hover {
    color: #521063;

    border-color:
        rgba(112, 24, 135, .30);

    background: #fbf4fc;
}


.gallery-filter-btn.active {
    color: #351039;

    border-color: transparent;

    background:
        linear-gradient(135deg,
            #f7bc38,
            #ffe18b);

    box-shadow:
        0 9px 24px rgba(247, 188, 56, .18);
}



/* =========================================================
   GALLERY GRID
========================================================= */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    grid-auto-rows: 270px;

    gap: 17px;
}


.gallery-item {
    position: relative;

    min-width: 0;
}


.gallery-item.gallery-large {
    grid-row: span 2;
}


.gallery-item.gallery-tall {
    grid-row: span 2;
}


.gallery-item.gallery-wide {
    grid-column: span 2;
}



/* =========================================================
   GALLERY CARD
========================================================= */

.gallery-card {
    position: relative;

    display: block;

    width: 100%;

    height: 100%;

    overflow: hidden;

    border-radius: 20px;

    background: #eee8ef;

    box-shadow:
        0 14px 38px rgba(45, 5, 52, .08);
}


.gallery-card img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .55s ease;
}


.gallery-card::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 2;

    background:
        linear-gradient(to top,
            rgba(27, 0, 34, .83) 0%,
            rgba(27, 0, 34, .34) 42%,
            rgba(27, 0, 34, .03) 70%);

    opacity: .80;

    transition: .35s;
}


.gallery-card:hover img {
    transform: scale(1.06);
}


.gallery-card:hover::before {
    opacity: 1;
}



/* =========================================================
   CARD OVERLAY
========================================================= */

.gallery-card-overlay {
    position: absolute;

    inset: 0;

    z-index: 4;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 15px;

    padding: 22px;
}


.gallery-card-content span {
    display: block;

    margin-bottom: 5px;

    color: #f7bc38;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}


.gallery-card-content h3 {
    max-width: 240px;

    margin: 0;

    color: #ffffff;

    font-size: 15px;

    line-height: 1.4;

    font-weight: 700;
}



/* =========================================================
   VIEW ICON
========================================================= */

.gallery-view-icon {
    width: 44px;

    height: 44px;

    flex: 0 0 44px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color: #351039;

    background:
        linear-gradient(145deg,
            #f7bc38,
            #ffe18b);

    font-size: 16px;

    opacity: 0;

    transform:
        translateY(10px);

    transition: .35s;
}


.gallery-card:hover .gallery-view-icon {
    opacity: 1;

    transform:
        translateY(0);
}



/* =========================================================
   FILTER ANIMATION
========================================================= */

.gallery-item {
    transition:
        opacity .3s ease,
        transform .3s ease;
}


.gallery-item.gallery-hidden {
    display: none;
}



/* =========================================================
   TABLET
========================================================= */

@media(max-width: 991px) {

 


    .gallery-page-section {
        padding:
            75px 0 90px;
    }


    .gallery-grid {
        grid-template-columns:
            repeat(2, 1fr);

        grid-auto-rows: 260px;
    }


    .gallery-item.gallery-wide {
        grid-column: span 2;
    }

}



/* =========================================================
   MOBILE
========================================================= */

@media(max-width: 767px) {

   


    .gallery-page-section {
        padding:
            65px 0 75px;
    }


    .gallery-heading {
        margin-bottom: 30px;
    }


    .gallery-heading h2 {
        font-size: 31px;
    }


    .gallery-filter {
        justify-content: flex-start;

        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 8px;

        margin-bottom: 30px;

        scrollbar-width: none;
    }


    .gallery-filter::-webkit-scrollbar {
        display: none;
    }


    .gallery-filter-btn {
        flex: 0 0 auto;
    }


    .gallery-grid {
        display: grid;

        grid-template-columns: 1fr;

        grid-auto-rows: auto;

        gap: 14px;
    }


    .gallery-item,
    .gallery-item.gallery-large,
    .gallery-item.gallery-tall,
    .gallery-item.gallery-wide {
        grid-column: auto;

        grid-row: auto;

        height: 330px;
    }


    .gallery-card-overlay {
        padding: 18px;
    }


    .gallery-view-icon {
        opacity: 1;

        transform: none;
    }

}



/* =========================================================
   SMALL MOBILE
========================================================= */

@media(max-width: 480px) {

  


    .gallery-item,
    .gallery-item.gallery-large,
    .gallery-item.gallery-tall,
    .gallery-item.gallery-wide {
        height: 285px;
    }


    .gallery-card {
        border-radius: 16px;
    }


    .gallery-card-content h3 {
        font-size: 14px;
    }

}