/* =========================================
   TRAVEL GALLERY
========================================= */

.travel-gallery {
    width: 100%;
    padding: 100px 20px;
    background: #ffffff;
    box-sizing: border-box;
    overflow: hidden;
}

.gallery-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}

/* Gallery Bottom */
.gallery-bottom{
    text-align: center;
    margin-top: 50px;
}

.gallery-bottom p{
    margin-bottom: 20px;
    color: #14213d;
    font-size: 20px;
    font-weight: 500;
}

.gallery-cta{
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 14px 30px;
    background: #14213d;
    color: #fff;
    text-decoration: none;

    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gallery-cta:hover{
    background: #c59b45;
    transform: translateY(-3px);
}

.gallery-cta i{
    transition: transform 0.3s ease;
}

.gallery-cta:hover i{
    transform: translateX(5px);
}


/* =========================================
   HEADING
========================================= */

.gallery-heading {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.gallery-tag {
    display: inline-block;
    margin-bottom: 12px;

    color: #c59b45;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;
}

.gallery-heading h2 {
    margin: 0 0 15px;

    color: #14213d;

    font-size: 50px;
    line-height: 1.15;

    font-weight: 800;
}

.gallery-heading h2 span {
    color: #c59b45;
}

.gallery-heading p {
    margin: 0;

    color: #737d8f;

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================
   FILTER BUTTONS
========================================= */

.gallery-filters {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 35px;
}

.gallery-filter {
    border: 1px solid #e3e6ec;

    background: #ffffff;

    color: #566174;

    padding: 10px 18px;

    border-radius: 50px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;
}

.gallery-filter:hover {
    border-color: #c59b45;
    color: #b48a35;
}

.gallery-filter.active {
    background: #14213d;
    border-color: #14213d;

    color: #ffffff;
}


/* =========================================
   GALLERY GRID
========================================= */

.gallery-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================
   GALLERY ITEM
========================================= */

.gallery-item {
    width: 100%;
    height: 260px;

    min-width: 0;

    position: relative;

    overflow: hidden;

    border-radius: 16px;

    background: #eeeeee;

    cursor: pointer;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.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);
}


/* =========================================
   OVERLAY
========================================= */

.gallery-overlay {
    position: absolute;

    inset: 0;

    padding: 22px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 15px;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.78),
            rgba(0, 0, 0, 0.05) 65%
        );

    opacity: 0;

    transition: opacity 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay div {
    min-width: 0;
}

.gallery-overlay span {
    display: block;

    margin-bottom: 5px;

    color: #d8b55e;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    font-weight: 700;
}

.gallery-overlay h3 {
    margin: 0;

    color: #ffffff;

    font-size: 19px;

    line-height: 1.3;
}


/* =========================================
   VIEW BUTTON
========================================= */

.gallery-view {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: #ffffff;

    color: #14213d;

    font-size: 14px;

    cursor: pointer;

    transition: all 0.3s ease;
}

.gallery-view:hover {
    background: #c59b45;
    color: #ffffff;

    transform: scale(1.08);
}


/* =========================================
   LIGHTBOX
========================================= */

.gallery-lightbox {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(7, 13, 25, 0.94);

    box-sizing: border-box;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-content {
    width: 100%;
    max-width: 1100px;

    max-height: 90vh;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxImage {
    display: block;

    max-width: 90vw;
    max-height: 82vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 10px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}


/* =========================================
   LIGHTBOX BUTTONS
========================================= */

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: #ffffff;

    color: #14213d;

    cursor: pointer;

    z-index: 5;

    transition: all 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: #c59b45;
    color: #ffffff;
}

.lightbox-close {
    top: -20px;
    right: 0;
}

.lightbox-prev {
    left: 10px;
    top: 50%;

    transform: translateY(-50%);
}

.lightbox-next {
    right: 10px;
    top: 50%;

    transform: translateY(-50%);
}

.lightbox-caption {
    position: absolute;

    bottom: -38px;

    left: 50%;

    transform: translateX(-50%);

    color: #ffffff;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) {

    .gallery-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================
   TABLET / SMALL LAPTOP
========================================= */

@media (max-width: 800px) {

    .travel-gallery {
        padding: 75px 18px;
    }

    .gallery-heading h2 {
        font-size: 40px;
    }

    .gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }

    .gallery-item {
        height: 230px;
    }

    .gallery-overlay {
        opacity: 1;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .travel-gallery {
        padding: 60px 14px;
    }

    .gallery-heading {
        margin-bottom: 30px;
    }

    .gallery-tag {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .gallery-heading h2 {
        font-size: 31px;
    }

    .gallery-heading p {
        font-size: 13px;
        line-height: 1.7;
    }


    /* Horizontal Filter Scroll */

    .gallery-filters {
        justify-content: flex-start;

        flex-wrap: nowrap;

        overflow-x: auto;

        padding: 4px 2px 12px;

        margin-bottom: 20px;

        scrollbar-width: none;
    }

    .gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .gallery-filter {
        flex: 0 0 auto;

        padding: 9px 15px;

        font-size: 12px;
    }


    /* One Column */

    .gallery-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .gallery-item {
        width: 100%;
        height: 260px;

        border-radius: 14px;
    }

    .gallery-overlay {
        padding: 18px;
    }

    .gallery-overlay h3 {
        font-size: 17px;
    }

    .gallery-view {
        width: 40px;
        height: 40px;
    }


    /* Lightbox */

    .gallery-lightbox {
        padding: 15px;
    }

    #lightboxImage {
        max-width: 94vw;
        max-height: 75vh;

        border-radius: 7px;
    }

    .lightbox-close {
        top: -55px;
        right: 0;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-caption {
        bottom: -35px;

        font-size: 12px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .travel-gallery {
        padding: 50px 12px;
    }

    .gallery-heading h2 {
        font-size: 28px;
    }

    .gallery-heading p {
        font-size: 12px;
    }

    .gallery-item {
        height: 230px;
    }

    .gallery-filter {
        padding: 8px 13px;
        font-size: 11px;
    }

}