/*
Theme Name: Portfolio Photo Theme
Theme URI: https://github.com/stuartlondon/photo-portfolio
Description: Fine art photography portfolio theme — gallery wall aesthetic, dramatic gradient, custom image lightbox
Author: Stuart Hunt
Author URI: https://photos.1976.london/
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portfolio-photo-theme
Tags: portfolio, photography, dark, one-column, custom-menu, featured-images, full-width-template
*/

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    /* Gallery room at dusk — midnight navy → warm mahogany → champagne */
    background: linear-gradient(to top, #f0d9b5, #2c1810, #0d1b2a);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-height: 100vh;
    padding: 20px 0;
}

/* ===============================
   FRONT PAGE - HERO STYLING
   =============================== */

.front-page {
    padding: 0;
    min-height: 100vh;
}

.hero-container {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 80px 20px;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(240, 217, 181, 0.9);
    color: #2c1810;
    border-color: rgba(240, 217, 181, 0.9);
    font-weight: 600;
}

.btn-secondary:hover {
    background: transparent;
    color: #f0d9b5;
    border-color: rgba(240, 217, 181, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Hero decorative ambient circles */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    animation: ambientFloat 8s ease-in-out infinite;
}

.circle-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    left: -200px;
    background: radial-gradient(circle, rgba(44, 24, 16, 0.3) 0%, rgba(13, 27, 42, 0.1) 60%, transparent 100%);
    animation-delay: 0s;
}

.circle-2 {
    width: 350px;
    height: 350px;
    bottom: -80px;
    right: -100px;
    background: radial-gradient(circle, rgba(240, 217, 181, 0.12) 0%, transparent 70%);
    animation-delay: 3s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 30%;
    right: 10%;
    background: radial-gradient(circle, rgba(240, 217, 181, 0.08) 0%, transparent 70%);
    animation-delay: 5s;
}

@keyframes ambientFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
    50%       { transform: translateY(-25px) scale(1.05); opacity: 0.9; }
}

/* ===============================
   SITE HEADER & NAVIGATION
   =============================== */

.site-title {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1000;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: white;
    text-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 8px 40px rgba(13, 27, 42, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 10px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.site-title:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(255, 255, 255, 0.13);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.brand-cluster {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-cluster .site-title {
    position: static;
    top: auto;
    left: auto;
}

.studio-gh-link {
    position: fixed;
    left: 20px;
    bottom: 18px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.45),
        0 8px 40px rgba(13, 27, 42, 0.35);
    text-decoration: none;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    animation: ghPulseFlash 10s ease-in-out infinite;
    transform-origin: center;
}

.studio-gh-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.studio-gh-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(360deg) scale(1.04);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.5),
        0 0 22px rgba(255, 255, 255, 0.35);
}

.studio-gh-link:focus-visible {
    outline: 2px solid rgba(240, 217, 181, 0.95);
    outline-offset: 2px;
}

@keyframes ghPulseFlash {
    0%, 84% {
        color: rgba(255, 255, 255, 0.82);
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.45),
            0 8px 40px rgba(13, 27, 42, 0.35);
    }
    86%, 88% {
        color: rgba(255, 255, 255, 1);
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.45),
            0 0 18px rgba(255, 255, 255, 0.45);
    }
    90%, 92% {
        color: rgba(255, 255, 255, 1);
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.45),
            0 0 22px rgba(255, 255, 255, 0.52);
    }
    94%, 96% {
        color: rgba(255, 255, 255, 1);
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.45),
            0 0 16px rgba(255, 255, 255, 0.4);
    }
    100% {
        color: rgba(255, 255, 255, 0.82);
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.45),
            0 8px 40px rgba(13, 27, 42, 0.35);
    }
}

