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

/* Overlay styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.overlay-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

.overlay-content h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #000;
    letter-spacing: 1px;
}

.enter-button {
    padding: 15px 40px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enter-button:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.enter-button:active {
    transform: translateY(0);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    min-height: 100vh;
}

/* Container and layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Intro text */
.intro-text {
    margin-bottom: 40px;
    text-align: center;
}

.intro-text p {
    font-size: 1.2rem;
    font-weight: 400;
    color: #333;
}

/* Photo gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.photo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.photo-item img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* Special link */
.special-link {
    margin-top: 40px;
    text-align: center;
}

.special-link a {
    display: inline-block;
    padding: 12px 30px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.special-link a:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

footer p {
    font-size: 0.9rem;
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .intro-text p {
        font-size: 1.1rem;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }
    
    .photo-item img {
        max-height: 300px;
    }
    
    .overlay-content {
        padding: 20px;
    }
    
    .overlay-content h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .enter-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .special-link a {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Loading states */
.photo-item img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

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

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .photo-item,
    .special-link a,
    .photo-item img {
        transition: none;
        animation: none;
    }
    
    .photo-item:hover {
        transform: none;
    }
    
    .special-link a:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .photo-item {
        border: 2px solid #000;
    }
    
    .special-link a {
        border: 2px solid #000;
    }
}
