@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Roboto+Slab:wght@500;600;700&display=swap");

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    color: var(--text-color);
    background: var(--white-color);
    font-family: "Manrope", sans-serif;
    overflow-x: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(1170px, calc(100% - 40px));
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.section-label {
    margin: 0 0 13px;
    color: var(--secondary-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

/* Page Banner */

.page-banner {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1920&q=90");
    background-position: center;
    background-size: cover;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 19, 39, 0.94) 0%, rgba(5, 29, 57, 0.82) 43%, rgba(5, 29, 57, 0.45) 100%),
        linear-gradient(0deg, rgba(3, 19, 39, 0.25), rgba(3, 19, 39, 0.25));
}

.page-banner-content {
    position: relative;
    z-index: 1;
    max-width: 710px;
    padding: 85px 0;
}

.page-banner-content h1 {
    margin: 0;
    color: var(--white-color);
    font-family: "Roboto Slab", serif;
    font-size: clamp(38px, 4.5vw, 56px);
    line-height: 1.15;
}

.page-banner-content h1 span {
    color: var(--secondary-color);
}

.page-banner-description {
    max-width: 600px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.8;
}

/* Gallery Page Section */

.gallery-page-section {
    background: var(--light-bg);
}

/* Filter Buttons */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 9px 22px;
    color: var(--text-color);
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.filter-btn.active {
    color: var(--white-color);
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Gallery Grid */

/* .gallery-grid-page {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
} */

/* .gallery-item-page {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--white-color);
    box-shadow: 0 5px 18px rgba(8, 25, 48, 0.07);
    transition: all 0.35s ease;
} */

/* .gallery-item-page:hover {
    box-shadow: 0 15px 35px rgba(8, 25, 48, 0.15);
    transform: translateY(-6px);
}

.gallery-image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-image-wrapper img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.gallery-item-page:hover .gallery-image-wrapper img {
    transform: scale(1.09);
}

.gallery-overlay-page {
    display: none;
} */

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    color: var(--secondary-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--secondary-color);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* CTA */

.cta-section {
    padding: 55px 0;
    background:
        linear-gradient(90deg, rgba(3, 19, 39, 0.94), rgba(3, 19, 39, 0.78)),
        url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=85") center / cover;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta-content p {
    margin: 0 0 8px;
    color: var(--secondary-color);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.cta-content h2 {
    margin: 0;
    color: var(--white-color);
    font-family: "Roboto Slab", serif;
    font-size: clamp(27px, 3vw, 38px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.btn span {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn:hover span {
    transform: translateX(4px);
}

.btn-primary {
    color: var(--white-color);
    background: var(--secondary-color);
}

.btn-primary:hover {
    color: var(--white-color);
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(245, 130, 32, 0.26);
}

/* Scroll Animation */

.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up {
    transform: translateY(28px);
}

.reveal-left {
    transform: translateX(-35px);
}

.reveal-right {
    transform: translateX(35px);
}

.reveal-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */

@media (max-width: 1100px) {
    /* .gallery-grid-page {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    } */

    .lightbox-prev {
        left: -60px;
    }

    .lightbox-next {
        right: -60px;
    }
}

@media (max-width: 991px) {
    .section-padding {
        padding: 75px 0;
    }

    .page-banner {
        min-height: 320px;
    }

    /* .page-banner-content {
        padding: 65px 0;
    }

    .gallery-grid-page {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    } */

    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .lightbox-prev {
        left: -50px;
    }

    .lightbox-next {
        right: -50px;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 32px, 1170px);
    }

    .section-padding {
        padding: 62px 0;
    }

    .page-banner {
        min-height: 290px;
        background-position: 60% center;
    }

    .page-banner-content {
        padding: 55px 0 65px;
    }

    .page-banner-content h1 {
        font-size: 38px;
    }

    .page-banner-description {
        font-size: 14px;
    }

    .gallery-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 7px 14px;
        font-size: 11px;
    }

    /* .gallery-grid-page {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-image-wrapper {
        height: 240px;
    } */

    .lightbox-close {
        top: -40px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }

    .lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .cta-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .page-banner-content h1 {
        font-size: 32px;
    }

    /* .gallery-image-wrapper {
        height: 200px;
    }

    .gallery-overlay-page h3 {
        font-size: 14px;
    } */

    .view-btn {
        padding: 6px 16px;
        font-size: 10px;
    }
}


/* Masonry Gallery Layout */

.gallery-grid-page {
    columns: 4;
    column-gap: 24px;
}

.gallery-item-page {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 24px;
    overflow: hidden;
    break-inside: avoid;
    border-radius: 6px;
    background: var(--white-color);
    box-shadow: 0 5px 18px rgba(8, 25, 48, 0.07);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.gallery-item-page:hover {
    box-shadow: 0 15px 35px rgba(8, 25, 48, 0.15);
    transform: translateY(-4px);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    cursor: pointer;
}

.gallery-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.gallery-item-page:hover .gallery-image-wrapper img {
    transform: scale(1.06);
}

/* Responsive Masonry */

@media (max-width: 1100px) {
    .gallery-grid-page {
        columns: 3;
        column-gap: 20px;
    }

    .gallery-item-page {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .gallery-grid-page {
        columns: 2;
        column-gap: 16px;
    }

    .gallery-item-page {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-grid-page {
        columns: 1;
    }
}