﻿.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 100%; /* Adjusted to occupy full width */
    max-width: 1200px;
    height: 600px; /* Added to ensure full height */
    margin: 0 auto;
    background: #111111;
    background-position: center;
    background-size: cover;
    padding: 10px;
    overflow-x: hidden;
}

.control-bar {
    display: flex;
    justify-content: center; /* Adjusted to center buttons */
    align-items: center;
    width: 100%; /* Adjusted to occupy full width */
    position: absolute;
    bottom: 80px; /* Adjust the distance from the bottom */
    left: 0;
    z-index: 2; /* Ensure it's above other elements */
    opacity: 0.7;
}

.carousel-button {
    background: transparent;
    padding: 0; /* Adjusted to remove extra padding */
    border: none;
    cursor: pointer;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-fullscreen-button img {
    width: 65px;
    height: 50px;
    border: none;
    padding: 0;
    cursor: pointer;
}

.carousel-button.prev {
    background-repeat: no-repeat;
    background-size: contain;
    width: 65px;
    height: 50px;
}

.carousel-button.next {
    background-repeat: no-repeat;
    background-size: contain;
    width: 65px;
    height: 50px;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* Adjusted to occupy full width */
    height: auto; /* Adjusted to leave space for control bar */
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 4vh; /* Add margin to create space below the carousel */
}

.centered-image {
    max-width: 100%; /* Ensure image spans the entire width of its container */
    max-height: 100%; /* Ensure image spans the entire height of its container */
    object-fit: contain; /* Maintain aspect ratio */
}

.centered-image-container {
    width: 100%; /* Occupy full width of the gallery container */
    max-width: 100%; /* Ensure centered image spans the entire width */
    height: auto; /* Automatically adjust height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-carousel {
    display: flex;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding: 1vh;
    justify-content: center;
}

.caption {
    position: absolute;
    bottom: calc(100% + 10px); /* Adjust the distance from the control bar */
    transform: translateX(-50%);
    bottom: 0.1vh;
    margin-left: 60vw;
    text-align: left;
    width: 60%;
}

.caption-text {
    font-family: 'Houschka Pro', sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 300;
    color: white;
}

.carousel-thumbnail {
    margin: 0 0.4vw 0.2vh 0.2vh; /* Adjusted margin to occupy 1% of the viewport width */
    max-width: 100vw; /* Adjusted maximum width to occupy 15% of the viewport width */
    max-height: 70vh; /* Adjusted maximum height to occupy 40% of the viewport height */
    object-fit: contain;
    cursor: pointer;
}
