body { font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Hero entry animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-hero {
    animation: fadeInUp 1s ease-out forwards;
}

/* Privacy / Terms modal */
.modal-overlay {
    display: none;
    background-color: rgba(10, 77, 122, 0.85);
    backdrop-filter: blur(4px);
}
.modal-overlay.active {
    display: flex;
}

/* Draft password gate — hides content until authenticated */
html.draft-locked article,
html.draft-locked .draft-gated { display: none; }

/* ── Gallery lightbox ── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, 0.93);
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active { display: flex; }

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0 4rem;
    max-width: 100%;
}

#lightbox-img {
    max-width: min(88vw, 860px);
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.75rem;
    transition: opacity 0.18s ease;
    display: block;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}

#lightbox-counter {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

.lightbox-btn {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 1.25rem;  right: 1.25rem; }
.lightbox-prev  { left: 1rem;    top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1rem;   top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
    .lightbox-content { padding: 0 0.5rem; }
    .lightbox-prev { left: 0.25rem; }
    .lightbox-next { right: 0.25rem; }
}

/* Gallery grid hover */
.gallery-item { cursor: pointer; }
.gallery-item img { transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-zoom-icon {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
}
.gallery-item:hover .gallery-zoom-icon { background: rgba(0,0,0,0.28); }
.gallery-zoom-icon svg { opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-zoom-icon svg { opacity: 1; }

/* Blog article prose — extra paragraph breathing room */
article .prose p          { margin-bottom: 1.75em; line-height: 1.9; }
article .prose h2         { margin-top: 2.75em; padding-top: 1.25em; border-top: 1px solid #e2e8f0; }
article .prose ul,
article .prose ol         { margin-bottom: 1.75em; }
article .prose li         { margin-bottom: 0.6em; line-height: 1.8; }

/* Mobile nav slide */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 420px;
}
