/* Gallery Page Styles - Glassmorphism */

/* Back Button */
.back-btn {
    position: fixed;
    top: 100px;
    left: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    color: var(--text-dark, #2d3748);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

.back-btn i {
    font-size: 0.85rem;
}

.page-header {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #e8f0fe 0%, #f5e6ff 50%, #ffe8e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 70px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 142, 94, 0.3) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(44, 82, 130, 0.25) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.header-content {
    position: relative;
    z-index: 2;
    color: var(--primary-color, #2c5282);
    padding: 2rem;
}

.header-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #FF8E5E 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-content p {
    font-size: 1.2rem;
    color: var(--text-light, #718096);
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.9) 100%);
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 142, 94, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    color: var(--primary-color, #2c5282);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(31, 38, 135, 0.08);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 38, 135, 0.12);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--cta-peach, #FF8E5E) 0%, #f97316 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 142, 94, 0.35);
}

/* Gallery Container */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Gallery Card */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    cursor: pointer;
    transition: all 0.4s ease;
    height: 350px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.3);
}

.gallery-card.hide {
    display: none;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(31, 38, 135, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-info h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

/* Gallery Video Card */
.gallery-video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-video-card:hover video {
    transform: scale(1.1);
}

.gallery-video-card .video-play-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
}

.gallery-video-card .video-play-overlay .gallery-info {
    text-align: center;
}

.gallery-video-card:hover .video-play-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.5));
}

/* Featured Video Layout - spans 2 rows */
.mansarovar-featured {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.gallery-video-featured {
    grid-column: 1;
    grid-row: 1 / 3;
    height: auto;
    min-height: 730px;
}

.gallery-video-featured .video-play-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
}

.gallery-video-featured .video-play-overlay i {
    font-size: 4rem !important;
}

@media (max-width: 1024px) {
    .mansarovar-featured {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-video-featured {
        min-height: 620px;
    }
}

@media (max-width: 768px) {
    .mansarovar-featured {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-video-featured {
        grid-column: 1 / 3;
        grid-row: 1;
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .mansarovar-featured {
        grid-template-columns: 1fr;
    }

    .gallery-video-featured {
        grid-column: 1;
        grid-row: 1;
        min-height: 300px;
    }
}

/* View More Button Container */
.gallery-btn-container {
    text-align: center;
    margin-top: 2rem;
}

/* Fullscreen Video Modal */
.video-fullscreen-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-fullscreen-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.video-fullscreen-modal video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-fullscreen-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-fullscreen-unmute {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 30px;
    border-radius: 50px;
    background: var(--secondary-color, #ed8936);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.video-fullscreen-unmute:hover {
    background: #dd6b20;
    transform: translateX(-50%) scale(1.05);
}

.video-fullscreen-unmute.hidden {
    display: none;
}

/* Lightbox Styles - Glassmorphism with Blur Background */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    backdrop-filter: blur(25px) saturate(150%);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--text-dark, #2d3748);
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--cta-peach, #FF8E5E);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dark, #2d3748);
    text-align: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.lightbox-caption h3 {
    color: var(--primary-color, #2c5282);
    margin-bottom: 0.25rem;
}

.lightbox-caption p {
    color: var(--text-light, #718096);
    font-size: 0.9rem;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    color: var(--text-dark, #2d3748);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--cta-peach, #FF8E5E);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .back-btn {
        top: 90px;
        left: 20px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .gallery-card {
        height: 300px;
    }

    .lightbox-close {
        top: 20px;
        right: 30px;
        width: 45px;
        height: 45px;
        font-size: 28px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .back-btn {
        top: 85px;
        left: 15px;
        padding: 0.5rem 0.9rem;
    }

    .page-header {
        height: 250px;
        margin-top: 65px;
    }

    .header-content h1 {
        font-size: 1.8rem;
    }

    .header-content p {
        font-size: 0.95rem;
    }

    .header-content {
        padding: 1.5rem;
    }

    .gallery-section {
        padding: 2rem 0;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .gallery-card {
        height: 220px;
        border-radius: 16px;
    }

    .gallery-overlay {
        transform: translateY(0);
        padding: 1.25rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    }

    .gallery-info h3 {
        font-size: 1.2rem;
    }

    .filter-buttons {
        gap: 0.5rem;
        padding: 0 10px;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .lightbox-content {
        max-width: 90%;
        max-height: 75vh;
    }

    .lightbox-caption {
        max-width: 80%;
    }
}

@media (max-width: 480px) {
    .back-btn {
        top: 80px;
        left: 10px;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .page-header {
        height: 200px;
        margin-top: 60px;
    }

    .header-content h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .header-content p {
        font-size: 0.9rem;
    }

    .header-content {
        padding: 1rem;
    }

    .gallery-section {
        padding: 1.5rem 0;
    }

    .gallery-section .container {
        padding: 0 15px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .gallery-card {
        height: 250px;
        border-radius: 15px;
    }

    .gallery-overlay {
        transform: translateY(0);
        padding: 1rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    }

    .gallery-info h3 {
        font-size: 1.1rem;
    }

    .gallery-info p {
        font-size: 0.8rem;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding: 0 15px;
    }

    .filter-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 70vh;
        border-radius: 12px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        padding: 8px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-caption {
        bottom: 10px;
        font-size: 0.9rem;
        padding: 8px 16px;
        max-width: 90%;
        border-radius: 12px;
    }

    .lightbox-caption h3 {
        font-size: 1rem;
    }

    .lightbox-caption p {
        font-size: 0.8rem;
    }
}