:root {
    /* --------------------------------------------------
       Color System
    -------------------------------------------------- */

    /* Surfaces (dark theme layers) */
    --surface-0: #111;
    /* deepest background */
    --surface-1: #181818;
    /* header, footer */
    --surface-2: #212121;
    /* body background */
    --surface-3: #2a2a2a;
    /* subtle borders */
    --surface-4: #373737;
    /* cards, panels */

    /* Text */
    --text-0: #fff;
    /* pure white */
    --text-1: #eee;
    /* primary body text */
    --text-2: #ccc;
    /* secondary text */
    --text-3: #bbb;
    /* muted text */

    /* Accent */
    --accent: #BC0024;

    /* Borders */
    --border-1: #222;
    --border-2: #333;
    --border-3: #444;
    --border-4: #555;

    /* --------------------------------------------------
       Spacing Scale (4px baseline)
    -------------------------------------------------- */

    --space-2xs: 0.25rem;
    /* 4px */
    --space-xs: 0.5rem;
    /* 8px */
    --space-s: 0.75rem;
    /* 12px */
    --space-m: 1rem;
    /* 16px */
    --space-l: 1.5rem;
    /* 24px */
    --space-xl: 2rem;
    /* 32px */
    --space-2xl: 3rem;
    /* 48px */
    --space-3xl: 4rem;
    /* 64px */

    /* --------------------------------------------------
       Typography Scale
    -------------------------------------------------- */

    --font-base: 1rem;
    /* 16px */
    --font-s: 0.9rem;
    --font-m: 1rem;
    --font-l: 1.1rem;
    --font-xl: clamp(1.4rem, 2vw, 1.8rem);
    --font-2xl: clamp(2rem, 4vw, 3rem);
    --font-3xl: clamp(2.5rem, 5vw, 3.5rem);

    /* --------------------------------------------------
       Radius & Shadows
    -------------------------------------------------- */

    --radius-s: 4px;
    --radius-m: 6px;
    --radius-l: 8px;

    --shadow-1: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 6px 24px rgba(0, 0, 0, 0.45);
    --shadow-3: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------
   Base Reset & Typography
-------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--text-1);
    background-color: var(--surface-2);
    line-height: 1.65;
    overflow-x: hidden;
}

/* Global media defaults */
img,
picture {
    max-width: 100%;
    display: block;
}

/* --------------------------------------------------
   Global Typography Scale
-------------------------------------------------- */

h1 {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--text-0);
    line-height: 1.2;
    margin: 0 0 var(--space-m);
}

h2 {
    font-size: var(--font-2xl);
    font-weight: 600;
    color: var(--text-0);
    line-height: 1.25;
    margin: 0 0 var(--space-m);
}

h3 {
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-0);
    margin: 0 0 var(--space-xs);
    line-height: 1.3;
}

p {
    margin: var(--space-2xs) 0 var(--space-m);
    color: var(--text-1);
    line-height: 1.65;
    max-width: 75ch;
}

/* --------------------------------------------------
   Page Title (special case)
-------------------------------------------------- */

.page-title {
    font-size: var(--font-xl);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 var(--space-m);
    padding: 0; 
    color: var(--text-0);
    text-align: left;
}

@media (max-width: 700px) {
    .page-title {
        font-size: var(--font-l); 
        padding: 0; 
        margin-bottom: var(--space-s);
    }
}


/* --------------------------------------------------
   Section Defaults
-------------------------------------------------- */

section h3 {
    margin-bottom: var(--space-xs);
}

section p {
    margin-top: var(--space-2xs);
}

/* --------------------------------------------------
   Section Divider
-------------------------------------------------- */

.section-divider {
    width: 50%;
    height: 2px;
    background-color: var(--accent);
    margin: var(--space-2xl) auto;
}

/* --------------------------------------------------
   Layout Helpers & Utilities
-------------------------------------------------- */

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

/* Generic section spacing */
.section {
    margin: var(--space-3xl) auto;
}

/* Intro blocks */
.service-intro,
.gear-intro {
    max-width: 75ch;
    margin: var(--space-xl) 0 var(--space-2xl);
    padding-left: var(--space-2xs);
    line-height: 1.65;
    text-align: left;
}

