/* ============================================================
   Alexander Photography — Public Site CSS
   Matches the Pixieset design: dark nav, centered logo,
   full-width hero, clean white content area, dark footer
   ============================================================ */

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

:root {
    --black:       #111111;
    --dark:        #1a1a1a;
    --dark-mid:    #2a2a2a;
    --mid:         #666666;
    --light:       #999999;
    --off-white:   #f8f8f8;
    --white:       #ffffff;
    --accent:      #8a7560;    /* warm brown/gold from Pixieset palette */
    --nav-height:  100px;
    --font-head:   'Cormorant', Georgia, serif;
    --font-nav:    'Oswald', sans-serif;
    --font-body:   'Lato', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--black);
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
    position: relative;
}

.site-header--with-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
}

.site-header--no-hero {
    background: var(--black);
    border-bottom: 1px solid #333;
}

/* Hero banner */
.hero-banner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.30);
}

/* Nav bar */
.main-nav {
    position: relative;
    z-index: 10;
    width: 100%;
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 30px;
    min-height: var(--nav-height);
    gap: 20px;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.nav-list--left  { justify-content: flex-end; }
.nav-list--right { justify-content: flex-start; }

.nav-item a {
    font-family: var(--font-nav);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    padding: 10px 16px;
    display: block;
    transition: opacity .2s;
    white-space: nowrap;
}
.nav-item a:hover,
.nav-item.active a { opacity: 0.65; }

/* Logo */
.nav-logo { text-align: center; flex-shrink: 0; }
.nav-logo a { display: inline-block; }

.logo-img {
    max-height: 70px;
    max-width: 180px;
    width: auto;
    margin: 0 auto;
}

/* Text logo fallback */
.logo-text { text-align: center; padding: 10px 0; }
.logo-name {
    display: block;
    font-family: 'Cormorant', Georgia, serif;
    font-size: 26px;
    font-style: italic;
    font-weight: 300;
    color: var(--white);
    letter-spacing: 1px;
    line-height: 1.1;
}
.logo-tagline {
    display: block;
    font-family: var(--font-nav);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-top: 3px;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--white);
    transition: .3s;
}

/* Mobile overlay menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 100;
    justify-content: center;
    align-items: center;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}
.mobile-menu li { margin: 16px 0; }
.mobile-menu a {
    font-family: var(--font-nav);
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.site-main { min-height: 50vh; }

/* ============================================================
   CONTENT BLOCKS
   ============================================================ */
.block { padding: 60px 0; }
.block + .block { padding-top: 0; }

.block-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.block-inner--narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.block-spacer { height: 40px; }

.block-divider {
    padding: 10px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.block-divider hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px auto;
}
.block-divider--full hr  { width: 100%; }
.block-divider--wide hr  { width: 80%; }
.block-divider--narrow hr { width: 40%; }
.block-divider--dashed hr { border-top-style: dashed; }
.block-divider--dotted hr { border-top-style: dotted; }
.block-divider--thick hr  { border-top-width: 3px; border-top-color: #ccc; }

/* Block title */
.block-title {
    font-family: var(--font-head);
    font-size: 38px;
    font-weight: 300;
    letter-spacing: 1px;
    margin: 0 0 16px;
    color: var(--black);
}
.block-subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--mid);
    margin: 0 0 16px;
    letter-spacing: 0.5px;
}
.block-text p {
    margin: 0 0 12px;
    color: var(--dark-mid);
    font-size: 14px;
    line-height: 1.8;
}
.block-link {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--font-nav);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    transition: opacity .2s;
}
.block-link:hover { opacity: 0.7; }

/* ============================================================
   IMAGE + TEXT BLOCK  (the main PGS-style block)
   ============================================================ */
.block-image-text .block-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.block-image-text.image-right .block-image { order: 2; }
.block-image-text.image-right .block-content { order: 1; }

.block-image img {
    width: 100%;
    height: auto;
    display: block;
}

.block-content {
    padding: 20px 0;
}

/* ============================================================
   TEXT BLOCK
   ============================================================ */
