/* =========================================================
   JOHN'S STUFF — PHOTO GALLERY
   PhotoSwipe / Sigal gallery
   ========================================================= */

:root {
    --bg: #edf3f7;
    --navy: #0b2942;
    --navy-light: #1c5b84;
    --teal: #2d8ca8;
    --cyan: #55c5d9;
    --white: #ffffff;
    --text: #1d3242;
    --text-light: #5f7383;
    --shadow: 0 12px 30px rgba(0,0,0,.16);
}

/* =========================================================
   PAGE
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', Arial, sans-serif;
}

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

.container {
    width: min(1280px, 94%);
    margin: 0 auto;
    padding: 35px 0 70px;
}

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

.container > h1 {
    margin: 0 0 35px;
    padding: 28px 35px;

    background:
        linear-gradient(
            135deg,
            var(--navy),
            var(--navy-light)
        );

    border-radius: 22px;

    box-shadow: var(--shadow);

    text-align: center;

    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.container > h1 a {
    color: white;
    text-decoration: none;
}

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

.gallery {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(230px, 1fr));

    gap: 24px;

    margin: 0;
}

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

.gallery figure {
    margin: 0;

    background: white;

    border-radius: 18px;

    overflow: hidden;

    box-shadow: var(--shadow);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

    cursor: pointer;
}

.gallery figure:hover {
    transform: translateY(-6px);

    box-shadow:
        0 20px 40px rgba(0,0,0,.23);
}

/* =========================================================
   THUMBNAIL
   ========================================================= */

.gallery figure a {
    display: block;

    line-height: 0;

    overflow: hidden;
}

.gallery figure img {
    display: block;

    width: 100%;

    height: 260px;

    object-fit: cover;

    transition:
        transform .45s ease;
}

.gallery figure:hover img {
    transform: scale(1.05);
}

/* =========================================================
   CAPTION
   ========================================================= */

.gallery figcaption {
    padding: 14px 16px 17px;

    background: white;

    color: var(--text);

    font-size: .9rem;

    line-height: 1.4;

    text-align: center;
}

/* =========================================================
   PHOTO META DATA
   ========================================================= */

.pswp-caption-content {
    display: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .gallery {
        grid-template-columns:
            repeat(auto-fill, minmax(190px, 1fr));

        gap: 18px;
    }

    .gallery figure img {
        height: 220px;
    }

    .container > h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {

    .container {
        width: 94%;
        padding-top: 20px;
    }

    .gallery {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }

    .gallery figure {
        border-radius: 12px;
    }

    .gallery figure img {
        height: 170px;
    }

    .gallery figcaption {
        padding: 10px 6px;

        font-size: .78rem;
    }

    .container > h1 {
        margin-bottom: 20px;
        padding: 20px 15px;

        font-size: 1.6rem;
    }
}

@media (max-width: 400px) {

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

    .gallery figure img {
        height: 250px;
    }
}
