:root {
    --bg: #ffffff;
    --ink: #2a2a2a;
    --ink-soft: #555555;
    --ink-mute: #8a8a8a;
    --rule: #e5e5e5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

strong, b {
    font-weight: 700;
}

/* ---------- IMAGE PROTECTION ---------- */
/* Deters casual right-click-save and drag-to-download.
   Not a real security measure - determined users can bypass. */
img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* ---------- HEADER (logo + nav) ---------- */
.site-header {
    padding: 56px 56px 32px;
    text-align: center;
    border-bottom: 1px solid var(--rule);
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-mark {
    display: block;
    width: 560px;
    max-width: 90%;
    height: auto;
    margin: 0 auto;
}

.site-header nav {
    margin-top: 36px;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 56px;
    list-style: none;
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--rule);
    transform: translateX(calc(-50% - 0.15em));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: calc(100% - 0.3em);
}

/* ---------- WELCOME ---------- */
.welcome {
    padding: 100px 56px;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.welcome-text {
    max-width: 480px;
}

.welcome-media {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.welcome-headline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(30px, 3.2vw, 40px);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 32px;
}

.welcome-headline em {
    font-style: italic;
}

.welcome-body {
    font-size: 15px;
    line-height: 1.85;
    color: var(--ink-soft);
}

.welcome-body p + p {
    margin-top: 18px;
}

.welcome-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* ---------- GALLERIES SECTION (homepage) ---------- */
.galleries-section {
    padding: 60px 56px 120px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(36px, 3.6vw, 48px);
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -0.01em;
}

@media (max-width: 900px) {
    .galleries-section {
        padding: 40px 24px 80px;
    }
}

/* ---------- GALLERY GRID (homepage + galleries index) ---------- */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.gallery-grid .gallery-card {
    flex: 0 1 calc((100% - 64px) / 3);
    min-width: 260px;
    text-decoration: none;
    color: var(--ink);
    display: block;
}

.gallery-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s;
}

.gallery-image-empty {
    background: #f5f5f5;
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image-empty span {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 22px;
    color: var(--ink-mute);
}

.gallery-card:hover .gallery-image {
    opacity: 0.85;
}

.gallery-name {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--ink);
}

.gallery-coming-soon {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 14px;
    color: var(--ink-mute);
    margin-top: 4px;
}

@media (max-width: 900px) {
    .gallery-grid {
        gap: 24px;
    }
}

.gallery-empty {
    text-align: center;
    padding: 120px 24px;
}

.gallery-empty-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 32px;
    color: var(--ink);
    margin-bottom: 12px;
}

.gallery-empty-text {
    font-size: 15px;
    color: var(--ink-mute);
    line-height: 1.7;
}

/* ---------- GALLERIES INDEX PAGE ---------- */
.galleries-index {
    padding: 60px 56px 120px;
    max-width: 1300px;
    margin: 0 auto;
}

.galleries-index .page-title {
    margin-bottom: 56px;
}

@media (max-width: 900px) {
    .galleries-index {
        padding: 40px 24px 80px;
    }
}

/* ---------- QUOTE ---------- */
.quote-section {
    padding: 40px 56px 120px;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.45;
    color: var(--ink);
    letter-spacing: -0.005em;
}

.quote-attr {
    margin-top: 24px;
    font-size: 11px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-family: 'Inter', sans-serif;
    font-style: normal;
}

/* ---------- INNER PAGE (used by about, pricing, contact, galleries index) ---------- */
.page-content {
    padding: 80px 56px 120px;
    max-width: 880px;
    margin: 0 auto;
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(38px, 4vw, 56px);
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}

.page-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--ink-soft);
}

.page-body p + p {
    margin-top: 22px;
}

.page-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    margin-top: 22px;
    margin-bottom: 15px;
    font-size: 28px;
}

