/* Apply background image with a dark overlay */
body {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('background_v2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Open Sans', sans-serif;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    height: 100vh;
}

/* Login Page Styling */
.login-container {
    max-width: 400px;
    margin: 120px auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-align: center;
}

.login-container h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.login-description {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Style for Login Input */
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.2em;
}

/* Error Message */
.error-message {
    color: red;
    font-size: 1.1em;
    margin-top: 10px;
}

/* Navbar Styling */
.navbar {
    background: rgba(0, 0, 0, 0.9); /* Dark semi-transparent background */
    padding: 15px 0;
    text-align: center;
    position: fixed; /* Sticky navbar */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    font-size: 1.2em;
    font-weight: bold;
}

.navbar a {
    color: #f0f0f0;
    text-decoration: none;
    padding: 15px 20px;
    display: inline-block;
    transition: color 0.3s ease-in-out;
}

.navbar a:hover {
    color: #007FFF; /* Highlight on hover */
}

/* Ensure Slideshow is Fully Centered */
#slideshow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 50px;
    width: 100%;
}

/* Slideshow Wrapper */
#slideshow {
    max-width: 60%;
    text-align: center;
    position: relative;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Slideshow Images */
.slide img {
    max-width: 100%;
    max-height: 500px; /* Adjust as needed */
    border-radius: 10px;
}

/* Smooth Fade-in/Fade-out Transitions */
.slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth fade */
}

.slide.active {
    opacity: 1;
    position: relative;
}

/* Artist Name Styling */
.artist-name {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Description Styling */
.art-description {
    font-size: 1.4em;
    font-style: italic;
    margin-top: 10px;
    font-weight: 400;
}

/* Photo Gallery Styling */
.photo-gallery {
    text-align: center;
    margin-top: 80px; /* Prevent content from hiding under sticky navbar */
}

/* Grid Layout for Photos */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

/* Individual Photo Styling */
.gallery-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Image Display */
.gallery-item img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* Download Button */
.download-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #007FFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

.download-link:hover {
    background-color: #005f8a;
}

/* Centered Audio Controls */
.audio-controls {
    text-align: center;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    #slideshow {
        max-width: 90%; /* Adjust slideshow width for smaller screens */
    }
}