/*
Theme Name: PamArt
Theme URI: https://pamart.love
Author: PamArt
Description: Custom gallery theme for PamArt artwork.
Version: 1.0
*/

/* ==============================
   BASE
============================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #101112;
    color: #f3f0ea;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body.lightbox-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button {
    font: inherit;
}


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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(16, 17, 18, 0.94);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header-inner {
    width: min(1400px, calc(100% - 48px));

    min-height: 76px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    color: #f3f0ea;

    font-family: Georgia, serif;

    font-size: 1.5rem;
    font-weight: 600;

    text-decoration: none;
}

.site-nav a {
    color: #ccc;

    font-size: 0.9rem;

    text-decoration: none;

    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: #fff;
}


/* ==============================
   HERO
============================== */

.hero {
    padding: 120px 24px 100px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(180, 140, 80, 0.14),
            transparent 45%
        );
}

.hero-inner {
    width: min(900px, 100%);

    margin: 0 auto;

    text-align: center;
}

.eyebrow {
    margin: 0 0 14px;

    color: #c6a86a;

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.hero h1 {
    margin: 0;

    font-family: Georgia, serif;

    font-size: clamp(3.2rem, 7vw, 6rem);

    line-height: 0.95;

    font-weight: 400;
}

.hero-text {
    max-width: 650px;

    margin: 30px auto 35px;

    color: #aaa;

    font-size: 1.05rem;

    line-height: 1.7;
}

.hero-button {
    display: inline-block;

    padding: 13px 24px;

    border: 1px solid rgba(255,255,255,0.25);

    border-radius: 4px;

    color: #fff;

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.hero-button:hover {
    background: rgba(255,255,255,0.08);

    border-color: rgba(255,255,255,0.5);

    transform: translateY(-2px);
}


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

.gallery-section {
    width: min(1500px, calc(100% - 56px));

    margin: 0 auto;

    padding: 70px 0 120px;
}

.gallery-heading {
    max-width: 760px;

    margin: 0 auto 55px;

    text-align: center;
}

.gallery-heading h2 {
    margin: 0 0 14px;

    font-family: Georgia, serif;

    font-size: clamp(2.4rem, 5vw, 4rem);

    line-height: 1.05;

    font-weight: 400;
}

.gallery-heading > p:last-child {
    max-width: 560px;

    margin: 0 auto;

    color: #999;

    font-size: 1rem;

    line-height: 1.7;
}


/*
   Masonry-style artwork gallery.

   Artwork keeps its original proportions.
   Nothing is cropped.
*/

.pamart-gallery {
    columns: 3 320px;

    column-gap: 28px;
}

.gallery-item {
    break-inside: avoid;

    margin: 0 0 32px;
}


/* Artwork button */

.gallery-link {
    position: relative;

    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;

    color: inherit;

    cursor: pointer;

    text-align: left;
}


/* Artwork image */

.gallery-image-wrap {
    position: relative;

    overflow: hidden;

    background: #18191b;

    border-radius: 3px;

    box-shadow:
        0 8px 30px rgba(0,0,0,0.18);

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

.gallery-image {
    display: block;

    width: 100%;

    height: auto;

    transform: scale(1);

    transition:
        transform 0.6s cubic-bezier(.2,.7,.2,1),
        filter 0.45s ease;
}


/* Hover overlay */

.gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.55),
            rgba(0,0,0,0.05) 65%
        );

    opacity: 0;

    transition: opacity 0.35s ease;
}

.gallery-overlay span {
    padding: 11px 20px;

    border: 1px solid rgba(255,255,255,0.7);

    border-radius: 2px;

    background: rgba(10,10,10,0.45);

    color: #fff;

    font-size: 0.72rem;

    font-weight: 600;

    letter-spacing: 0.14em;

    text-transform: uppercase;

    backdrop-filter: blur(5px);

    transform: translateY(8px);

    transition: transform 0.35s ease;
}


/* Desktop hover */

.gallery-link:hover .gallery-image-wrap {
    transform: translateY(-3px);

    box-shadow:
        0 18px 45px rgba(0,0,0,0.35);
}

.gallery-link:hover .gallery-image {
    transform: scale(1.025);

    filter: brightness(0.82);
}

.gallery-link:hover .gallery-overlay {
    opacity: 1;
}

.gallery-link:hover .gallery-overlay span {
    transform: translateY(0);
}


/* Keyboard accessibility */

.gallery-link:focus-visible {
    outline: 2px solid #c6a86a;

    outline-offset: 5px;
}


/* Artwork title */

.gallery-meta {
    padding: 14px 3px 0;
}

