/* =========================================================
   Layla Reiff — modeling portfolio overrides
   Editorial minimal · light theme · Playfair + Cormorant + Inter
   Loaded LAST so we override the Jepret base styles.
   ========================================================= */

:root {
    --layla-bg: #fafaf7;
    --layla-fg: #111;
    --layla-muted: #666;
    --layla-rule: #111;
    --layla-accent: #111;
    --layla-max: 1240px;
    --layla-gutter: clamp(20px, 4vw, 56px);
    --layla-section-pad: clamp(72px, 10vw, 140px);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-tagline: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- reset + base ---------- */

html, body {
    background: var(--layla-bg) !important;
    color: var(--layla-fg) !important;
    font-family: var(--font-body) !important;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

body * {
    box-sizing: border-box;
}

/* hide template's decorative border bars */
.left-bar, .right-bar, .top-bar, .bottom-bar { display: none !important; }

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

a { color: inherit; text-decoration: none; }

.layla-container {
    max-width: var(--layla-max);
    margin: 0 auto;
    padding: 0 var(--layla-gutter);
}

.layla-section {
    padding: var(--layla-section-pad) 0;
}

/* ---------- typography ---------- */

.layla-eyebrow {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--layla-muted);
    margin: 0 0 18px;
}
.layla-eyebrow.center { text-align: center; }

.layla-display {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 28px;
    color: var(--layla-fg);
}
.layla-display.center { text-align: center; }

.layla-rule {
    display: block;
    width: 56px;
    height: 1px;
    background: var(--layla-rule);
    margin: 0 0 32px;
}
.layla-rule.center { margin-left: auto; margin-right: auto; }

p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin: 0 0 18px;
}

/* ---------- header ---------- */

/* override Jepret base #header { height: 39px } — must be specific enough to win */
#header.layla-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    height: auto;
    z-index: 50;
    background: rgba(250, 250, 247, 0.95);
    backdrop-filter: saturate(160%) blur(8px);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.3s ease;
}

/* also kill the 39px top padding the base wrapper applies */
.main-wrapper {
    padding-top: 0 !important;
}

.layla-header-inner {
    max-width: var(--layla-max);
    margin: 0 auto;
    padding: 32px var(--layla-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.layla-logo {
    line-height: 1;
}

.layla-logo a {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 21px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--layla-fg);
    line-height: 1;
}

.layla-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 36px);
    line-height: 1;
}

.layla-nav a {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--layla-fg);
    position: relative;
    padding: 4px 0;
    line-height: 1;
}

.layla-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--layla-fg);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.layla-nav a:hover::after { transform: scaleX(1); }

@media (max-width: 720px) {
    .layla-nav { display: none; }
}

/* ---------- hero ---------- */

.layla-hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    background: #111;
}

.layla-hero-image {
    position: absolute; inset: 0;
}
.layla-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: grayscale(0%);
}

.layla-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.55) 100%);
}

.layla-hero-content {
    position: absolute;
    left: 0; right: 0; bottom: 14vh;
    text-align: center;
    color: #fff;
    padding: 0 var(--layla-gutter);
}

.layla-hero-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(48px, 11vw, 156px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    color: #fff;
}

.layla-hero-tagline {
    font-family: var(--font-tagline);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(16px, 1.6vw, 22px);
    letter-spacing: 0.04em;
    color: #fff;
    opacity: 0.92;
    margin: 0;
}

.layla-hero-scroll {
    position: absolute;
    left: 50%; bottom: 32px;
    transform: translateX(-50%);
    width: 1px; height: 48px;
    background: rgba(255,255,255,0.6);
    overflow: hidden;
}
.layla-hero-scroll::after {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 50%;
    background: #fff;
    animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
    0%   { transform: translateY(-100%); }
    50%  { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* ---------- about ---------- */

.layla-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
}

.layla-about-image img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 820px) {
    .layla-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ---------- stats ---------- */

.layla-stats {
    background: #fff;
}

.layla-stats .layla-rule {
    margin-bottom: 56px;
}

.layla-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #e6e6e0;
    border-left: 1px solid #e6e6e0;
}

.layla-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(32px, 5vw, 56px) 16px;
    border-right: 1px solid #e6e6e0;
    border-bottom: 1px solid #e6e6e0;
    text-align: center;
}

.layla-stat-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--layla-muted);
    margin-bottom: 14px;
}

.layla-stat-value {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1;
    color: var(--layla-fg);
}

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

/* ---------- digitals ---------- */

.layla-digitals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(8px, 1.4vw, 18px);
    margin-top: 40px;
}

/* center a single-photo digitals section until more arrive */
.layla-digitals-grid--single {
    grid-template-columns: minmax(0, 320px);
    justify-content: center;
}

.layla-digital {
    display: block;
    overflow: hidden;
    cursor: zoom-in;
}

.layla-digital img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.layla-digital:hover img {
    transform: scale(1.04);
}

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

/* ---------- editorial gallery ---------- */

.layla-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: clamp(8px, 1.4vw, 18px);
    margin-top: 40px;
}

.layla-gallery-item {
    display: block;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 3 / 4;
}

.layla-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.layla-gallery-item.gallery-tall {
    grid-row: span 2;
    aspect-ratio: 3 / 8;
}

.layla-gallery-item.gallery-wide {
    grid-column: span 2;
    aspect-ratio: 8 / 5;
}
/* runway shot is taller than the wide slot — pin to top so her face stays visible in thumb */
.layla-gallery-item.gallery-wide img {
    object-position: center top;
}

@media (max-width: 820px) {
    .layla-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .layla-gallery-item.gallery-tall { grid-row: span 1; aspect-ratio: 3/4; }
    .layla-gallery-item.gallery-wide { grid-column: span 2; aspect-ratio: 8/5; }
}

/* ---------- contact ---------- */

.layla-contact {
    background: #fff;
    text-align: center;
}

.layla-contact-block {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.layla-contact-email {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(22px, 3vw, 32px);
    color: var(--layla-fg);
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
    transition: border-color 0.25s ease;
}
.layla-contact-email:hover { border-color: var(--layla-fg); }

.layla-contact-ig {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--layla-muted);
}
.layla-contact-ig:hover { color: var(--layla-fg); }

/* ---------- footer ---------- */

.layla-footer {
    padding: 32px 0 40px;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: center;
}

.layla-footer p {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--layla-muted);
}