/* Rounded media utility */
.media-rounded {
    border-radius: var(--radius-m);
    overflow: hidden;
}

/* --------------------------------------------------
   Mobile Layout
-------------------------------------------------- */

@media (max-width: 768px) {

    /* Stack the cards vertically */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Hide the long descriptions */
    .card p {
        display: none;
    }

    /* Center the text for a cleaner mobile look */
    .card h4 {
        text-align: center;
        font-size: 1.25rem;
    }

    /* Optional: tighten section spacing */
    section.container {
        padding: 2rem 1rem;
    }
}



/* --------------------------------------------------
   Global Grid System
-------------------------------------------------- */

.grid {
    display: grid;
    gap: var(--space-xl);
}

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

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

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

@media (max-width: 600px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 601px) and (max-width: 1200px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------------------------
   Navigation
-------------------------------------------------- */

header {
    background: var(--surface-1);
    border-bottom: 2px solid var(--accent);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-l) 0;
}

.logo a {
    text-decoration: none;
    color: var(--text-0);
    font-size: var(--font-xl);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--space-l);
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-2);
    font-weight: 500;
    font-size: var(--font-m);
}

.btn-nav {
    padding: var(--space-xs) var(--space-m);
    border: 1px solid var(--text-2);
    border-radius: var(--radius-s);
    color: var(--text-1);
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-nav:hover {
    background: var(--text-0);
    color: var(--surface-0);
}

@media (max-width: 699px) {

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: var(--space-s);
    }

    /* Hide Home (li containing the Home link) 
    .nav-links li:first-child {
        display: none;
    }*/

    /* Contact first */
    .nav-links li:nth-child(3) {
        order: 1;
    }

    /* Client Galleries second */
    .nav-links li:nth-child(2) {
        order: 2;
    }

    .nav-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-m) 0;
        gap: var(--space-m);
    }

    .logo a {
        font-size: var(--font-l);
    }

    .btn-nav {
        background: var(--accent);
        color: var(--surface-0);
        border: none;
        padding: var(--space-xs) var(--space-l);
        border-radius: var(--radius-s);
        font-weight: 600;
    }

    .btn-nav:hover {
        opacity: 0.9;
    }
}

/* --------------------------------------------------
  Breadcrumb
-------------------------------------------------- */
.breadcrumb {
    font-size: 0.85rem;
    margin: 1.2rem 0;
    color: #999; /* lighter, softer */
}

.breadcrumb a {
    color: #777; /* gentle mid-grey */
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #444; /* slightly darker for the current page */
    font-weight: 500;
}

/* --------------------------------------------------
   Hero Section
-------------------------------------------------- */
/* --------------------------------------------------
   Desktop + Tablet: Bottom Overlay Hero
-------------------------------------------------- */

@media (min-width: 700px) {

    .hero {
        position: relative;
        width: 100%;
        display: block;
        overflow: hidden; /* needed for overlay */
        margin-bottom: var(--space-2xl);
    }

    /* Image stays natural height, no cropping */
    .hero-picture,
    .hero-media {
        position: relative;
        width: 100%;
        height: auto;
    }

    .hero-picture img,
    .hero-media img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: top center;
        display: block;
    }

    /* Bottom overlay panel */
    .hero-content {
        position: absolute;
        top: 100px;
        left: 50%;
        transform: translateX(-50%);
        width: min(94%, 900px);
        padding: 0.8rem 1.8rem;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(4px);
        border-radius: var(--radius-m) var(--radius-m) 0 0;
        color: var(--text-0);
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    /* Typography */
    .hero-content h2 {
        order: -1;
        font-size: clamp(1.8rem, 3.5vw, 2.0rem);
        font-weight: 700;
        margin-bottom: 0.4rem;
    }

    .hero-content h1 {
        font-size: clamp(1.1rem, 2vw, 1.3rem);
        font-weight: 500;
        margin-bottom: 0.7rem;
        opacity: 0.9;
    }
}
@media (max-width: 699px) {

    .hero {
        position: relative;
        width: 100%;
        overflow: hidden; 
    }

    .hero-picture picture {
        width: 100%;
        max-width: 100%;
        display: block;
        overflow: hidden;
    }

    .hero-picture {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

   .hero-picture img,
    .hero-media img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: cover;       /* override desktop contain */
        object-position: center; /* prevents left/right bias */
        display: block;          /* removes inline-image whitespace */
    }

    .hero-content {
        position: relative;
        width: min(94%, 699px);
        margin: 1rem auto 0 auto;
        padding: 0.8rem 0.9rem;
        background: rgba(0, 0, 0, 0.55);
        border-radius: var(--radius-m);
        display: flex;
        flex-direction: column;
    }

    .hero-content h2 {
        order: -1;
        font-size: 1.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-content h1 {
        font-size: 1rem;
        line-height: 1.1;
        margin-bottom: 0.7rem;
        opacity: 0.9;
    }
}

.btn-cta {
    align-self: flex-start;
    display: inline-block;
    padding: 0.4rem .8rem;
    background: var(--text-0);
    color: var(--surface-0);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-s);
    transition: opacity 0.2s ease;
    margin-top: 0.4rem;
    margin-left: 1rem;
}

