/* ========================================
   VIDEO GALLERY STYLES
   ======================================== */

.video-gallery {
    padding: 4rem 0;
    background: var(--color-background);
}

.vertical-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.video-wrapper {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.vertical-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-sound-toggle {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.video-sound-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-sound-toggle:active {
    transform: scale(0.95);
}

.sound-icon {
    font-size: 1.2rem;
}

/* ========================================
   PHOTO GALLERY STYLES
   ======================================== */

.photo-gallery {
    padding: 4rem 0;
    background: var(--color-white);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-gray-100);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .vertical-videos {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .video-gallery,
    .photo-gallery,
    .cta-section {
        padding: 3rem 0;
    }
    
    .vertical-videos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 1.125rem;
    }
    
    .video-sound-toggle {
        width: 35px;
        height: 35px;
        bottom: 0.75rem;
        right: 0.75rem;
    }
    
    .sound-icon {
        font-size: 1rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .vertical-videos {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1600px) {
    .vertical-videos {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
}

/* ========================================
   LOADING STATES
   ======================================== */

.photo-item img[loading="lazy"] {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.video-wrapper:focus-within {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.video-sound-toggle:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.photo-item:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .video-sound-toggle {
        display: none;
    }
    
    .video-wrapper::after {
        content: 'Video: ' attr(data-title);
        display: block;
        padding: 1rem;
        background: var(--color-gray-100);
        text-align: center;
    }
}