@import url('hero.css');

:root {
    --navy-blue: #0A2A4F;
    --navy-card: #0F3560;
    --navy-hover: #123A6B;
    --yellow: #FFD400;
    --yellow-hover: #E6BF00;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F4F6F9;
    --bg-dark: #0B0F14;
    --text-black: #0F172A;
    --text-gray: #475569;
    --border-light: #E2E8F0;
}

.studio-main {
    background-color: var(--bg-white);
    color: var(--text-black);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Shared Typography */
.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--navy-blue);
    background: rgba(255, 212, 0, 0.28);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.text-yellow {
    color: var(--yellow) !important;
}

/* ==================== HERO FILTER PILLS ==================== */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    background-color: var(--bg-white);
    color: var(--text-gray);
    border: 1px solid var(--border-light);
    padding: 11px 24px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    background-color: var(--navy-blue);
    border-color: var(--navy-blue);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--navy-blue);
    border: 2px solid var(--yellow);
    color: var(--yellow);
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(10, 42, 79, 0.16);
}

/* ==================== 2. MASONRY GALLERY (Dark) ==================== */
.studio-gallery-section {
    background-color: var(--bg-dark);
    padding: 84px 0 96px;
}

.gallery-head {
    text-align: center;
    margin-bottom: 44px;
}

.gallery-head .section-eyebrow {
    color: var(--yellow);
    background: rgba(255, 212, 0, 0.12);
}

.gallery-head h2 {
    font-size: 38px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.gallery-head p {
    font-size: 15px;
    color: #94A3B8;
}

/* Masonry using CSS columns: tiles flow top to bottom, like the reference */
.studio-masonry {
    column-count: 3;
    column-gap: 14px;
}

/* Shown when no images have been uploaded yet */
.gallery-empty {
    padding: 56px 24px;
    text-align: center;
    font-size: 15.5px;
    font-weight: 600;
    color: #CBD5E1;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 12px;
}

.gallery-item {
    position: relative;
    margin: 0 0 14px;
    border-radius: 10px;
    overflow: hidden;
    break-inside: avoid;
    background-color: #151B24;
    cursor: zoom-in;
    animation: tileIn 0.4s ease;
}

.gallery-item.is-hidden {
    display: none;
}

@keyframes tileIn {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

/* Images use their natural height so the masonry flows with real photo shapes */
.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(0.75);
}

/* Hover caption */
.gallery-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 40px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-tag {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    color: var(--navy-blue);
    background-color: var(--yellow);
    padding: 3px 10px;
    border-radius: 50px;
}

.gallery-title {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(5, 8, 12, 0.94);
    padding: 24px;
}

.lightbox.open {
    display: flex;
}

.lb-figure {
    margin: 0;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lb-figure img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    object-fit: contain;
}

.lb-figure figcaption {
    margin-top: 14px;
    font-size: 14px;
    color: #CBD5E1;
}

.lb-close,
.lb-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.lb-close:hover,
.lb-nav:hover {
    background: var(--yellow);
    color: var(--navy-blue);
}

.lb-close {
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
}

.lb-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ==================== 3. BOTTOM CTA SECTION (Navy Blue) ==================== */
.studio-cta-section {
    background-color: var(--navy-blue);
    color: #FFFFFF;
    padding: 72px 0;
    border-top: 1px solid rgba(255, 212, 0, 0.25);
}

.studio-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.studio-cta-inner h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.studio-cta-inner p {
    font-size: 15.5px;
    color: #CBD5E1;
    max-width: 540px;
}

.studio-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    flex-shrink: 0;
}

.btn-primary-yellow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--yellow);
    color: var(--navy-blue);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid var(--yellow);
    transition: all 0.25s ease;
}

.btn-primary-yellow:hover {
    background-color: var(--navy-hover);
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateY(-2px);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: all 0.25s ease;
}

.btn-outline-white:hover {
    background-color: var(--navy-hover);
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateY(-2px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .studio-masonry {
        column-count: 2;
    }

    .studio-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-head h2 {
        font-size: 30px;
    }
}

@media (max-width: 560px) {
    .studio-masonry {
        column-gap: 10px;
    }

    .gallery-item {
        margin-bottom: 10px;
    }

    /* Show captions on touch screens, since there is no hover */
    .gallery-overlay {
        opacity: 1;
        transform: none;
        padding-top: 28px;
    }

    .lb-nav {
        width: 40px;
        height: 40px;
    }

    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
}