/* ---------- ABOUT PAGE ---------- */
.about-page {
    padding: 80px 56px 120px;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text {
    max-width: 560px;
}

.page-intro {
    font-size: 12px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 20px;
    font-weight: 500;
}

.about-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(38px, 4vw, 52px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 40px;
}

.about-image {
    width: 100%;
    object-fit: cover;
    display: block;
    position: sticky;
    top: 40px;
}

@media (max-width: 900px) {
    .about-page {
        padding: 48px 24px 80px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        max-width: none;
    }

    .about-image {
        aspect-ratio: 3 / 2;
        position: static;
        max-width: 80%;
        margin: 0 auto;
    }
}

/* ---------- FOOTER ---------- */
.site-footer {
    border-top: 1px solid var(--rule);
    padding: 48px 56px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

.footer-copy {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .site-header {
        padding: 40px 24px 24px;
    }

    .logo-mark {
        width: 400px;
    }

    .nav-links {
        gap: 24px;
        flex-wrap: wrap;
    }

    .welcome {
        padding: 64px 24px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .galleries-section {
        padding: 40px 24px 80px;
    }

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

    .quote-section {
        padding: 20px 24px 80px;
    }

    .page-content {
        padding: 48px 24px 80px;
    }

    .site-footer {
        padding: 32px 24px;
    }

    .footer-links {
        gap: 20px;
        flex-wrap: wrap;
    }
}
/* ---------- GALLERY PAGE ---------- */
.gallery-page {
    padding: 60px 56px 120px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-page .page-title {
    margin-bottom: 40px;
}

.tag-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 56px;
}

.tag-chip {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--ink-soft);
    background: transparent;
    border: 1px solid var(--rule);
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.tag-chip:hover {
    color: var(--ink);
    border-color: var(--ink-mute);
}

.tag-chip.active {
    background: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.photo-tile {
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    display: block;
    width: 100%;
}

.photo-tile.is-wide {
    grid-column: span 2;
}
.photo-tile.is-wide img {
    aspect-ratio: 3.15 / 1;
    width: 100%;
    object-fit: cover;
}

.photo-tile.hidden {
    display: none;
}

.photo-tile img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s;
}

.photo-tile:hover img {
    opacity: 0.85;
}

.photo-title {
    margin-top: 12px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--ink-soft);
}

.no-results {
    text-align: center;
    margin-top: 40px;
    color: var(--ink-mute);
    font-size: 14px;
}

/* ---------- PHOTO MODAL ---------- */
.photo-modal {
    padding: 0;
    border: none;
    background: transparent;
    max-width: 90vw;
    max-height: 90vh;
    width: 1200px;
    overflow: visible;
    margin: auto;
}

.photo-modal::backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.photo-modal[open] {
    display: grid;
    grid-template-columns: 1fr 340px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #ffffff;
}

.modal-image {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.modal-image img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.modal-panel {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 28px;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 20px;
}

.modal-caption {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 32px;
}
.modal-caption:empty {
    display: none;
}

.modal-meta {
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    margin-top: 24px;
}

.modal-meta-line {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-cta {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid var(--ink);
    transition: background 0.25s, color 0.25s;
}

.modal-cta:hover {
    background: var(--ink);
    color: #ffffff;
}

@media (max-width: 900px) {
    .gallery-page {
        padding: 40px 24px 80px;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .photo-modal[open] {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        max-height: 95vh;
    }

    .modal-image img {
        max-height: 60vh;
    }

    .modal-panel {
        padding: 24px 20px;
    }

    .photo-tile.is-wide {
        grid-column: span 1;
    }

    .photo-tile.is-wide img {
        aspect-ratio: 3 / 2;
    }
}

/* ---------- CONTACT PAGE ---------- */
.contact-page {
    max-width: 1100px;
}

.contact-intro {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
    font-size: 15px;
    line-height: 1.85;
    color: var(--ink-soft);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: start;
}

/* Form */
.contact-form .field {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 8px;
    font-weight: 400;
}

.contact-form .req {
    color: var(--ink-mute);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--rule);
    outline: none;
    transition: border-color 0.25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--ink-mute);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.contact-form .honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-submit {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--ink);
    padding: 14px 32px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.contact-submit:hover {
    background: var(--ink);
    color: #ffffff;
}

/* Feedback */
.contact-success,
.contact-errors {
    padding: 20px 24px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}

.contact-success {
    background: #f0f5ec;
    color: #2a3d1e;
}

.contact-errors {
    background: #f9ecec;
    color: #5a2a2a;
}

.contact-errors p + p {
    margin-top: 6px;
}

/* Sidebar details */
.contact-details h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 22px;
    font-style: italic;
    margin-bottom: 24px;
    color: var(--ink);
}

.contact-details p {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
}

.contact-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 4px;
}

.contact-details a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: border-color 0.25s;
}

.contact-details a:hover {
    border-color: var(--ink);
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}