/* Gallery Premium Styles */

/* Global Theme Overrides for Gallery */
body, html {
    background-color: #121212 !important; /* Force gallery depth */
    box-shadow: none !important;
    border: none !important;
}

:root {
    --gallery-bg: #0d0d0d;
    --album-card-bg: rgba(255, 255, 255, 0.03);
    --border-soft: rgba(255, 255, 255, 0.08);
}

/* Hero Correction */
.gallery-hero {
    min-height: 450px;
    padding: 180px 0 100px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), 
                url('https://images.unsplash.com/photo-1551958219-acbc608c6377?auto=format&fit=crop&q=80&w=2000') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

/* Video Experience */
.gallery-type-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 20px;
}

.type-tab {
    background: none;
    border: none;
    color: #555;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    padding: 10px 20px;
    position: relative;
}

.type-tab i { font-size: 1.1rem; }

.type-tab.active {
    color: var(--color-accent);
}

.type-tab.active::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-accent);
    box-shadow: 0 0 15px var(--color-accent);
}

.gallery-view-panel {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.gallery-view-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
}

.video-card-premium {
    background: var(--album-card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.video-card-premium:hover {
    transform: translateY(-10px);
    border-color: rgba(245,197,24,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.video-thumb-container {
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
    overflow: hidden;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.video-card-premium:hover .video-thumb { transform: scale(1.1); }

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.video-card-premium:hover .video-play-overlay { opacity: 1; }

.play-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--color-accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-card-premium:hover .play-icon-circle { transform: scale(1); }

.video-details { padding: 25px; }

.video-title-text {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.video-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-cat-badge {
    padding: 6px 12px;
    background: rgba(245,197,24,0.1);
    color: var(--color-accent);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.video-date-info {
    font-size: 0.85rem;
    color: #666;
}

/* Video Lightbox */
.video-lightbox .video-player-container {
    width: 90%;
    max-width: 1100px;
    background: #000;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info-strip {
    padding: 30px 40px;
    background: linear-gradient(to top, #111, #000);
}

.video-info-strip h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--color-accent);
}

.video-info-strip p {
    color: #888;
    line-height: 1.6;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

/* Visibility Fallbacks for GSAP */
.hero-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.reveal-slide {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Filtering */
.gallery-section {
    background: var(--gallery-bg);
    padding: 60px 0 100px;
    min-height: 60vh;
}

.gallery-section .container {
    max-width: 100%;
    padding: 0 50px;
    margin: 0 auto;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid var(--border-soft);
    background: transparent;
    color: #888;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-pill.active, .filter-pill:hover {
    background: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 197, 24, 0.2);
}

/* Album Grid */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    justify-content: center;
}

.album-card {
    background: var(--album-card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.album-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.album-thumbnail-box {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.album-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.album-card:hover .album-thumbnail {
    transform: scale(1.1);
}

.album-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    border: 1px solid rgba(255,255,255,0.1);
}

.album-info {
    padding: 25px;
}

.album-cat {
    color: var(--color-accent);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}

.album-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.85rem;
}

.meta-item { display: flex; align-items: center; gap: 8px; }

/* Photo Detail Grid (Masonry) */
.photo-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
    padding: 40px;
}

.photo-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* Lightbox Simplified */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active { display: flex; }

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .albums-grid { grid-template-columns: 1fr; }
    .gallery-hero { padding: 120px 20px 60px; }
    .hero-title { font-size: 3rem !important; }
}
