/* Gallery Theme Styles */
.experience-gallery {
    background-color: #0b0b0b;
}

.gallery-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Gallery Link/Anchor */
.gallery-link {
    text-decoration: none;
    display: block;
    outline: none;
}

/* Card Design */
.gallery-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

/* Netflix Hover Effects */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
    transition: background 0.4s ease;
}

.gallery-text {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    transform: translateY(5px);
    transition: transform 0.4s ease;
}

.gallery-card:hover {
    transform: scale(1.06);
    z-index: 5;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.5); /* Netflix Red Glow */
}

.gallery-card:hover .gallery-overlay {
    background: linear-gradient(to top, rgba(229, 9, 20, 0.6) 0%, transparent 100%);
}

.gallery-card:hover .gallery-text {
    transform: translateY(0);
}

/* Lightbox Modal Customization */
#lightboxModal .modal-content {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px);
}

#lightboxModal .modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

#modalImage {
    max-height: 85vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Responsive adjust for mobile */
@media (max-width: 576px) {
    .gallery-title { font-size: 1.6rem; }
    .gallery-text { font-size: 0.9rem; }
}