/* Base Styles */
:root {
    --primary: #1a472a;
    --secondary: #c41e3a;
    --light: #f8f9fa;
    --dark: #212529;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #f5f5f5;
}

/* Hero Section */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                url('photos/PXL_20251210_125329322.PORTRAIT.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-overlay {
    padding: 2.5rem 4rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    max-width: 90%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeIn 1.5s ease-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 4.5rem;
    margin: 0 0 0.5rem;
    color: var(--secondary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

.hero .subtitle {
    font-family: 'Bellefair', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0;
    color: var(--primary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

/* Gallery Section */
.gallery {
    padding: 2rem 1rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Mountains of Christmas', cursive;
    color: var(--secondary);
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 2rem;
}

.gallery h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.loading {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin: 2rem 0;
    font-style: italic;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    padding: 1rem;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    aspect-ratio: 1;
    background: #fff;
    cursor: pointer;
}

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

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

/* Video Styles */
.video-item {
    position: relative;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--secondary);
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.video-item:hover .play-icon {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-item video::-webkit-media-controls-panel {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

/* Hide play icon when video is playing and cursor is away */
.video-item:not(:hover) .play-icon {
    transition: opacity 0.3s ease;
}

.video-item video[playing] ~ .play-icon {
    opacity: 0;
}

/* Modal Styles */
.media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.media-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--secondary);
    transform: scale(1.2);
}

.modal-media-container {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Lightbox Styles */
.lg-backdrop {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

.lg-outer .lg-thumb-item.active, 
.lg-outer .lg-thumb-item:hover {
    border-color: var(--secondary) !important;
}

.lg-actions .lg-next, 
.lg-actions .lg-prev {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 50px;
    transition: var(--transition);
}

.lg-actions .lg-next:hover, 
.lg-actions .lg-prev:hover {
    background-color: var(--secondary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, var(--primary), #0d2b16);
    color: white;
    margin-top: 4rem;
    font-size: 1.1rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    opacity: 0.9;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
}

footer a:hover {
    color: #ffd700;
    border-color: #ffd700;
}

/* Instructions Styling */
.instructions {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.instructions h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.instructions h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.instruction-steps {
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: var(--transition);
}

.step:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.step p {
    margin: 0;
    line-height: 1.6;
}

.step code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

.help-links {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.help-links p {
    margin: 0 0 0.5rem 0;
}

.help-links ul {
    margin: 0.5rem 0 0 1.5rem;
}

.help-links li {
    margin-bottom: 0.5rem;
}

.help-links a {
    color: var(--primary);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .gallery h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero .subtitle {
        font-size: 1.5rem;
    }
    
    .gallery h2 {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .gallery h2 {
        font-size: 1.8rem;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-overlay {
        padding: 1.5rem 2rem;
    }
    
    .modal-close {
        top: -40px;
        font-size: 2.5rem;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
}