/* Hamburger Menu */
.hamburger {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    padding: 15px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hamburger span {
    display: block;
    width: 35px;
    height: 4px;
    background: white;
    margin-bottom: 8px;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Side Panel Navigation */
.side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 90vw);
    height: 100vh;
    background: linear-gradient(135deg,
        rgba(13, 27, 42, 0.97) 0%,
        rgba(44, 24, 16, 0.97) 60%,
        rgba(240, 217, 181, 0.15) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
    padding: 120px 50px 50px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.side-panel.open {
    transform: translateX(0);
}

.side-menu {
    list-style: none;
}

.side-menu li {
    margin-bottom: 40px;
    transform: translateX(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.side-panel.open .side-menu li {
    transform: translateX(0);
    opacity: 1;
}

.side-menu li:nth-child(1) { transition-delay: 0.1s; }
.side-menu li:nth-child(2) { transition-delay: 0.2s; }
.side-menu li:nth-child(3) { transition-delay: 0.3s; }
.side-menu li:nth-child(4) { transition-delay: 0.4s; }

.side-menu a {
    color: white;
    text-decoration: none;
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    display: block;
    padding: 15px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.side-menu a:hover {
    transform: translateX(10px) scale(1.05);
    text-shadow:
        0 6px 20px rgba(0, 0, 0, 0.6),
        0 3px 12px rgba(240, 217, 181, 0.6);
    border-bottom-color: rgba(240, 217, 181, 0.6);
    color: #f0d9b5;
}

/* ===============================
   FORM MESSAGES
   =============================== */

.form-message {
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-message.success {
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.9), rgba(240, 217, 181, 0.9));
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.form-message.success h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-message.error {
    background: linear-gradient(135deg, rgba(255, 87, 87, 0.9), rgba(255, 154, 154, 0.9));
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===============================
   PAGE HEADER & CONTENT WRAPPER
   =============================== */

.page-header {
    background: transparent;
    padding: 6rem 0 4rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: clamp(2.6rem, 5vw, 3.5rem);
    font-weight: 300;
    margin: 0 0 1rem 0;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-description {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    opacity: 0.9;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 40rem;
}

.page-content {
    max-width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 4rem 24px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Image gallery page — transparent content area so gallery hangs on the gradient */
.page-template-page-image-gallery .page-content {
    max-width: min(1400px, calc(100% - 48px));
    padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem) clamp(3rem, 5vw, 5rem);
    margin-top: -1rem;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.page-template-page-image-gallery .container {
    max-width: 1360px;
    padding: 0;
}

/* ===============================
   CONTACT FORM
   =============================== */

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-section {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 300;
}

.contact-info p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

.artist-contact-form {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c1810;
    box-shadow: 0 0 0 3px rgba(44, 24, 16, 0.1);
    transform: translateY(-2px);
}

.submit-btn {
    background: linear-gradient(45deg, #f0d9b5, #2c1810, #0d1b2a);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    box-shadow: 0 8px 25px rgba(13, 27, 42, 0.4);
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 15px 40px rgba(13, 27, 42, 0.5),
        0 8px 25px rgba(44, 24, 16, 0.3);
    background: linear-gradient(45deg, #0d1b2a, #2c1810, #f0d9b5);
}

/* ===============================
   IMAGE GALLERY — WALL AESTHETIC
   =============================== */

.image-gallery-section {
    margin-top: 0;
}

.image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 3vw, 3.5rem);
    padding: clamp(1rem, 2vw, 2rem) 0 4rem;
    align-items: start;
}

/* Each photo hangs on the gallery wall */
.gallery-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle alternating tilt — like individually hung prints */
.gallery-item:nth-child(3n + 1) { transform: rotate(-0.6deg); }
.gallery-item:nth-child(3n + 2) { transform: rotate(0.4deg); }
.gallery-item:nth-child(3n)     { transform: rotate(-0.3deg); }

/* Hover: print lifts off the wall */
.gallery-item:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.02) !important;
    z-index: 10;
}

.gallery-item-inner {
    background: #fff;
    padding: 12px 12px 0 12px; /* mat top and sides */
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.25),
        0 12px 32px rgba(0, 0, 0, 0.35),
        0 24px 64px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.35s ease;
}

.gallery-item:hover .gallery-item-inner {
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 20px 48px rgba(0, 0, 0, 0.45),
        0 40px 80px rgba(0, 0, 0, 0.25);
}

.gallery-item-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #1a1a1a;
}

.gallery-item-image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-item-image-wrap img {
    transform: scale(1.04);
}

/* Zoom icon overlay on hover */
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    background: rgba(13, 27, 42, 0.3);
}

.gallery-item-zoom {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(240, 217, 181, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #2c1810;
}

.gallery-item:hover .gallery-item-zoom {
    opacity: 1;
    transform: scale(1);
}

.gallery-item-zoom svg {
    width: 22px;
    height: 22px;
    stroke: #2c1810;
}

/* Caption area — the mat bottom strip */
.gallery-item-caption {
    background: #fff;
    padding: 14px 12px 16px;
    text-align: left;
}

.gallery-item-caption h3 {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gallery-item-caption p {
    font-size: clamp(0.78rem, 1vw, 0.88rem);
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* No images fallback */
.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0;
    font-size: 1.1rem;
}

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

#image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#image-lightbox.active {
    opacity: 1;
}

.lightbox-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(90vw, 1100px);
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

.lightbox-close:hover {
    color: #f0d9b5;
    transform: scale(1.15);
}

.lightbox-image-wrap {
    position: relative;
    background: #111;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.85);
    transition: transform 0.3s ease;
    max-height: calc(90vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#image-lightbox.active .lightbox-image-wrap {
    transform: scale(1);
}

#lightbox-img {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 80px);
    object-fit: contain;
    user-select: none;
}

.lightbox-caption {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-align: center;
    max-width: 600px;
    letter-spacing: 0.3px;
}

/* Prev / Next navigation arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(240, 217, 181, 0.15);
    border: 1px solid rgba(240, 217, 181, 0.3);
    color: white;
    font-size: 2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 10001;
    user-select: none;
    line-height: 1;
    padding: 0;
    padding-bottom: 2px;
}

.lightbox-nav:hover {
    background: rgba(240, 217, 181, 0.35);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

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

@media (max-width: 1100px) {
    .page-template-page-image-gallery .page-content {
        max-width: min(1080px, calc(100% - 32px));
    }

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

    .lightbox-prev { left: -56px; }
    .lightbox-next { right: -56px; }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .circle-1,
    .circle-2,
    .circle-3 {
        display: none;
    }

    .container {
        padding: 0 15px;
    }

    .page-header {
        padding: 5rem 0 3rem 0;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-content {
        margin-top: -1rem;
        border-radius: 15px;
    }

    .page-template-page-image-gallery .page-content {
        max-width: calc(100% - 20px);
        padding: 0.5rem 0 1rem;
        margin-top: -0.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .artist-contact-form {
        padding: 2rem;
    }

    .image-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    /* Cancel tilt on mobile for cleaner layout */
    .gallery-item:nth-child(3n + 1),
    .gallery-item:nth-child(3n + 2),
    .gallery-item:nth-child(3n) {
        transform: rotate(0deg);
    }

    .gallery-item:hover {
        transform: translateY(-5px) scale(1.01) !important;
    }

    /* Lightbox nav — move inside on mobile */
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }
}

@media (max-width: 560px) {
    .page-content {
        padding: 2.5rem 16px;
    }

    .page-template-page-image-gallery .page-content {
        max-width: calc(100% - 16px);
    }

    .contact-info {
        margin-bottom: 1.75rem;
    }

    .contact-info h3 {
        font-size: 1.6rem;
    }

    .contact-info p {
        font-size: 1.05rem;
    }

    .artist-contact-form {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.8rem;
    }

    .submit-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .image-gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .brand-cluster {
        top: 18px;
        left: 14px;
        gap: 8px;
    }

    .site-title {
        font-size: 16px;
        top: auto;
        left: auto;
        padding: 8px 12px;
        letter-spacing: 1.2px;
        max-width: calc(100vw - 92px);
    }

    .studio-gh-link {
        left: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .studio-gh-link svg {
        width: 20px;
        height: 20px;
    }

    .hamburger {
        top: 18px;
        right: 14px;
        padding: 11px;
        border-radius: 10px;
    }

    .hamburger span {
        width: 28px;
        height: 3px;
        margin-bottom: 6px;
    }
}

@media (max-width: 360px) {
    .brand-cluster {
        top: 14px;
        left: 10px;
        gap: 7px;
    }

    .site-title {
        font-size: 14px;
        top: auto;
        left: auto;
        padding: 7px 10px;
        border-radius: 10px;
        max-width: calc(100vw - 76px);
    }

    .studio-gh-link {
        left: 10px;
        bottom: 10px;
        width: 36px;
        height: 36px;
    }

    .studio-gh-link svg {
        width: 18px;
        height: 18px;
    }

    .hamburger {
        top: 14px;
        right: 10px;
        padding: 10px;
    }

    .hamburger span {
        width: 24px;
    }
}
