/* TOECANDY GALLERY PAGE */

.gallery-page {
    min-height: 100vh;
    background: #050505;
    color: #fff;
}

.gallery-hero {
    padding: 160px 20px 80px;
    text-align: center;
}

.gallery-hero h1 {
    margin: 0 auto 20px;
    max-width: 1000px;
    font-size: clamp(48px, 8vw, 96px);
    line-height: .95;
    font-weight: 900;
    letter-spacing: -.05em;
}

.gallery-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255,255,255,.65);
    font-size: 18px;
    line-height: 1.7;
}

.gallery-container {
    width: min(1250px, calc(100% - 40px));
    margin: 0 auto;
}

.gallery-section {
    padding: 40px 0 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    border-radius: 20px;
    background: #101010;
    border: 1px solid rgba(255,255,255,.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: block;
    object-fit: cover;
    transition: transform .55s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 70px 22px 22px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.85),
        rgba(0,0,0,0)
    );
    opacity: 0;
    transition: opacity .3s ease;
}

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

.gallery-overlay h3 {
    margin: 0;
    font-size: 20px;
}

.gallery-overlay p {
    margin: 6px 0 0;
    color: rgba(255,255,255,.65);
    font-size: 13px;
}

.gallery-cta {
    margin: 55px 0 70px;
    padding: 60px 25px;
    border-radius: 30px;
    border: 1px solid rgba(180,255,0,.18);
    background:
        radial-gradient(circle at 50% 0%, rgba(180,255,0,.12), transparent 45%),
        #0b0b0b;
    text-align: center;
}

.gallery-cta h2 {
    margin: 0 0 15px;
    font-size: clamp(32px, 5vw, 60px);
    letter-spacing: -.04em;
}

.gallery-cta p {
    max-width: 650px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,.58);
    line-height: 1.7;
}

.gallery-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    background: #b4ff00;
    color: #050505;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gallery-hero {
        padding: 130px 20px 60px;
    }

    .gallery-container {
        width: min(100% - 28px, 1250px);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-item img {
        min-height: 360px;
    }

    .gallery-overlay {
        opacity: 1;
    }

    .gallery-cta {
        padding: 45px 20px;
        border-radius: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item img {
        transition: none;
    }

    .gallery-overlay {
        transition: none;
    }
}

/* =========================================================
   TOECANDY GALLERY - COLOR SYSTEM FIX
   ========================================================= */

.gallery-page {
    background: #050505 !important;
    color: #ffffff !important;
}

.gallery-page .text-neon {
    color: #39FF14 !important;
}

.gallery-page .bg-neon {
    background-color: #39FF14 !important;
}

.gallery-page .hover\:text-neon:hover {
    color: #39FF14 !important;
}

.gallery-page .hover\:border-neon:hover {
    border-color: #39FF14 !important;
}

.gallery-page .text-white {
    color: #ffffff !important;
}

.gallery-page .text-black {
    color: #050505 !important;
}

.gallery-page .text-white\/40 {
    color: rgba(255,255,255,.40) !important;
}

.gallery-page .text-white\/50 {
    color: rgba(255,255,255,.50) !important;
}

.gallery-page .text-white\/55 {
    color: rgba(255,255,255,.55) !important;
}

.gallery-page .text-white\/60 {
    color: rgba(255,255,255,.60) !important;
}
