/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 45px;
    cursor: pointer;
    background: rgba(212, 165, 116, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(139, 69, 19, 0.9);
    transform: rotate(90deg);
}

/* Floating Video Player - Center Modal Style */
.floating-video-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(10px);
}

.floating-video-player.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.player-container {
    width: 90%;
    max-width: 900px;
    background: rgba(44, 24, 16, 0.7);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 165, 116, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    position: relative;
}

.player-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(44, 24, 16, 0.9);
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
}

.player-title {
    color: #d4a574;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.player-close {
    background: rgba(212, 165, 116, 0.2);
    border: none;
    color: #e8e1d5;
    font-size: 1.5rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.player-close:hover {
    background: rgba(212, 165, 116, 0.4);
    transform: rotate(90deg);
}

.player-content {
    padding: 30px;
}

#floating-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 15px;
    background: #000;
    display: block;
}

.video-info {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.video-info-title {
    color: #d4a574;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.video-info-desc {
    color: rgba(232, 225, 213, 0.9);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Mobile Controls */
.mobile-controls {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.control-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.control-row:last-child {
    margin-bottom: 0;
}

.mobile-control-btn {
    flex: 1;
    background: linear-gradient(135deg, #d4a574, #8b4513);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-control-btn:hover {
    background: linear-gradient(135deg, #8b4513, #d4a574);
    transform: translateY(-2px);
}

.mobile-volume {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d4a574;
    font-size: 1.2rem;
}

#mobile-volume-slider {
    flex: 1;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(212, 165, 116, 0.3);
    border-radius: 3px;
    outline: none;
}

#mobile-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d4a574;
    cursor: pointer;
}

/* Picture Section Styles */
.picture-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f5f0 0%, #e8e1d5 100%);
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.picture-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.picture-title {
    font-size: 2.2rem;
    color: #2c1810;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
}

.picture-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, #d4a574, #8b4513, #d4a574);
    border-radius: 2px;
}

.main-picture {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
    margin: 0 auto;
    position: relative;
    transition: all 0.5s ease;
}

.main-picture:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(139, 69, 19, 0.3);
}

.main-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.main-picture:hover img {
    transform: scale(1.05);
}

.picture-caption {
    margin-top: 25px;
    font-size: 1.1rem;
    color: #7a6b5d;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Media Gallery Styles */
.media-gallery {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f5f0 0%, #e8e1d5 100%);
    position: relative;
    overflow: hidden;
}

.media-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #d4a574, transparent);
}

.media-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-icon {
    font-size: 2.2rem;
    color: #d4a574;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.section-title {
    font-size: 2.5rem;
    color: #2c1810;
    margin-bottom: 15px;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(to right, #d4a574, #8b4513, #d4a574);
    border-radius: 2px;
}

.section-subtitle {
    color: #7a6b5d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.media-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 300px;
    background: #2c1810;
    cursor: pointer;
}

.media-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(212, 165, 116, 0.1), rgba(139, 69, 19, 0.05));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.2);
}

.media-item:hover::before {
    opacity: 1;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(135deg, #2c1810 0%, #8b4513 100%);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    background: transparent;
}

.media-item:hover .video-wrapper video {
    transform: scale(1.1);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.95), rgba(139, 69, 19, 0.95));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.play-btn:hover {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.95), rgba(212, 165, 116, 0.95));
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.play-btn i {
    color: white;
    font-size: 24px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.play-btn:hover i {
    transform: scale(1.2);
}

.media-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(44, 24, 16, 0.95), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.media-item:hover .media-overlay {
    transform: translateY(0);
}

.overlay-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.overlay-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.media-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(212, 165, 116, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(5px);
}

/* Loading Animation */
.media-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.media-item:nth-child(1) { animation-delay: 0.1s; }
.media-item:nth-child(2) { animation-delay: 0.2s; }
.media-item:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    /* Header adjustments */
    .content h1 {
        font-size: 2.2rem;
    }
    
    .content p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    /* Picture section */
    .picture-section {
        padding: 60px 15px;
    }
    
    .picture-title {
        font-size: 1.8rem;
    }
    
    .main-picture {
        height: auto;
        min-height: 250px;
        border-radius: 15px;
    }
    
    .picture-caption {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    /* Media gallery */
    .media-gallery {
        padding: 60px 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .media-item {
        height: 250px;
    }
    
    .play-btn {
        width: 60px;
        height: 60px;
    }
    
    .play-btn i {
        font-size: 20px;
    }
    
    /* Floating video player mobile */
    .player-container {
        width: 95%;
        border-radius: 15px;
    }
    
    .player-header {
        padding: 15px;
    }
    
    .player-title {
        font-size: 1.2rem;
    }
    
    .player-content {
        padding: 15px;
    }
    
    .video-info {
        padding: 15px;
        margin-top: 15px;
    }
    
    .video-info-title {
        font-size: 1.1rem;
    }
    
    .video-info-desc {
        font-size: 0.95rem;
    }
    
    /* Show mobile controls */
    .mobile-controls {
        display: block;
    }
    
    /* Touch-friendly adjustments */
    .media-item, 
    .play-btn,
    .mobile-control-btn,
    .player-close {
        cursor: default;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Improve touch targets */
    .play-btn {
        width: 65px;
        height: 65px;
    }
    
    .mobile-control-btn {
        padding: 15px;
        font-size: 1.1rem;
    }
    
    /* Mobile volume slider touch target */
    #mobile-volume-slider {
        height: 8px;
    }
    
    #mobile-volume-slider::-webkit-slider-thumb {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .content h1 {
        font-size: 1.8rem;
    }
    
    .picture-title,
    .section-title {
        font-size: 1.6rem;
    }
    
    .main-picture {
        height: auto;
        min-height: 200px;
    }
    
    .media-item {
        height: 220px;
    }
    
    .player-container {
        width: 98%;
    }
}

/* Tablet specific */
@media (min-width: 769px) and (max-width: 1024px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .player-container {
        width: 85%;
    }
}

/* Footer */
#footer {
    background: #2c1810;
    color: #e8e1d5;
    padding: 30px 20px;
    text-align: center;
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.6;
}

#footer p {
    margin: 0;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Mobile footer */
@media (max-width: 768px) {
    #footer {
        padding: 25px 15px;
        font-size: 0.9rem;
    }
}
/* Mobile video player improvements */
@media (max-width: 768px) {
    .floating-video-player .player-container {
        width: 95vw;
        max-width: 95vw;
        margin: 0 auto;
    }
    
    #floating-video {
        width: 100% !important;
        height: auto !important;
        max-height: 60vh !important;
    }
    
    .mobile-controls {
        padding: 10px;
        background: rgba(0, 0, 0, 0.8);
    }
    
    .mobile-control-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* Improve touch targets */
    .play-btn, 
    .mobile-control-btn, 
    .player-close {
        min-height: 44px;
        min-width: 44px;
    }
}