/* calc(var(--popup-width) - var(--p-font-size)) */


/* Image styles to fit within the fixed container height */
/*
    .carousel-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
*/


.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 65vh;
    /* or any other desired height */
    overflow: hidden;
    /* Ensure no overflow */
}

.landscape {
    width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    margin: auto 0;
    /* Center top/bottom */
}

.mySlides {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    /* or any other desired height */
    overflow: hidden;
    /* Ensure no overflow */
    margin: 0px;
    padding: 0;
    max-height: 600px;
}

.mySlides a {
    display: block;
    width: 100%;
    height: 100%;
}

.mySlides img {
    max-width: 100%;
    max-height: 250px;
    width: auto;
    /* Auto width for portrait */
    height: auto;
    /* Auto height for landscape */
    object-fit: fill;
    object-position: bottom !important;  /* Align the bottom of the image with the container */
}

.popup-container {
    max-width: var(--modal-popup-container-max-width);
    max-height: var(--modal-popup-height);
    width: auto;
    /* Smaller width */
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-img {
    width: 80px;
    /* Smaller image size */
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 4px;
}

.popup-details {
    text-align: center;
}

.popup-name {
    max-width: 100%;
    margin: 0 0 4px;
    font-size: var(--modal-popup-name);
    font-weight: bold;
    text-align: center;
    text-wrap: wrap;
    overflow: hidden;
    /* Hide the overflow */
    text-overflow: ellipsis;
    /* Show ellipsis */
}

.popup-address,
.popup-url {
    font-size: var(--modal-popup-address);
    color: #555;
    margin: 0;
    white-space: nowrap;
    /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

.popup-url {
    color: #1e90ff;
    text-decoration: none;
}

.popup-url:hover {
    text-decoration: underline;
}

.portrait {
    height: 100%;
    width: auto;
    /* Maintain aspect ratio */
    margin: 0 auto;
    /* Center left/right */
}

/* Slideshow container with fixed height */
.slideshow-container {
    position: relative;
    width: 100%;
    height: auto;
    /* Full width */
    /* Fixed height to prevent resizing */
    overflow: hidden;
    /* Hide overflowing content */
    text-align: center;
    background-color: #f5f5f5;
    /* Light background for contrast */
}

/* Ensure the license-info doesn't overlap the image */

/* Number text (1/3 etc) */
.slide-number {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/*
    .w3-image {
        max-width: 100%;
        height: auto
    }
*/