.btn-cta:hover {
    opacity: 0.85;
}

/* --------------------------------------------------
   Contact Form Error
-------------------------------------------------- */

.error-message {
    background: #fff3cd;
    border-left: 4px solid #ffcc00;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    border-radius: 4px;
    color: #7a5a00;
    font-size: 0.95rem;
}

.input-error {
    border: 2px solid #ffcc00 !important;
    background: #fffdf5;
}



/* --------------------------------------------------
   Cards
-------------------------------------------------- */

.card {
    background: var(--surface-4);
    display: block;
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    border: 1px solid var(--border-1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;        
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}

/* Aspect ratio wrapper */
.card-media {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

/* Image inside card */
.card-media picture,
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card h4 {
    margin: var(--space-m);
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-0);
}

.card p {
    margin: 0 var(--space-m) var(--space-l);
    color: var(--text-2);
    font-size: var(--font-m);
}

/* --------------------------------------------------
   Service Area Page
-------------------------------------------------- */
.service-area-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .service-area-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .service-area-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------
   About Me Section
-------------------------------------------------- */

.about-section {
    margin: var(--space-3xl) auto;
    max-width: 75ch;
    padding: 0 var(--space-m);
}

/* Grid layout */
.grid-1 {
    display: grid;
    gap: var(--space-xl);
}

/* Headings */
.about-section h2 {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-m);
    color: var(--text-0);
}

.about-section h3 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-s);
    padding-bottom: var(--space-xs);
    position: relative;
    font-size: var(--font-xl);
    color: var(--text-0);
}

/* Paragraphs */
.about-section p {
    max-width: 75ch;
    margin-bottom: var(--space-m);
    color: var(--text-1);
    line-height: 1.65;
}

/* Images */
.about-section picture,
.about-section img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-m);
    display: block;
}

/* --------------------------------------------------
   Testimonials
-------------------------------------------------- */

/* Shared testimonial layout */
.testimonial {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin-bottom: var(--space-3xl);
}

@media (max-width: 800px) {
    .testimonial {
        grid-template-columns: 1fr;
    }
}

/* Shared image styling */
.testimonial-media picture,
.testimonial-media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-m);
}

/* Shared blockquote styling */
.testimonial-content blockquote {
    font-size: var(--font-m);
    line-height: 1.7;
    color: var(--text-1);
    margin: 0 0 var(--space-m);
    padding-left: var(--space-m);
    border-left: 1px solid var(--accent);
}

/* Shared name styling */
.testimonial-content figcaption {
    font-size: var(--font-s);
    color: var(--text-3);
    margin-top: var(--space-xs);
    font-style: italic;
}

/* Homepage testimonial wrapper */
.home-testimonials {
    margin: var(--space-3xl) auto;
}

/* Full testimonials page wrapper */
.container.full-testimonials {
    margin: var(--space-3xl) auto;
}

.container.full-testimonials .testimonial-category {
    margin: var(--space-2xl) 0 var(--space-m);
    font-size: var(--font-xl);
    font-weight: 600;
    color: var(--text-0);
}

/* --------------------------------------------------
   Gear Grid
-------------------------------------------------- */

.gear-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

