/* Basic Reset & Body Styling */
/*
body {
font-family: sans-serif;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #f0f0f0;
}
*/

/* Gallery Container */
.gallery-container {
width: 90%;
max-width: 800px;
background-color: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 10px;
overflow: hidden;
position: relative;
}

/* Main Image Display */
.main-image-display {
width: 100%;
aspect-ratio: 16/9; /* Maintain aspect ratio */
overflow: hidden;
position: relative;
cursor: pointer; /* Indicate it's clickable for full screen */
}

.main-image-display img {
width: 100%;
height: 100%;
object-fit: contain; /* or 'cover' depending on desired cropping */
display: block;
}

.main-image-display .close-fullscreen {
display: none; /* Only show in fullscreen */
}

/* Thumbnail Slider */
.thumbnail-slider {
display: flex;
align-items: center;
padding: 10px 0;
background-color: #eee;
border-top: 1px solid #ddd;
}

.thumbnails-wrapper {
flex-grow: 1;
overflow: hidden;
}

.thumbnails {
display: flex;
gap: 10px;
padding: 0 10px;
transition: transform 0.3s ease-in-out;
}

.thumbnails img {
width: 80px; /* Fixed width for thumbnails */
height: 60px; /* Fixed height for thumbnails */
object-fit: cover;
border: 2px solid transparent;
cursor: pointer;
transition: border-color 0.2s ease-in-out;
border-radius: 4px;
}

.thumbnails img.active {
border-color: #80BAAE;
}

.slider-arrow {
background-color: #80BAAE;
color: white;
border: none;
padding: 10px 15px;
cursor: pointer;
font-size: 1.2em;
border-radius: 4px;
margin: 0 5px;
transition: background-color 0.2s;
}

.slider-arrow:hover {
background-color: #0056b3;
}

/* Fullscreen Overlay */
.fullscreen-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.9);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.fullscreen-overlay.active {
opacity: 1;
visibility: visible;
}

.fullscreen-overlay img {
max-width: 90%;
max-height: 90%;
object-fit: contain;
}

.close-fullscreen {
position: absolute;
top: 20px;
right: 20px;
background: none;
border: none;
color: white;
font-size: 2em;
cursor: pointer;
padding: 5px 10px;
border-radius: 50%;
background-color: rgba(0, 0, 0, 0.5);
transition: background-color 0.2s;
}

.close-fullscreen:hover {
background-color: rgba(0, 0, 0, 0.7);
}

.fullscreen-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
color: white;
font-size: 3em;
cursor: pointer;
padding: 0 20px;
user-select: none; /* Prevent text selection */
text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.fullscreen-nav.prev {
left: 20px;
}

.fullscreen-nav.next {
right: 20px;
}

.fullscreen-nav:hover {
color: #80BAAE;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
.thumbnails img {
width: 60px;
height: 45px;
}
.slider-arrow {
padding: 8px 12px;
font-size: 1em;
}
.close-fullscreen {
font-size: 1.5em;
top: 10px;
right: 10px;
}
.fullscreen-nav {
font-size: 2.5em;
}
}

@media (max-width: 480px) {
.gallery-container {
width: 95%;
border-radius: 0;
}
.thumbnails img {
width: 50px;
height: 38px;
}
.slider-arrow {
padding: 6px 10px;
font-size: 0.9em;
}
.fullscreen-nav {
font-size: 2em;
padding: 0 10px;
}
}
