
/* ===========================================================
   GALLERY HERO
=========================================================== */

.gallery-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(55, 9, 18, .82),
            rgba(18, 16, 14, .88)
        )
        center / cover fixed;
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            #1D1916 0%,
            #2A151B 100%
        );
}

.gallery-hero .container {
    position: relative;
    z-index: 2;
}

.gallery-hero .hero-subtitle {
    display: inline-block;
    color: var(--gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.gallery-hero h1 {
    color: #fff;
    font-size: 4rem;
    margin-bottom: 25px;
}

.gallery-hero p {
    max-width: 700px;
    margin: auto;
    color: #E8E2DA;
    line-height: 1.9;
    font-size: 1.05rem;
}


/* ===========================================================
   GALLERY STATISTIC
=========================================================== */

.gallery-statistic {
    position: relative;
    z-index: 20;
    margin-top: 60px;
}

.stat-card {
    height: 100%;
    padding: 35px;
    text-align: center;

    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 20px;

    transition: .35s;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(224, 180, 92, .4);
}

.stat-card i {
    display: block;
    margin-bottom: 18px;

    color: var(--gold);
    font-size: 2rem;
}

.stat-card h2 {
    margin-bottom: 6px;
    color: var(--heading);
}

.stat-card span {
    color: rgba(255, 255, 255, .7);
}


/* ===========================================================
   GALLERY FILTER
=========================================================== */

.gallery-filter {
    padding: 80px 0 30px;
}

.filter-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.category-item {
    display: inline-block;
    padding: 10px 22px;

    background: var(--surface);
    color: rgba(255, 255, 255, .8);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 50px;

    text-decoration: none;
    transition: .3s;
}

.category-item:hover,
.category-item.active {
    background: var(--gold);
    color: #111;
}


/* ===========================================================
   GALLERY SEARCH
=========================================================== */

.gallery-search {
    width: 100%;
    max-width: 520px;
    margin: auto;
}

.search-box {
    position: relative;
}

.search-btn {
    position: absolute;
    top: 50%;
    left: 20px;
    z-index: 2;

    padding: 0;

    background: none;
    border: none;

    color: rgba(255, 255, 255, .55);
    cursor: pointer;

    transform: translateY(-50%);
    transition: .3s;
}

.search-btn:hover {
    color: var(--gold);
}

.search-box input {
    width: 100%;
    padding: 16px 20px 16px 52px;

    background: var(--surface);
    color: var(--white);

    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50px;

    transition: .3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, .45);
}

.gallery-result {
    text-align: center;
    color: rgba(255, 255, 255, .7);
}


/* ===========================================================
   GALLERY PAGE
=========================================================== */

.gallery-page {
    padding: 30px 0 80px;
}

.gallery-card {
    height: 100%;
    overflow: hidden;

    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 20px;

    transition: .35s;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}

.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    display: block;
    width: 100%;
    height: 280px;

    object-fit: cover;

    transition: .45s;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-content {
    padding: 22px;
}

.gallery-category {
    display: inline-block;
    padding: 5px 12px;

    background: rgba(224, 180, 92, .15);
    color: var(--gold);

    border-radius: 30px;

    font-size: .82rem;
    margin-bottom: 14px;
}

.gallery-content h5 {
    color: var(--heading);
    line-height: 1.5;
    margin-bottom: 12px;
}

.gallery-content small {
    color: rgba(255, 255, 255, .6);
}


/* -------------------------
   GALLERY OVERLAY
------------------------- */

.gallery-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;

    padding: 25px;

    text-align: center;

    opacity: 0;

    background:
        linear-gradient(
            to top,
            rgba(117, 28, 42, .92),
            rgba(117, 28, 42, .15)
        );

    transition: opacity .4s ease;
}

.gallery-item:hover .gallery-overlay,
.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    margin-bottom: 10px;

    color: var(--white);

    font-family: 'Cormorant Garamond', serif;

    font-size: 1.5rem;
}

.gallery-overlay p {
    margin: 0;

    color: var(--white);

    font-size: .95rem;

    line-height: 1.6;
}

.overlay-icon,
.gallery-overlay i {
    margin-bottom: 15px;

    color: var(--gold);

    font-size: 3rem;

    transform: translateY(15px);

    transition: transform .35s ease;
}

.gallery-item:hover .overlay-icon,
.gallery-card:hover .overlay-icon,
.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

.btn-gallery {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    padding: 14px 32px;

    background: var(--maroon-light);
    color: var(--white);

    border-radius: 50px;

    text-decoration: none;
    font-weight: 600;

    transition: .35s;
}

.btn-gallery:hover {
    gap: 18px;

    background: #92283B;
    color: var(--white);

    box-shadow:
        0 10px 25px rgba(117, 28, 42, .35);
}


/* ===========================================================
   EMPTY GALLERY
=========================================================== */

.empty-gallery {
    padding: 100px 20px;
    text-align: center;
}