@media (max-width: 900px) {
    .gear-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gear-grid {
        grid-template-columns: 1fr;
    }
}


/* --------------------------------------------------
   Gear Card
-------------------------------------------------- */

.gear-card {
    background: var(--surface-1);
    border-radius: var(--radius-l);
    padding: var(--space-l);
    border: 1px solid var(--border-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-l);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Optional subtle hover tone */
.gear-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-l);
}


/* --------------------------------------------------
   Gear Images
-------------------------------------------------- */

.gear-card picture,
.gear-card img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-m);
    display: block;
}


/* --------------------------------------------------
   Gear Text
-------------------------------------------------- */

.gear-card-details h3 {
    margin: 0 0 var(--space-s);
    font-size: var(--font-xl);
    color: var(--text-0);
}

.gear-investment {
    margin: 0 0 var(--space-m);
    color: var(--text-2);
    font-size: var(--font-m);
    line-height: 1.6;
}

.gear-card-details p {
    margin: 0;
    color: var(--text-1);
    line-height: 1.7;
}

/* --------------------------------------------------
   Contact Page (Modular Version)
-------------------------------------------------- */

.contact-actions {
    display: flex;
    flex-direction: row;
    gap: var(--space-s);
}


/* Page wrapper */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-m);
    color: var(--text-1);
}

/* Logo */

.logo-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

.contact-logo {
    max-width: 300px;
    display: block;
    margin-bottom: 0 auto var(--space-l);
}

/* Intro text */
.intro-text {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    line-height: 1.65;
    font-size: var(--font-m);
    color: var(--text-2);
}

/* Address block */
.address-block {
    margin-top: var(--space-xs);
    font-size: var(--font-s);
    line-height: 1.5;
    color: var(--text-2);
}

/* Form wrapper */
.contact-form {
    background: var(--surface-1);
    padding: var(--space-xl);
    border-radius: var(--radius-l);
    border: 1px solid var(--border-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-l);
}

/* Row grouping */
.form-row {
    display: flex;
    gap: var(--space-l);
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.full-width {
    width: 100%;
}

/* Labels */
label {
    margin-bottom: var(--space-xs);
    font-size: var(--font-s);
    color: var(--text-2);
}

/* Required asterisk */
.req {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85em;
    vertical-align: super;
    margin-left: 2px;
}

/* Required note */
.required-note {
    font-size: var(--font-s);
    opacity: 0.8;
    margin-bottom: var(--space-m);
}

/* Inputs, selects, textarea */
input,
select,
textarea {
    background: var(--surface-2);
    border: 1px solid var(--border-3);
    padding: var(--space-s);
    border-radius: var(--radius-s);
    color: var(--text-1);
    font-size: var(--font-m);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--text-2);
}

/* Submit button */
.submit-btn {
    background: var(--accent);
    color: var(--text-0);
    padding: var(--space-m) var(--space-l);
    border: none;
    border-radius: var(--radius-s);
    font-size: var(--font-m);
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover {
    background: var(--accent);
    opacity: 0.9;
}

/* Honeypot */
.hp-field {
    display: none !important;
}

/* Mobile layout */
@media (max-width: 700px) {
    .form-row {
        flex-direction: column;
    }
    body.contact-page .nav-links a[href="/contact"],
    body.contact-page .nav-links a[href="/client-photos"] {
        display: none;
    }
}

/* Date picker visibility fix */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 1;
    cursor: pointer;
}

input[type="date"] {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    background: var(--surface-0);
    color: var(--text-1);
}

/* Thank-you-page */
.thank-you-page,
.thank-you-page h1,
.thank-you-page p {
    text-align: center;
    padding: 4rem 0;
}
.thankyou-logo {
    height: auto;
    margin: 2rem auto 0;
    display: block;
}

/* Direct contact box */
.contact-box {
    background: var(--surface-0);
    border: 1px solid var(--border-2);
    padding: var(--space-xl);
    width: fit-content;
    border-radius: var(--radius-l);
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.contact-box h3 {
    margin: 0 0 var(--space-xs);
    font-size: var(--font-l);
    color: var(--text-0);
    letter-spacing: 0.5px;
}

.contact-btn {
    display: inline-block;
    padding: var(--space-s) var(--space-m);
    background: var(--surface-1);
    border: 1px solid var(--border-3);
    border-radius: var(--radius-m);
    color: var(--text-1);
    text-decoration: none;
    font-size: var(--font-s);
    letter-spacing: 0.3px;
    transition: 0.2s ease;
}

.contact-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}


