body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#myVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

main {
    padding-top: 100px;
}

.timeline-section {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.timeline-section h2 {
    color: #ffb6c1;
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(255, 182, 193, 0.5);
}

.movie-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 182, 193, 0.3);
}

#slideshow {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    animation: kenburns 10s linear infinite;
}

@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.movie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    pointer-events: none;
}

#movie-text {
    font-size: 1.5rem;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

#movie-text.active {
    opacity: 1;
    transform: translateY(0);
}

.movie-controls {
    position: absolute;
    top: 20px;
    right: 20px;
}

#music-toggle {
    background: rgba(255, 182, 193, 0.8);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

#music-toggle:hover {
    background: #ff69b4;
    transform: scale(1.1);
}

#music-toggle.playing {
    background: #ff69b4;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.6);
}

.gallery-section {
    background-color: rgba(255, 240, 245, 0.85); /* Semi-transparent */
    padding: 50px;
    text-align: center;
    border-radius: 15px;
    margin: 20px;
}

h2 {
    color: #333;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive grid */
    gap: 25px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1; /* Make items square */
}

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

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

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

.back-link {
    font-family: 'Nanum Myeongjo', serif;
    display: inline-block;
    margin-top: 60px;
    padding: 15px 40px;
    background-color: transparent;
    color: #b8860b; /* Dark Goldenrod */
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 2px;
    border: 1px solid #b8860b;
    border-radius: 0; /* Minimalist square design */
    transition: all 0.5s ease;
    text-transform: uppercase;
}

.back-link:hover {
    background-color: #b8860b;
    color: white;
    letter-spacing: 4px; /* Elegant expansion effect */
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
}

/* Modal for image expansion */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ffb6c1;
    text-decoration: none;
}

/* Zoom animation */
.modal-content {
    animation-name: zoom;
    animation-duration: 0.4s;
}

@keyframes zoom {
    from {transform: scale(0.5); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 95%;
    }
}