.block-text { }
.text-center .block-inner { text-align: center; }
.text-right  .block-inner { text-align: right; }
.block-text-content p { margin: 0 0 14px; line-height: 1.8; }

/* ============================================================
   PHOTO GRID
   ============================================================ */
.photo-grid {
    column-gap: 12px;
    padding: 0;
    max-width: 1100px;
    margin: 0 auto;
}
.cols-2 { columns: 2; }
.cols-3 { columns: 3; }
.cols-4 { columns: 4; }

.photo-item {
    break-inside: avoid;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 12px;
    display: block;
}
.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity .3s ease;
}
.photo-item:hover img { opacity: 0.85; }

/* ============================================================
   IMAGE CARDS (home page 3-card row)
   ============================================================ */
.block-image-cards { padding: 40px 20px; }

.image-cards {
    display: grid;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.image-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.image-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.image-cards.cols-4 { grid-template-columns: repeat(4, 1fr); }

.image-card { text-align: center; }

.image-card-photo { margin-bottom: 16px; }
.image-card-photo img { width: 100%; height: auto; display: block; }
.image-card-photo a { display: block; overflow: hidden; }
.image-card-photo a img { transition: transform .4s ease; }
.image-card-photo a:hover img { transform: scale(1.03); }

.image-card-title {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 300;
    margin: 0 0 8px;
    color: var(--black);
}
.image-card-subtitle {
    font-family: var(--font-nav);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mid);
    margin: 0 0 12px;
}
.image-card-link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 20px;
    color: var(--black);
    transition: color .2s;
}
.image-card-link:hover { color: var(--accent); }

/* ============================================================
   PORTFOLIO INDEX
   ============================================================ */
.portfolio-index { padding: 40px 40px; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-card {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    text-decoration: none;
}

.portfolio-card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform .6s ease;
}
.portfolio-card:hover .portfolio-card-img { transform: scale(1.04); }

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.30);
    transition: background .3s;
}
.portfolio-card:hover .portfolio-card-overlay { background: rgba(0,0,0,0.50); }

.portfolio-card-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 20px;
}
.portfolio-card-label span {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    letter-spacing: 1px;
    line-height: 1.2;
}
.portfolio-card-label::after {
    content: '→';
    font-family: var(--font-body);
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    font-style: normal;
}

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-section { padding: 20px 40px; }

.gallery-title-bar {
    text-align: center;
    padding: 40px 20px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
.gallery-title-bar h1 {
    font-family: var(--font-head);
    font-size: 42px;
    font-weight: 300;
    margin: 0 0 8px;
}
.gallery-title-bar p { color: var(--mid); margin: 0 0 12px; }
.gallery-back {
    font-family: var(--font-nav);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mid);
    transition: color .2s;
}
.gallery-back:hover { color: var(--black); }

/* Password gate */
.gallery-password-gate {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 40px;
}
.password-gate-inner {
    text-align: center;
    max-width: 380px;
}
.password-gate-inner h2 {
    font-family: var(--font-head);
    font-size: 36px;
    font-weight: 300;
    margin: 0 0 10px;
}
.password-gate-inner input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    margin: 16px 0 10px;
    font-size: 14px;
    text-align: center;
    letter-spacing: 2px;
}
.password-gate-inner button {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-family: var(--font-nav);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 12px;
    cursor: pointer;
    transition: background .2s;
}
.password-gate-inner button:hover { background: var(--dark-mid); }
.pw-error { color: #c0392b; font-size: 13px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.block-contact { }
.contact-phone {
    font-family: var(--font-nav);
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--mid);
    margin-bottom: 24px;
}
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 6px;
    font-family: var(--font-nav);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color .2s;
    background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--black);
}
.btn-submit {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    font-family: var(--font-nav);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
}
.btn-submit:hover { background: var(--dark-mid); }

.form-success {
    background: #ecf7f0;
    border: 1px solid #b2dfc2;
    color: #2e7d4f;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
}
.form-error {
    background: #fdf0f0;
    border: 1px solid #f5c6c6;
    color: #c0392b;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ============================================================
   EVENTS
   ============================================================ */
.block-events .block-inner { max-width: 1000px; }

.event-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #eee;
}
.event-item:last-child { border-bottom: none; }

