/* ==========================================================================
   PREMIUM 3D MEMORY GALLERY & LIGHTBOX SYSTEM
   ========================================================================== */

.gallery-section {
    background: linear-gradient(to bottom, var(--bg-dark), #0f0a15, var(--bg-dark));
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Slider Window Framework */
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-wrapper {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 30px 10px;
    scrollbar-width: none; /* Hide standard scrollbar for Firefox */
    perspective: 1000px;  /* Activates 3D depth space */
}

.slider-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Premium Dynamic Memory Card */
.gallery-card {
    flex: 0 0 300px;
    height: 420px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-10px) scale(1.03) rotateY(5deg);
    border-color: rgba(214, 175, 55, 0.4);
    box-shadow: 0 25px 50px rgba(214, 175, 55, 0.15);
}

.card-img-wrapper {
    width: 100%;
    height: 80%;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

/* Glassmorphism Info Overlay inside Card */
.card-info {
    width: 100%;
    height: 20%;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to top, rgba(7, 7, 9, 0.95), rgba(7, 7, 9, 0.4));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title {
    font-family: var(--font-cinzel);
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Navigation Arrow System */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.slider-arrow:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.prev-arrow { left: 5px; }
.next-arrow { right: 5px; }

/* ==========================================================================
   INTERACTIVE FULLSCREEN LIGHTBOX (ZOOM ON CLICK)
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 85%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

#lightbox-caption {
    margin-top: 20px;
    font-family: var(--font-cinzel);
    font-size: 1.3rem;
    color: var(--gold-primary);
    letter-spacing: 2px;
    text-align: center;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-lightbox:hover {
    color: var(--rose-accent);
    transform: scale(1.1);
}

/* Media Adaptation for Smaller Displays */
@media (max-width: 768px) {
    .slider-container { padding: 10px 40px; }
    .gallery-card { flex: 0 0 260px; height: 380px; }
    .slider-arrow { width: 40px; height: 40px; font-size: 1rem; }
    .prev-arrow { left: -5px; }
    .next-arrow { right: -5px; }
    .close-lightbox { top: 20px; right: 25px; font-size: 2rem; }
}