/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B7D6B;
    --secondary-color: #D4C4B0;
    --accent-color: #F5F1ED;
    --text-color: #2C2C2C;
    --text-light: #666;
    --background: #FAFAF9;
    --border-color: #E5E0D8;
    --white: #FFFFFF;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.8;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero section with photo */
.hero {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
    padding-top: 20px;
}

.photo-frame {
    flex: 0 0 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    aspect-ratio: 3/4;
}

.photo-frame::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    z-index: -1;
}

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

.photo-frame:hover .main-photo {
    transform: scale(1.02);
}

.hero-content {
    flex: 1;
    text-align: left;
}

.site-title {
    font-size: 3.5rem;
    color: var(--text-color);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Content section */
.content {
    background: var(--white);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
}

.message {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-color);
    text-align: justify;
}

.message p {
    margin-bottom: 1.5em;
}

.message .quote {
    background: var(--accent-color);
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.2rem;
    text-align: center;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.message .quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: Georgia, serif;
}

.message strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Gallery section */
.gallery {
    margin-top: 60px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
    font-weight: 400;
}

.gallery-section {
    margin-bottom: 50px;
}

.gallery-subtitle {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
}

.gallery-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.photo-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: var(--accent-color);
}

.photo-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    z-index: 2;
}

.photo-loader::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-color);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.photo-item.loaded .photo-loader {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

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

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

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.photo-item:hover .photo-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.zoom-icon,
.play-icon {
    width: 50px;
    height: 50px;
    color: white;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.photo-item:hover .zoom-icon,
.photo-item:hover .play-icon {
    opacity: 1;
    transform: scale(1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: rotate(90deg);
}

.lightbox-img,
.lightbox-video {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-video {
    background: #000;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}

.lightbox-loader {
    display: none;
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: fixed;
    top: calc(50vh - 30px);
    left: calc(50vw - 30px);
    z-index: 1002;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Music section */
.music-section {
    margin: 60px 0;
    padding: 40px 20px;
}

.music-section .section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
    font-weight: 400;
    font-style: italic;
}

.spotify-embed {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: var(--white);
}

.spotify-embed iframe {
    border-radius: 12px;
    display: block;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.footer-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.footer-subtitle {
    font-size: 1rem;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .photo-frame {
        flex: none;
        width: 100%;
        max-width: 300px;
        aspect-ratio: 3/4;
    }

    .hero-content {
        text-align: center;
    }

    .site-title {
        font-size: 2.5rem;
    }

    .content {
        padding: 30px 20px;
    }

    .message {
        font-size: 1rem;
        line-height: 1.8;
    }

    .music-section {
        margin: 40px 0;
        padding: 20px 15px;
    }

    .music-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .spotify-embed {
        max-width: 100%;
    }

    .spotify-embed iframe {
        height: 352px;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery-subtitle {
        font-size: 1.5rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .photo-frame {
        max-width: 100%;
    }

    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