.event-image img { width: 100%; height: auto; }

.event-title {
    font-family: var(--font-head);
    font-size: 38px;
    font-weight: 300;
    margin: 0 0 16px;
}
.event-subtitle { color: var(--mid); margin: 0 0 8px; font-size: 14px; }
.event-date {
    font-family: var(--font-nav);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--mid);
    margin: 0 0 12px;
}
.event-description { margin: 0 0 16px; color: var(--dark-mid); font-size: 14px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.block-cta {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 533px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.cta-inner {
    position: relative;
    z-index: 1;
    padding: 60px 40px;
    max-width: 700px;
}
.cta-title {
    font-family: var(--font-head);
    font-size: 60px;
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    margin: 0 0 16px;
    line-height: 1.1;
}
.cta-subtitle {
    font-family: var(--font-nav);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin: 0 0 30px;
}
.cta-btn {
    display: inline-block;
    font-family: var(--font-nav);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.6);
    padding: 14px 36px;
    background: rgba(0,0,0,0.3);
    transition: background .3s, border-color .3s;
}
.cta-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

/* ============================================================
   INSTAGRAM CTA
   ============================================================ */
.block-instagram-cta {
    padding: 50px 0;
    background: var(--off-white);
    text-align: center;
}
.instagram-cta-link { display: inline-block; }
.instagram-cta-text {
    font-family: var(--font-nav);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--mid);
    margin: 0 0 6px;
}
.instagram-handle {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 300;
    color: var(--black);
    margin: 0;
    transition: color .2s;
}
.instagram-cta-link:hover .instagram-handle { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--dark);
    padding: 30px 40px;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 0;
    letter-spacing: 0.5px;
    font-style: italic;
}
.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}
.footer-social a {
    color: rgba(255,255,255,0.5);
    transition: color .2s;
    display: flex;
}
.footer-social a:hover { color: var(--white); }
.footer-back-to-top {
    color: rgba(255,255,255,0.4);
    font-size: 18px;
    transition: color .2s;
}
.footer-back-to-top:hover { color: var(--white); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.lightbox.open { display: flex; }

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}
.lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.lightbox-caption {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin: 10px 0 0;
    letter-spacing: 1px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 28px;
    padding: 12px;
    transition: color .2s;
    z-index: 1001;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--white); }

.lightbox-close { top: 16px; right: 20px; font-size: 22px; }
.lightbox-prev  { left: 16px; top: 50%; transform: translateY(-50%); font-size: 48px; }
.lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); font-size: 48px; }

/* ============================================================
   EMPTY / UTILITY
   ============================================================ */
.empty-page { text-align: center; padding: 80px 20px; color: var(--mid); }
.text-center { text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .nav-list { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-inner { grid-template-columns: 1fr auto; }

    .block-image-text .block-inner,
    .event-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .block-image-text.image-right .block-inner { direction: ltr; }

    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .cols-3, .cols-4 { columns: 2; }
    .gallery-section { padding: 16px 16px; }
    .block-inner, .block-inner--narrow { padding: 0 20px; }
}

@media (max-width: 600px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .cols-2, .cols-3, .cols-4 { columns: 2; }
    .gallery-section { padding: 12px 12px; }
    .photo-grid { column-gap: 8px; }
    .photo-item { margin-bottom: 8px; }
    .block-title { font-size: 28px; }
    .site-footer { padding: 24px 20px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }
}

/* ============================================================
   PUBLICATIONS LIST
   ============================================================ */
.block-publications {
    padding: 80px 0;
    background: var(--white);
}
.publications-heading {
    font-family: var(--font-nav);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--black);
    text-align: center;
    margin: 0 0 50px;
}
.publications-intro {
    display: none;
}
.publications-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
}
.publications-item {
    padding: 16px 28px;
    text-align: center;
}
.publications-link {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.4;
}
.publications-link:hover {
    color: var(--accent);
}
@media (max-width: 768px) {
    .publications-item { padding: 10px 16px; }
    .publications-link { font-size: 13px; }
}
