/* ==========================================================================
   LUXURY MEDIA GALLERY STYLES
   ========================================================================== */

/* Hero Section */
.gallery-hero {
    position: relative;
    height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 8%;
    overflow: hidden;
}

.gallery-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(9, 13, 22, 0.4) 0%, #090d16 100%);
    z-index: 1;
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.gallery-hero-content h2 {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-top: 15px;
    margin-bottom: 24px;
}

.gallery-hero-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Page Container */
.gallery-page-main {
    padding: 60px 4% 80px 4%;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Search and Type Filter Controls Strip */
.controls-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 30px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.gallery-search-box {
    position: relative;
    width: 350px;
    max-width: 100%;
}

.gallery-search-box .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gold);
    font-size: 14px;
}

.gallery-search-box input {
    width: 100%;
    background: rgba(9, 13, 22, 0.6);
    border: 1px solid rgba(209, 168, 94, 0.2);
    border-radius: 12px;
    padding: 12px 16px 12px 46px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s ease;
}

.gallery-search-box input:focus {
    border-color: var(--color-gold);
}

.gallery-type-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(9, 13, 22, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary-dark);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: #fff;
    border-color: rgba(209, 168, 94, 0.3);
}

.filter-btn.active {
    background: var(--color-gold);
    color: #000;
    border-color: #fff;
}

/* Category Grid buttons layout */
.category-nav-section {
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card-btn {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(209, 168, 94, 0.15);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
}

.category-card-btn .cat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(209, 168, 94, 0.08);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.3s ease;
}

.category-card-btn .cat-info strong {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--color-text-secondary-dark);
    display: block;
    transition: color 0.3s ease;
}

.category-card-btn .cat-info span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
}

.category-card-btn:hover {
    transform: translateY(-3px);
    border-color: var(--color-gold);
    background: rgba(15, 23, 42, 0.7);
}

.category-card-btn.active {
    background: rgba(209, 168, 94, 0.12);
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(209, 168, 94, 0.15);
}

.category-card-btn.active .cat-icon {
    background: var(--color-gold);
    color: #000;
}

.category-card-btn.active .cat-info strong {
    color: #fff;
}

/* Featured Banner Card */
.featured-media-section {
    margin-bottom: 40px;
}

.featured-media-card {
    height: 380px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.featured-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 40%, #090d16 100%);
    z-index: 1;
}

.featured-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--color-gold);
    color: #000;
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 2;
}

.featured-card-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.featured-card-content h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.featured-card-content p {
    font-size: 14px;
    color: var(--color-text-secondary-dark);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Masonry Gallery Grid styling */
.masonry-gallery-section {
    margin-bottom: 60px;
}

.masonry-grid {
    column-count: 3;
    column-gap: 24px;
}

.gallery-card {
    break-inside: avoid;
    margin-bottom: 24px;
    position: relative;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card img {
    width: 100%;
    display: block;
    border-radius: 16px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover overlay inside media cards */
.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(9, 13, 22, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.card-meta-category {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.gallery-card-overlay h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.card-action-icons {
    display: flex;
    gap: 8px;
}

.card-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.3s ease;
}

.card-icon-btn:hover {
    background: var(--color-gold);
    color: #000;
    border-color: #fff;
}

/* Hover Zoom effects */
.gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(209, 168, 94, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.gallery-card:hover img {
    transform: scale(1.05);
}

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

/* Play quality duration labels for video thumbnails */
.video-badge-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(9, 13, 22, 0.85);
    border: 1px solid rgba(209, 168, 94, 0.2);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.video-play-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(209, 168, 94, 0.9);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .video-play-center {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Timeline Horizon slider styling */
.skyline-timeline-section {
    margin-bottom: 50px;
}

.timeline-header {
    text-align: center;
    margin-bottom: 24px;
}

.timeline-header h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-header p {
    font-size: 13px;
    color: var(--color-text-secondary-dark);
}

.skyline-timeline-card {
    padding: 24px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-image-viewport {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid rgba(259, 168, 94, 0.15);
}

.timeline-info-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(9, 13, 22, 0.85);
    border: 1px solid rgba(209, 168, 94, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gold);
}

.timeline-slider-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.timeline-slider-btn {
    background: rgba(9, 13, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary-dark);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.timeline-slider-btn:hover {
    color: #fff;
}

.timeline-slider-btn.active {
    background: var(--color-gold);
    color: #000;
    border-color: #fff;
}

/* Statistics Strip counters */
.stats-strip-section {
    display: flex;
    justify-content: space-around;
    padding: 40px 24px;
    border-radius: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.stat-counter-item i {
    font-size: 20px;
    color: var(--color-gold);
}

.stat-counter-item h3 {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    color: #fff;
}

.stat-counter-item span {
    font-size: 12px;
    color: var(--color-text-secondary-dark);
    text-transform: uppercase;
    font-weight: 500;
}

/* Download asset center panel */
.download-center-section {
    margin-bottom: 40px;
}

.download-card {
    padding: 40px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.download-content {
    max-width: 500px;
}

.download-main-icon {
    font-size: 36px;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.download-content h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.download-content p {
    font-size: 13px;
    color: var(--color-text-secondary-dark);
    line-height: 1.5;
}

.download-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 320px;
    max-width: 100%;
}

.download-buttons-grid button {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Lightbox Modal styling */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 7, 12, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.lightbox-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.lightbox-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 100001;
    transition: color 0.3s ease;
}

.lightbox-close-btn:hover {
    color: var(--color-gold);
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 4%;
    flex-grow: 1;
}

.lightbox-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav-btn:hover {
    background: var(--color-gold);
    color: #000;
}

.lightbox-media-wrapper {
    max-width: 90%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media-wrapper img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-media-wrapper video {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    outline: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-footer {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding-bottom: 40px;
}

.lightbox-footer h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.lightbox-footer p {
    font-size: 13px;
    color: var(--color-text-secondary-dark);
}

/* Responsive media queries */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .controls-strip {
        flex-direction: column;
        align-items: stretch;
    }
    .gallery-search-box {
        width: 100%;
    }
    .masonry-grid {
        column-count: 2;
    }
    .download-card {
        flex-direction: column;
        align-items: stretch;
    }
    .download-buttons-grid {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .gallery-hero h2 {
        font-size: 38px;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .timeline-image-viewport {
        height: 250px;
    }
    .timeline-slider-controls {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .masonry-grid {
        column-count: 1;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
}
