/* ──────────────────────────────────────────────────────────────
   VISORA ART STUDIO — Gallery CSS
   ────────────────────────────────────────────────────────────── */

/* ── Hero ─────────────────────────────────────────────────────── */
.studio-hero {
    background: #333744;

    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.studio-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 192, 72, 0.2), transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.studio-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(222, 76, 97, 0.12), transparent 70%);
    bottom: -200px;
    left: -100px;
    pointer-events: none;
}

.studio-hero .hero-label {
    display: inline-block;
    color: #F5C048;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .85rem;
    margin-bottom: 16px;
}

.studio-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.studio-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 767px) {
    .studio-hero {
        padding: 120px 0 60px;
    }

    .studio-hero h1 {
        font-size: 2rem;
    }

    .studio-hero p {
        font-size: .95rem;
    }
}

/* ── Filter Bar ───────────────────────────────────────────────── */
.studio-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 50px 0 30px;
}

.studio-filter .filter-btn {
    padding: 8px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    background: transparent;
    color: #64748b;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    text-transform: capitalize;
}

.studio-filter .filter-btn:hover {
    border-color: var(--primary, #0f172a);
    color: var(--primary, #0f172a);
}

.studio-filter .filter-btn.active {
    background: var(--primary, #0f172a);
    border-color: var(--primary, #0f172a);
    color: #fff;
}

/* ── Gallery Grid (Masonry-ish) ───────────────────────────────── */
.studio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-bottom: 80px;
}

@media (max-width: 991px) {
    .studio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .studio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .studio-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery Item */
.studio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform .35s ease, box-shadow .35s ease;
}

.studio-item:nth-child(3n+1) {
    grid-row: span 1;
}

.studio-item:nth-child(5n+2) {
    grid-row: span 1;
}

.studio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.studio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.studio-item:hover img {
    transform: scale(1.08);
}

/* Overlay */
.studio-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity .35s ease;
}

.studio-item:hover .overlay {
    opacity: 1;
}

.studio-item .overlay h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.studio-item .overlay .cat-badge {
    display: inline-block;
    background: rgba(247, 193, 67, 0.9);
    color: #0f172a;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 6px;
}

.studio-item .overlay p {
    color: #cbd5e1;
    font-size: .8rem;
    margin: 0;
    line-height: 1.4;
}

/* Zoom icon */
.studio-item .zoom-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: all .3s ease;
}

.studio-item:hover .zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* Animation for filter */
.studio-item.hide {
    display: none;
}

.studio-item.show {
    animation: fadeInUp .5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Lightbox ─────────────────────────────────────────────────── */
.studio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.studio-lightbox.active {
    display: flex;
    opacity: 1;
}

.studio-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.studio-lightbox .lb-close {
    position: absolute;
    top: 24px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s;
}

.studio-lightbox .lb-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.studio-lightbox .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s;
}

.studio-lightbox .lb-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.studio-lightbox .lb-prev {
    left: 24px;
}

.studio-lightbox .lb-next {
    right: 24px;
}

.studio-lightbox .lb-info {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
}

.studio-lightbox .lb-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
}

.studio-lightbox .lb-info p {
    font-size: .85rem;
    color: #94a3b8;
    margin: 0;
}

/* ── Empty State ──────────────────────────────────────────────── */
.studio-empty {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.studio-empty svg {
    margin-bottom: 16px;
    opacity: .4;
}

.studio-empty h4 {
    color: #64748b;
    margin-bottom: 8px;
}

/* ── CTA Section ──────────────────────────────────────────────── */
.studio-cta {
    background: #fdf8f4;
    padding: 80px 0;
    border-top: 1px solid #e2e8f0;
}

.studio-cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.studio-cta-inner h2 {
    color: #333744;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.studio-cta-inner p {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

/* Social Links */
.studio-socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    background: #fff;
    color: #333744;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    transition: all .3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.social-link:hover {
    transform: translateY(-3px);
    color: #fff;
    text-decoration: none;
}

.social-link svg {
    flex-shrink: 0;
}

/* Platform-specific hover colors */
.social-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
}

.social-tiktok:hover {
    background: #000;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.social-youtube:hover {
    background: #FF0000;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.25);
}

.social-facebook:hover {
    background: #1877F2;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

.social-whatsapp:hover {
    background: #25D366;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.social-email:hover {
    background: #1A9FB5;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(26, 159, 181, 0.3);
}

@media (max-width: 767px) {
    .studio-cta {
        padding: 60px 0;
    }

    .studio-cta-inner h2 {
        font-size: 1.6rem;
    }

    .studio-socials {
        gap: 10px;
    }

    .social-link {
        padding: 10px 18px;
        font-size: .8rem;
    }
}