
/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #333;
    line-height: 1.6;
}


/* =========================================================
   HEADER
========================================================= */

.gallery-header {
    min-height: 330px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 60px 20px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.45)
        ),
        url("../Header_picture.jpg") center / cover no-repeat;

    color: white;
}


.header-content {
    max-width: 900px;
}


.eyebrow {
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}


.gallery-header h1 {
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.1;
    margin-bottom: 20px;
}


.header-description {
    font-size: 20px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.gallery-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    padding: 18px 20px;

    background: #2c3e50;
}


.gallery-nav a {
    color: white;
    text-decoration: none;

    padding: 9px 18px;

    border-radius: 5px;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}


.gallery-nav a:hover {
    background-color: #1abc9c;
    transform: translateY(-2px);
}


.gallery-nav a.active {
    background-color: #2980b9;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.gallery-container {
    max-width: 1500px;

    margin: 0 auto;

    padding: 50px 25px 70px;
}


/* =========================================================
   INTRO
========================================================= */

.gallery-intro {
    max-width: 850px;

    margin: 0 auto 40px;

    text-align: center;
}


.gallery-intro h2 {
    font-size: 36px;

    margin-bottom: 15px;

    color: #2c3e50;
}


.gallery-intro p {
    font-size: 18px;
    color: #666;
}


/* =========================================================
   FILTERS
========================================================= */

.gallery-filters {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 25px;
}


.filter-btn {
    border: none;

    background: white;

    color: #2c3e50;

    padding: 10px 18px;

    border-radius: 25px;

    cursor: pointer;

    font-size: 15px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.filter-btn:hover {
    transform: translateY(-2px);
}


.filter-btn.active {
    background: #2980b9;
    color: white;
}


/* =========================================================
   PHOTO COUNT
========================================================= */

.gallery-status {
    text-align: center;

    margin-bottom: 25px;

    color: #777;

    font-size: 14px;
}


/* =========================================================
   PHOTO GRID
========================================================= */

.photo-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   PHOTO CARD
========================================================= */

.photo-card {
    position: relative;

    overflow: hidden;

    border-radius: 10px;

    background: white;

    cursor: pointer;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.08);

    aspect-ratio: 4 / 3;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.photo-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.15);
}


.photo-card img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}


.photo-card:hover img {
    transform: scale(1.06);
}


/* =========================================================
   PHOTO OVERLAY
========================================================= */

.photo-overlay {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 35px 15px 15px;

    color: white;

    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, 0.8)
        );

    opacity: 0;

    transition: opacity 0.3s ease;
}


.photo-card:hover .photo-overlay {
    opacity: 1;
}


.photo-overlay h3 {
    font-size: 17px;

    margin-bottom: 3px;
}


.photo-overlay p {
    font-size: 13px;

    opacity: 0.9;
}


/* =========================================================
   EMPTY GALLERY
========================================================= */

.empty-gallery {
    display: none;

    text-align: center;

    padding: 80px 20px;

    color: #777;
}


.empty-gallery h3 {
    color: #2c3e50;

    font-size: 25px;

    margin-bottom: 8px;
}


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.92);
}


.lightbox.open {
    display: flex;
}


.lightbox-content {
    max-width: 1100px;

    width: 90%;

    max-height: 90vh;

    text-align: center;
}


.lightbox-content img {
    max-width: 100%;

    max-height: 75vh;

    object-fit: contain;

    border-radius: 5px;
}


.lightbox-caption {
    color: white;

    margin-top: 15px;
}


.lightbox-caption h3 {
    font-size: 20px;

    margin-bottom: 4px;
}


.lightbox-caption p {
    color: #ccc;

    font-size: 14px;
}


/* =========================================================
   LIGHTBOX CONTROLS
========================================================= */

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;

    border: none;

    background: transparent;

    color: white;

    cursor: pointer;

    z-index: 10000;
}


.lightbox-close {
    top: 20px;
    right: 30px;

    font-size: 40px;
}


.lightbox-prev,
.lightbox-next {
    top: 50%;

    transform: translateY(-50%);

    font-size: 45px;

    padding: 20px;
}


.lightbox-prev {
    left: 20px;
}


.lightbox-next {
    right: 20px;
}


.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #1abc9c;
}


/* =========================================================
   FOOTER
========================================================= */

.gallery-footer {
    text-align: center;

    padding: 25px;

    background: #2c3e50;

    color: white;
}


.gallery-footer a {
    color: #1abc9c;

    text-decoration: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .photo-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 750px) {

    .gallery-header {
        min-height: 280px;
    }


    .photo-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }


    .photo-overlay {
        opacity: 1;
    }


    .gallery-container {
        padding: 35px 15px 50px;
    }


    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;

        padding: 10px;
    }
}


@media (max-width: 500px) {

    .photo-grid {
        grid-template-columns: 1fr;
    }


    .gallery-nav a {
        width: 100%;

        text-align: center;
    }


    .gallery-header h1 {
        font-size: 42px;
    }


    .header-description {
        font-size: 17px;
    }
}