/* --------------------------------------------------
Footer
-------------------------------------------------- */

.footer {
    background: var(--surface-1);
    padding: var(--space-2xl) 0;
    color: var(--text-2);
    border-top: 1px solid var(--accent);
}

/* Footer link grid */
.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-m);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.footer-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: var(--font-s);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-0);
}

/* Branding block */
.footer-brand {
    text-align: center;
    font-size: var(--font-s);
    line-height: 1.5;
    color: var(--text-3);
}

.footer-brand .container {
    text-align: center;
}

.footer-brand p {
    width: 100%;
    text-align: center;
    margin: var(--space-s) 0;
    color: var(--text-3);
}

footer .footer-brand p {
    max-width: none;
    text-align: center;
}

.footer-leaf {
    display: block;
    margin: var(--space-m) auto;
    height: 40px;
    width: auto;
    opacity: 0.9;
}

/* --------------------------------------------------
   Gallery System (Unified)
-------------------------------------------------- */

/* Gallery wrapper */
.gallery {
    margin: var(--space-3xl) auto;
}

/* Base gallery grid */
.gallery-grid {
    display: grid;
    gap: var(--space-xl);
}

/* Pair grid: 2 images per row */
.gallery-pair {
    grid-template-columns: repeat(2, 1fr);
}

/* Triple grid: 3 images per row */
.gallery-triple {
    grid-template-columns: repeat(3, 1fr);
}

/* Story grid: mixed layout, can be customized per item with modifiers */
.gallery-story {
    grid-template-columns: repeat(3, 1fr);
}

/* Single grid: full-width images */
.gallery-single {
    grid-template-columns: 1fr;
}

/* Responsive behavior */
@media (max-width: 900px) {

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

@media (max-width: 600px) {

    .gallery-pair,
    .gallery-triple,
    .gallery-story {
        grid-template-columns: 1fr;
    }
}

/* Gallery item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-m);
    background: var(--surface-3);
}

/* Grid images: immersive, cropped */
.gallery-item picture,
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Single images: allow natural height if needed */
.gallery-single .gallery-item img {
    height: auto;
    object-fit: contain;
}

/* Optional subtle hover zoom */
.gallery-item:hover img {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Captions */
.gallery-caption {
    margin-top: var(--space-xs);
    font-size: var(--font-s);
    color: var(--text-2);
    max-width: 60ch;
}

/* Story-grid modifiers (optional) */
.gallery-story .gallery-item--tall {
    grid-row: span 2;
}

.gallery-story .gallery-item--wide {
    grid-column: span 2;
}

@media (max-width: 900px) {

    .gallery-story .gallery-item--tall,
    .gallery-story .gallery-item--wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* --------------------------------------------------
   Client Gallery Cards
-------------------------------------------------- */

.gallery-thumb-grid,
.gallery.gallery-grid.gallery-triple {
    display: grid;
    gap: var(--space-xl);
    grid-template-columns: repeat(3, 1fr);
    margin-top: var(--space-xl);
}

@media (max-width: 900px) {
    .gallery-thumb-grid,
    .gallery.gallery-grid.gallery-triple {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-thumb-grid,
    .gallery.gallery-grid.gallery-triple {
        grid-template-columns: 1fr;
    }
}

/* Card wrapper */
.gallery-card {
    display: block;
    background: var(--surface-4);
    border-radius: var(--radius-m);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-1);
    border: 1px solid var(--border-2);
    box-shadow: var(--shadow-1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}

/* Thumbnail wrapper */
.gallery-thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--surface-3);
}

/* Thumbnail image */
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-thumb img {
    transform: scale(1.03);
}

/* Title */
.gallery-card h3 {
    margin: var(--space-m);
    font-size: var(--font-l);
    color: var(--text-0);
    line-height: 1.3;
}

/* --------------------------------------------------
   Portfolio Hero (existing)
-------------------------------------------------- */

.portfolio-hero {
    position: relative;
    margin-bottom: var(--space-3xl);
}

.portfolio-hero picture img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-m);
}