.empty-gallery i {
    display: block;
    margin-bottom: 20px;

    color: var(--gold);
    font-size: 4rem;
}

.empty-gallery h3 {
    color: var(--heading);
    margin-bottom: 15px;
}

.empty-gallery p {
    color: rgba(255, 255, 255, .65);
}


/* ===========================================================
   PAGINATION
=========================================================== */

.gallery-pagination {
    padding-bottom: 90px;
}

.gallery-pagination .pagination {
    justify-content: center;
}


/* ===========================================================
   TABLET
   <= 991.98px
=========================================================== */

@media (max-width: 991.98px) {

    /* -------------------------
       HERO
    ------------------------- */

    .gallery-hero {
        min-height: 60vh;
        padding: 100px 30px 80px;

        background-attachment: scroll;
    }

    .gallery-hero .hero-subtitle {
        margin-bottom: 15px;
        font-size: .75rem;
        letter-spacing: 3px;
    }

    .gallery-hero h1 {
        margin-bottom: 18px;
        font-size: 3rem;
        line-height: 1.2;
    }

    .gallery-hero p {
        max-width: 580px;
        font-size: .9rem;
        line-height: 1.7;
    }


    /* -------------------------
       STATISTIC
    ------------------------- */

    .gallery-statistic {
        margin-top: 40px;
    }

    .stat-card {
        padding: 28px 20px;
        border-radius: 17px;
    }

    .stat-card i {
        margin-bottom: 14px;
        font-size: 1.7rem;
    }

    .stat-card h2 {
        font-size: 1.6rem;
    }

    .stat-card span {
        font-size: .75rem;
    }


    /* -------------------------
       FILTER
    ------------------------- */

    .gallery-filter {
        padding: 60px 0 25px;
    }

    .filter-wrapper {
        gap: 25px;
    }

    .category-filter {
        gap: 9px;
    }

    .category-item {
        padding: 8px 17px;
        font-size: .75rem;
    }


    /* -------------------------
       SEARCH
    ------------------------- */

    .gallery-search {
        max-width: 480px;
    }

    .search-box input {
        padding: 13px 18px 13px 48px;
        font-size: .75rem;
    }

    .search-btn {
        left: 18px;
    }

    .gallery-result {
        font-size: .75rem;
    }


    /* -------------------------
       GALLERY
    ------------------------- */

    .gallery-page {
        padding: 25px 0 65px;
    }

    .gallery-card {
        border-radius: 17px;
    }

    .gallery-image img {
        height: 240px;
    }

    .gallery-content {
        padding: 18px;
    }

    .gallery-category {
        padding: 4px 10px;
        margin-bottom: 10px;
        font-size: .7rem;
    }

    .gallery-content h5 {
        margin-bottom: 9px;
        font-size: .95rem;
        line-height: 1.4;
    }

    .gallery-content small {
        font-size: .68rem;
    }


    /* -------------------------
       EMPTY
    ------------------------- */

    .empty-gallery {
        padding: 80px 20px;
    }

    .empty-gallery i {
        font-size: 3.5rem;
    }

    .empty-gallery h3 {
        font-size: 1.5rem;
    }

    .empty-gallery p {
        font-size: .8rem;
    }


    /* -------------------------
       PAGINATION
    ------------------------- */

    .gallery-pagination {
        padding-bottom: 70px;
    }
}


/* ===========================================================
   MOBILE
   <= 767.98px
=========================================================== */

