@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #f8fafc;
    color: #1f2937;
    overflow-x: hidden;
}

.gallery-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 72px;
    z-index: 1000;
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    box-shadow: 0 4px 20px #00000012;
}

.logo {
    color: #0f766e;
    font-size: 23px;
    font-weight: 800;
    text-decoration: none;
}

.gallery-header nav {
    display: flex;
    gap: 25px;
}

.gallery-header nav a {
    color: #1f2937;
    text-decoration: none;
}

.gallery-header nav a:hover,
.gallery-header nav .active {
    color: #0f766e;
}

.gallery-hero {
    margin-top: 72px;
    min-height: 500px;
    display: grid;
    place-items: center;
    padding: 30px;
    background:
        linear-gradient(#062e2b88, #062e2b88),
        url("images/logo.webp.png") center 50% / cover no-repeat;
}

.gallery-title {
    text-align:center;
    color: white;
    padding: 30px;
    /* background: #00000050; */
    border-radius: 18px;
    max-width: 700px;
}

.gallery-title p,
.section-heading p,
.trip-content>p {
    color: #0f766e;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 12px;
}

.gallery-title p {
    color: #fbbf24;
}

.gallery-title h1 {
    font-size: clamp(30px, 5vw, 52px);
    margin: 12px 0;
}

.gallery-section {
    width: min(1200px, 90%);
    margin: auto;
    padding: 65px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin: 8px 0;
}

.section-heading span {
    color: #64748b;
    font-size: 14px;
}

.trip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.trip-card {
    overflow: hidden;
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 28px #0f172a12;
    transition: transform .3s;
}

.trip-card:hover {
    transform: translateY(-5px);
}

.trip-card>img,
.coming-art {
    width: 100%;
    /* height: 270px; */
    object-fit: cover;
}

.coming-art {
    display: grid;
    place-items: center;
    font-size: 70px;
    background: #d1fae5;
}

.trip-content {
    padding: 22px;
}

.trip-content h3 {
    margin: 8px 0 18px;
    font-size: 23px;
}

.view-gallery,
.back-button {
    padding: 11px 20px;
    border: 0;
    border-radius: 30px;
    background: #0f766e;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.view-gallery:hover {
    background: #115e59;
}

.back-button {
    margin-bottom: 28px;
    background: white;
    color: #0f766e;
    border: 1px solid #0f766e;
}

[hidden] {
    display: none !important;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 320px;
    border: 0;
    border-radius: 15px;
    overflow: hidden;
    cursor: zoom-in;
    background: #e5e7eb;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 55px;
    background: #000000f2;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    background: none;
    border: none;
    font-size: 45px;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 15px;
    font-size: 35px;
    color: white;
    background: #ffffff25;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

#prevPhoto {
    left: 12px;
}

#nextPhoto {
    right: 12px;
}

.photo-counter {
    position: absolute;
    bottom: 18px;
    color: white;
}

footer {
    padding: 28px;
    text-align: center;
    color: #d1d5db;
    background: #0f172a;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #fbbf24;
    text-decoration: none;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .gallery-header {
        height: 100px;
        padding: 10px 4%;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .logo {
        font-size: 20px;
    }

    .gallery-header nav {
        gap: 20px;
    }

    .gallery-header nav a {
        font-size: 13px;
    }

    .gallery-hero {
        margin-top: 100px;
        min-height: 320px;
        padding: 15px;
    }

    .gallery-title {
        padding: 20px 12px;
    }

    .gallery-title h1 {
        font-size: 30px;
    }

    .gallery-title span {
        font-size: 12px;
    }

    .gallery-section {
        width: 92%;
        padding: 45px 0;
    }

    .trip-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .trip-card>img,
    .coming-art {
        height: 250px;
    }

    .gallery-item {
        height: 300px;
    }

    .lightbox {
        padding: 45px 10px;
    }

    .lightbox img {
        max-height: 75vh;
    }

    #prevPhoto {
        left: 3px;
    }

    #nextPhoto {
        right: 3px;
    }
}

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#lightboxVideo {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
}