/* Default (mobile/tablet) — your current layout */
.portfolio-hero-text {
    position: absolute;
    bottom: var(--space-2xl);
    left: var(--space-2xl);
    max-width: 600px;
}

/* Hero lines (new semantic tags) */
.hero-line1 {
    margin: 0;
    font-size: var(--font-3xl);
    color: var(--text-0);
    font-weight: 400;
}

.hero-line2 {
    margin: var(--space-xs) 0 0;
    font-size: var(--font-xl);
    color: var(--text-1);
    font-weight: 400;
}

/* --------------------------------------------------
   Desktop override: center top overlay
-------------------------------------------------- */
@media (min-width: 900px) {
    .portfolio-hero-text {
        top: 50px;                 /* 50px down from the top */
        left: 50%;                 /* center horizontally */
        transform: translateX(-50%);
        bottom: auto;
        text-align: left;          /* left-align text inside */
        max-width: 700px;          /* breathing room */
    }

    .hero-line1,
    .hero-line2 {
        text-align: left;          /* ensure lines stay left-aligned */
    }
}


/* Mobile adjustments (your existing rules) */
@media (max-width: 700px) {
    .portfolio-hero-text {
        bottom: var(--space-l);
        left: var(--space-l);
        transform: none;
        text-align: left;
    }

    .hero-line1 {
        font-size: var(--font-2xl);
    }

    .hero-line2 {
        font-size: var(--font-l);
    }
}

/* --------------------------------------------------
   Wedding Intro
-------------------------------------------------- */

.wedding-intro {
    max-width: 900px;
    margin: var(--space-3xl) auto;
    padding: 0 var(--space-l);
    text-align: left;
}

.wedding-intro p {
    font-size: var(--font-l);
    color: var(--text-1);
    line-height: 1.7;
}

/* --------------------------------------------------
   Double Grid
-------------------------------------------------- */

.double-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l);
    margin: var(--space-3xl) 0;
}

/* Each item becomes a centering container */
.double-grid .gallery-figure {
    display: flex;
    flex-direction: column;
    align-items: center;      /* horizontal centering */
    justify-content: center;  /* optional: vertical centering */
    text-align: center;       /* keeps captions centred */
}

/* Image styling */
.double-grid .gallery-figure picture img {
    border-radius: var(--radius-m);
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile */
@media (max-width: 800px) {
    .double-grid {
        grid-template-columns: 1fr;
    }
}


/* --------------------------------------------------
   Stacked Layout
-------------------------------------------------- */

.stacked {
    display: flex;
    flex-direction: column;
    gap: var(--space-l);
    margin: var(--space-3xl) 0;
}

.stacked-item picture img {
    border-radius: var(--radius-m);
}
/* --------------------------------------------------
   Pair Grid
-------------------------------------------------- */

.pair-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-l);
    margin: var(--space-3xl) 0;
}

.pair-left picture img,
.pair-right picture img {
    border-radius: var(--radius-m);
}

.pair-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-l);
}

/* Mobile */
@media (max-width: 900px) {
    .pair-grid {
        grid-template-columns: 1fr;
    }
}
/* --------------------------------------------------
   Triple Grid
-------------------------------------------------- */

.triple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-l);
    margin: var(--space-3xl) 0;
}

.triple-grid-item picture img {
    border-radius: var(--radius-m);
}

/* Mobile */
@media (max-width: 900px) {
    .triple-grid {
        grid-template-columns: 1fr;
    }
}
/* --------------------------------------------------
   Story Block
-------------------------------------------------- */

.story-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin: var(--space-3xl) 0;
}

.story-image picture img {
    border-radius: var(--radius-m);
}

.story-text h3 {
    color: var(--text-0);
    margin-bottom: var(--space-s);
}

.story-text p {
    color: var(--text-2);
    font-size: var(--font-m);
}

/* Mobile */
@media (max-width: 900px) {
    .story-block {
        grid-template-columns: 1fr;
    }
}
/* --------------------------------------------------
   Section Spacing
-------------------------------------------------- */

section {
    padding: 0 var(--space-l);
}