/* =========================================================
   GALLERY PAGE
========================================================= */

.gallery-page-banner {
    background-image: url('../images/page-banner-bg.png');
}


/* =========================================================
   GALLERY SECTION
========================================================= */

.gallery-section {
    padding: 80px 0;
    background: #ffffff;
}


/* =========================================================
   GALLERY HEADING
========================================================= */

.gallery-heading {
    max-width: 750px;
    margin: 0 auto 45px;
    text-align: center;
}

.gallery-heading .section-small-title {
    display: block;

    margin-bottom: 10px;

    color: #f70746;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.gallery-heading h2 {
    margin: 0 0 15px;

    color: #14232e;

    font-family: "Roboto Condensed", sans-serif;

    font-size: 38px;
    font-weight: 700;
}

.gallery-heading h2 span {
    color: #f70746;
}

.gallery-heading p {
    max-width: 650px;

    margin: 0 auto;

    color: #69717a;

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   CATEGORY FILTER
========================================================= */

.gallery-filter {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 45px;
}

.gallery-filter-btn {
    border: 1px solid #e2e5e8;

    background: #ffffff;

    color: #14232e;

    padding: 12px 20px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.3px;

    cursor: pointer;

    transition: all 0.3s ease;
}

.gallery-filter-btn:hover {
    border-color: #f70746;

    background: #f70746;

    color: #ffffff;
}

.gallery-filter-btn.active {
    border-color: #f70746;

    background: #f70746;

    color: #ffffff;
}


/* =========================================================
   GALLERY GRID
========================================================= */

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/* =========================================================
   GALLERY ITEM
========================================================= */

.gallery-item {
    position: relative;

    width: 100%;

    height: 300px;

    overflow: hidden;

    background: #eeeeee;

    cursor: pointer;

    opacity: 1;

    transform: scale(1);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}


/* Hidden Items */

.gallery-item.gallery-hidden {
    display: none;
}


/* Image */

.gallery-item > img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.gallery-item:hover > img {
    transform: scale(1.08);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(20, 35, 46, 0);

    transition: background 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(20, 35, 46, 0.82);
}


/* Overlay Content */

.gallery-overlay-content {
    text-align: center;

    opacity: 0;

    transform: translateY(20px);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.gallery-item:hover .gallery-overlay-content {
    opacity: 1;

    transform: translateY(0);
}


.gallery-overlay-content span {
    display: block;

    margin-bottom: 7px;

    color: #f70746;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;
}


.gallery-overlay-content h3 {
    margin: 0 0 18px;

    color: #ffffff;

    font-family: "Roboto Condensed", sans-serif;

    font-size: 22px;

    font-weight: 700;
}


.gallery-overlay-content i {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    margin: 0 auto;

    border: 1px solid rgba(255, 255, 255, 0.7);

    border-radius: 50%;

    color: #ffffff;

    font-size: 15px;

    transition: all 0.3s ease;
}

.gallery-overlay-content i:hover {
    border-color: #f70746;

    background: #f70746;
}


/* =========================================================
   GALLERY MODAL
========================================================= */

.gallery-modal .modal-dialog {
    max-width: 1200px;
}

.gallery-modal .modal-content {
    border: 0;

    border-radius: 0;

    background: #101820;

    overflow: hidden;
}

.gallery-modal .modal-body {
    position: relative;

    padding: 25px 70px 30px;
}


/* Image Wrapper */

.gallery-modal-image-wrapper {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 550px;

    background: #0b1116;
}

.gallery-modal-image-wrapper img {
    display: block;

    max-width: 100%;
    max-height: 650px;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   MODAL CLOSE
========================================================= */

.gallery-modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 10;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 0;

    border-radius: 50%;

    background: #f70746;

    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

    transition: all 0.3s ease;
}

.gallery-modal-close:hover {
    background: #ffffff;

    color: #14232e;
}


/* =========================================================
   MODAL PREVIOUS / NEXT
========================================================= */

.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;

    top: 50%;

    z-index: 10;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    border: 0;

    border-radius: 50%;

    background: #f70746;

    color: #ffffff;

    font-size: 17px;

    cursor: pointer;

    transform: translateY(-50%);

    transition: all 0.3s ease;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    background: #ffffff;

    color: #14232e;
}

.gallery-modal-prev {
    left: 12px;
}

.gallery-modal-next {
    right: 12px;
}


/* =========================================================
   MODAL CAPTION
========================================================= */

.gallery-modal-caption {
    padding-top: 20px;

    text-align: center;
}

.gallery-modal-caption span {
    color: #f70746;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;
}

.gallery-modal-caption h3 {
    margin: 5px 0 8px;

    color: #ffffff;

    font-family: "Roboto Condensed", sans-serif;

    font-size: 23px;

    font-weight: 700;
}

.gallery-modal-counter {
    color: #aeb6bc !important;

    font-size: 13px !important;

    letter-spacing: 0 !important;
}


/* =========================================================
   BOTTOM CTA
========================================================= */

.gallery-bottom-cta {
    padding: 60px 0;

    background: #f70746;
}

.gallery-bottom-cta-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.gallery-bottom-cta-inner span {
    display: block;

    margin-bottom: 7px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.2px;
}

.gallery-bottom-cta-inner h2 {
    margin: 0;

    color: #ffffff;

    font-family: "Roboto Condensed", sans-serif;

    font-size: 30px;

    font-weight: 700;
}

.gallery-bottom-cta-inner a {
    flex-shrink: 0;

    padding: 15px 28px;

    background: #14232e;

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    transition: all 0.3s ease;
}

.gallery-bottom-cta-inner a:hover {
    background: #ffffff;

    color: #14232e;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        height: 280px;
    }

    .gallery-heading h2 {
        font-size: 34px;
    }

    .gallery-modal-image-wrapper {
        min-height: 450px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .gallery-section {
        padding: 55px 0;
    }

    .gallery-heading {
        margin-bottom: 35px;
    }

    .gallery-heading h2 {
        font-size: 29px;
    }

    .gallery-heading p {
        font-size: 14px;
    }


    /* Filter */

    .gallery-filter {
        gap: 7px;

        margin-bottom: 30px;
    }

    .gallery-filter-btn {
        padding: 10px 13px;

        font-size: 11px;
    }


    /* Grid */

    .gallery-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .gallery-item {
        height: 300px;
    }


    /* Modal */

    .gallery-modal .modal-body {
        padding: 55px 15px 25px;
    }

    .gallery-modal-image-wrapper {
        min-height: 350px;
    }

    .gallery-modal-image-wrapper img {
        max-height: 450px;
    }

    .gallery-modal-prev,
    .gallery-modal-next {
        width: 42px;
        height: 42px;

        font-size: 14px;
    }

    .gallery-modal-prev {
        left: 8px;
    }

    .gallery-modal-next {
        right: 8px;
    }

    .gallery-modal-caption h3 {
        font-size: 20px;
    }


    /* CTA */

    .gallery-bottom-cta {
        padding: 45px 0;
    }

    .gallery-bottom-cta-inner {
        flex-direction: column;

        align-items: flex-start;
    }

    .gallery-bottom-cta-inner h2 {
        font-size: 24px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .gallery-item {
        height: 260px;
    }

    .gallery-filter-btn {
        padding: 9px 11px;

        font-size: 10px;
    }

    .gallery-modal-image-wrapper {
        min-height: 280px;
    }

}