@media (max-width: 767.98px) {

    /* -------------------------
       HERO
    ------------------------- */

    .gallery-hero {
        min-height: 55vh;
        padding: 85px 20px 65px;

        background-attachment: scroll;
    }

    .gallery-hero .hero-subtitle {
        margin-bottom: 12px;
        font-size: .62rem;
        letter-spacing: 2.5px;
    }

    .gallery-hero h1 {
        margin-bottom: 15px;
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .gallery-hero p {
        max-width: 330px;
        font-size: .7rem;
        line-height: 1.7;
    }


    /* -------------------------
       STATISTIC
    ------------------------- */

    .gallery-statistic {
        margin-top: 25px;
    }

    .gallery-statistic .row {
        --bs-gutter-x: .7rem;
        --bs-gutter-y: .7rem;
    }

    .stat-card {
        padding: 20px 10px;
        border-radius: 14px;
    }

    .stat-card i {
        margin-bottom: 9px;
        font-size: 1.35rem;
    }

    .stat-card h2 {
        margin-bottom: 3px;
        font-size: 1.25rem;
    }

    .stat-card span {
        font-size: .6rem;
    }


    /* -------------------------
       FILTER
    ------------------------- */

    .gallery-filter {
        padding: 45px 0 20px;
    }

    .gallery-filter .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .filter-wrapper {
        gap: 20px;
    }

    .category-filter {
        justify-content: center;
        gap: 7px;
    }

    .category-item {
        padding: 7px 13px;
        font-size: .62rem;
    }


    /* -------------------------
       SEARCH
    ------------------------- */

    .gallery-search {
        max-width: 350px;
    }

    .search-box input {
        padding: 11px 15px 11px 42px;
        font-size: .65rem;
        border-radius: 30px;
    }

    .search-btn {
        left: 15px;
        font-size: .75rem;
    }

    .gallery-result {
        font-size: .65rem;
    }


    /* -------------------------
       GALLERY
    ------------------------- */

    .gallery-page {
        padding: 20px 0 50px;
    }

    .gallery-page .row {
        --bs-gutter-x: .8rem;
        --bs-gutter-y: 1rem;
    }

    .gallery-card {
        border-radius: 14px;
    }

    .gallery-image img {
        height: 210px;
    }

    .gallery-content {
        padding: 14px;
    }

    .gallery-category {
        padding: 4px 9px;
        margin-bottom: 8px;
        font-size: .58rem;
    }

    .gallery-content h5 {
        margin-bottom: 7px;
        font-size: .78rem;
        line-height: 1.4;
    }

    .gallery-content small {
        font-size: .58rem;
    }


    /* -------------------------
       EMPTY
    ------------------------- */

    .empty-gallery {
        padding: 65px 15px;
    }

    .empty-gallery i {
        margin-bottom: 15px;
        font-size: 3rem;
    }

    .empty-gallery h3 {
        margin-bottom: 10px;
        font-size: 1.25rem;
    }

    .empty-gallery p {
        max-width: 300px;
        margin: auto;
        font-size: .68rem;
        line-height: 1.6;
    }


    /* -------------------------
       PAGINATION
    ------------------------- */

    .gallery-pagination {
        padding-bottom: 55px;
    }

    .gallery-pagination .pagination {
        font-size: .65rem;
    }
}


/* ===========================================================
   SMALL MOBILE
   <= 575.98px
=========================================================== */

@media (max-width: 575.98px) {

    /* -------------------------
       HERO
    ------------------------- */

    .gallery-hero {
        min-height: 50vh;
        padding: 75px 16px 55px;
    }

    .gallery-hero .hero-subtitle {
        margin-bottom: 10px;
        font-size: .55rem;
        letter-spacing: 2px;
    }

    .gallery-hero h1 {
        margin-bottom: 12px;
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .gallery-hero p {
        max-width: 290px;
        font-size: .68rem;
        line-height: 1.65;
    }


    /* -------------------------
       STATISTIC
    ------------------------- */

    .gallery-statistic {
        margin-top: 20px;
    }

    .gallery-statistic .row {
        --bs-gutter-x: .5rem;
        --bs-gutter-y: .5rem;
    }

    .stat-card {
        padding: 16px 7px;
        border-radius: 12px;
    }

    .stat-card i {
        margin-bottom: 7px;
        font-size: 1.15rem;
    }

    .stat-card h2 {
        font-size: 1.1rem;
    }

    .stat-card span {
        font-size: .58rem;
    }


    /* -------------------------
       FILTER
    ------------------------- */

    .gallery-filter {
        padding: 35px 0 15px;
    }

    .gallery-filter .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .filter-wrapper {
        gap: 17px;
    }

    .category-filter {
        gap: 6px;
    }

    .category-item {
        padding: 6px 11px;
        font-size: .58rem;
    }


    /* -------------------------
       SEARCH
    ------------------------- */

    .gallery-search {
        max-width: 320px;
    }

    .search-box input {
        padding: 10px 13px 10px 38px;
        font-size: .6rem;
    }

    .search-btn {
        left: 13px;
        font-size: .7rem;
    }

    .gallery-result {
        font-size: .58rem;
    }


    /* -------------------------
       GALLERY
    ------------------------- */

    .gallery-page {
        padding: 15px 0 40px;
    }

    .gallery-page .row {
        --bs-gutter-x: .6rem;
        --bs-gutter-y: .8rem;
    }

    .gallery-card {
        border-radius: 12px;
    }

    .gallery-image img {
        height: 160px;
    }

    .gallery-content {
        padding: 11px;
    }

    .gallery-category {
        padding: 3px 7px;
        margin-bottom: 6px;
        font-size: .5rem;
    }

    .gallery-content h5 {
        margin-bottom: 5px;
        font-size: .68rem;
        line-height: 1.35;
    }

    .gallery-content small {
        font-size: .5rem;
    }


    /* -------------------------
       EMPTY
    ------------------------- */

    .empty-gallery {
        padding: 55px 12px;
    }

    .empty-gallery i {
        font-size: 2.5rem;
    }

    .empty-gallery h3 {
        font-size: 1.1rem;
    }

    .empty-gallery p {
        font-size: .62rem;
    }


    /* -------------------------
       PAGINATION
    ------------------------- */

    .gallery-pagination {
        padding-bottom: 45px;
    }
}