.gallery-title {
    margin: 0;

    color: #ddd;

    font-family: Georgia, serif;

    font-size: 1.05rem;

    line-height: 1.35;

    font-weight: 400;
}


/* Empty gallery */

.gallery-empty {
    padding: 90px 20px;

    border: 1px solid rgba(255,255,255,0.08);

    color: #888;

    text-align: center;
}


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

.pamart-lightbox {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px 90px;

    background: rgba(5,6,7,0.96);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.pamart-lightbox.is-open {
    opacity: 1;

    visibility: visible;
}

.lightbox-content {
    position: relative;

    max-width: min(1200px,90vw);

    max-height: 92vh;

    display: flex;

    flex-direction: column;

    align-items: center;
}

.lightbox-image {
    display: block;

    max-width: 90vw;

    max-height: 82vh;

    width: auto;

    height: auto;

    object-fit: contain;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.6);
}

.lightbox-caption {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-top: 15px;
}

.lightbox-title {
    margin: 0;

    color: #eee;

    font-family: Georgia, serif;

    font-size: 1.1rem;

    font-weight: 400;
}

.lightbox-counter {
    color: #888;

    font-size: 0.85rem;
}

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

    border: 0;

    background: transparent;

    color: #fff;

    cursor: pointer;

    opacity: 0.7;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-close {
    top: 20px;

    right: 25px;

    font-size: 3rem;

    line-height: 1;
}

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

    width: 60px;

    height: 80px;

    font-size: 3rem;

    transform: translateY(-50%);
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

.lightbox-prev:hover {
    transform:
        translateY(-50%)
        translateX(-3px);
}

.lightbox-next:hover {
    transform:
        translateY(-50%)
        translateX(3px);
}


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

.site-footer {
    padding: 35px 24px;

    border-top: 1px solid rgba(255,255,255,0.08);

    color: #777;

    font-size: 0.8rem;

    text-align: center;
}

.site-footer p {
    margin: 0;
}


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

@media (max-width: 700px) {

    .site-header-inner {
        width: calc(100% - 30px);

        min-height: 65px;
    }

    .hero {
        padding: 75px 20px 65px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .gallery-section {
        width: calc(100% - 28px);

        padding: 55px 0 80px;
    }

    .gallery-heading {
        margin-bottom: 35px;
    }

    .gallery-heading h2 {
        font-size: 2.4rem;
    }

    .pamart-gallery {
        columns: 2 140px;

        column-gap: 12px;
    }

    .gallery-item {
        margin-bottom: 18px;
    }

    .gallery-meta {
        padding: 9px 2px 0;
    }

    .gallery-title {
        font-size: 0.9rem;
    }

    /*
       Hover effects aren't useful
       on touchscreens.
    */

    .gallery-overlay {
        display: none;
    }

    .gallery-image-wrap {
        box-shadow:
            0 5px 18px rgba(0,0,0,0.2);
    }

    .pamart-lightbox {
        padding: 50px 15px 30px;
    }

    .lightbox-image {
        max-width: 94vw;

        max-height: 78vh;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 42px;

        height: 60px;

        font-size: 2rem;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }

    .lightbox-caption {
        padding: 10px 5px;
    }
}

/* ------------------------------
   About PamArt
------------------------------ */

.about-section {
    padding: 110px 24px;

    border-top: 1px solid rgba(255,255,255,0.08);

    background:
        radial-gradient(
            circle at 50% 100%,
            rgba(180, 140, 80, 0.10),
            transparent 50%
        );
}

.about-inner {
    width: min(900px, 100%);
    margin: 0 auto;
}

.about-heading {
    margin-bottom: 35px;
}

.about-heading h2 {
    margin: 0;

    font-family: Georgia, serif;

    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;

    line-height: 1.1;
}

.about-content {
    max-width: 720px;

    color: #aaa;

    font-size: 1.05rem;
    line-height: 1.8;
}

.about-content p {
    margin: 0 0 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-intro {
    color: #ddd;

    font-family: Georgia, serif;

    font-size: 1.3rem;
    line-height: 1.7;
}


/* ------------------------------
   About - Mobile
------------------------------ */

@media (max-width: 700px) {

    .about-section {
        padding: 75px 20px;
    }

    .about-heading {
        margin-bottom: 25px;
    }

    .about-intro {
        font-size: 1.15rem;
    }

}

/* WordPress About page content */
.about-content > p:first-child {
    color: #ddd;
    font-family: Georgia, serif;
    font-size: 1.3rem;
    line-height: 1.7;
}

.about-content > p:last-child {
    margin-bottom: 0;
}
