﻿/*  Color previews */
.color-square,
.color-preview {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #ccc;
}




/* Image tiles */

.image-tile {
    margin: auto;
    overflow: hidden;
}

.image-tile-landscape {
    aspect-ratio: 4 / 3;
}

.image-tile-portrait {
    aspect-ratio: 3 / 4;
}

.image-tile-square {
    aspect-ratio: 1 / 1;
}

.image-tile img,
.listItemOverlayContainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*  Overlay container*/

.listItemOverlayContainer {
    position: relative;
    display: inline-block;
    overflow: hidden;
    cursor: pointer;
}

.listItemOverlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.image-tile img {
    position: relative;
    z-index: 1;
}

.image-tile:hover .listItemOverlay,
.listItemOverlayContainer:hover .listItemOverlay {
    opacity: 1;
}

.listItemOverlayContainer:hover img {
    opacity: 0.7;
}

.listItemOverlayText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    white-space: nowrap;
    color: white;
    font-size: 16px;
    cursor: pointer;
}


.listItemOverlayContainer:hover .listItemOverlayText,
.listItemOverlayButton:hover {
    color: lightgray;
}

.listItemOverlayButton {
    pointer-events: auto;
    cursor: pointer;
    color: #fff;
    font-size: 1.25rem;
}

.listItemOverlayContent {
    display: block;
    width: 100%;
}

.overlayThumbnailListItem {
    width: 180px;
    height: 180px;
}



/* SlideshowLightbox */
.slideshowLightbox-modal {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 7000;
    padding-top: 100px;
    overflow: auto;
    background-color: black;
}

.slideshowLightbox-modal-content {
    position: relative;
    margin: auto;
    width: 100%;
    max-width: 1000px;
    background-color: #fefefe;
}

.slideshowLightbox-close {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

    .slideshowLightbox-close:hover,
    .slideshowLightbox-close:focus {
        color: #999;
        text-decoration: none;
    }


.slideshowLightbox-prev,
.slideshowLightbox-next {
    position: absolute;
    top: 50%;
    padding: 8px;
    margin-top: -50px;
    font-size: 25px;
    font-weight: bold;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.6s ease;
}

.slideshowLightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.slideshowLightbox-prev {
    border-radius: 0 3px 3px 0;
}

    .slideshowLightbox-prev:hover,
    .slideshowLightbox-next:hover {
        background-color: rgba(0, 0, 0, 0.9);
    }

.slideshowLightbox-caption-container {
    text-align: center;
    background-color: black;
    padding: 2px 16px;
    color: white;
}







/*SLIDESHOW*/
.slideshow-img-wrapper {
    width: 100%;
    height: calc(70vh - 10px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.slideshow-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.slideshow-fullscreen-active {
    position: fixed !important;
    inset: 0;
    width: 100vw;
    height: 100vh;
    padding-top: 10px;
    box-sizing: border-box;
    background: black;
    z-index: 9999;
}

.slideshow-thumbs-container {
    position: relative;
    margin-top: 10px;
    display: flex;
    align-items: center;
}
.slideshow-thumbs-viewport {
    overflow: hidden;
    flex: 1;
    display: flex;
    padding-left: 12px; 
    padding-right: 12px;
    box-sizing: border-box;
    align-items: center;
    margin-left: 30px;
    margin-right: 30px;
    max-width: calc(100% - 60px);
}

.slideshow-thumbs {
    display: flex;
    gap: 8px;
    transition: transform 0.3s ease;
    min-width: 0;
}

 .slideshow-thumbs.centered {
        justify-content: center;
        width: 100%;
    }

.slideshow-thumb {
    height: 60px;
    flex-shrink: 0;
    margin: 0 4px;
    opacity: 0.4;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s;
}

    .slideshow-thumb:hover,
    .slideshow-thumb.active {
        opacity: 1;
        transform: scale(1.05);
    }

    .slideshow-thumb.active {
        border-color: white;
    }

.slideshow-thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px; 
    height: 48px;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    background: #111;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-thumbs-container:hover .slideshow-thumb-nav {
    opacity: 0.6;
    pointer-events: auto;
}

.slideshow-thumb-nav:first-child {
    left: 0;
}

.slideshow-thumb-nav:last-child {
    right: 0;
}

.slideshow-thumb-nav i {
    font-size: 20px;
    padding: 8px;
}

.slideshow-close-btn {
    position: absolute;
    right: 50px;
    top:70px;
    z-index: 10001;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
}

.slideshow-img-caption {
    text-align: center;
    background-color: black;
    color: #E0E0E0;
    font-size: 20px;
    padding-bottom:10px;
    word-break: break-word;
    white-space: normal;
    max-height: 90px;
    overflow-y: auto;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .carousel-control-prev i,
    .carousel-control-next i {
        font-size: 32px;
        color: white;
        background: rgba(0,0,0,0.4);
        padding: 10px;
    }

@media (max-width: 768px) {
    .slideshow-img-wrapper {
        height: 50vh;
    }

    .slideshow-thumb {
        height: 45px;
    }
}





/* =========================
   Responsive
========================= */

@media screen and (max-width: 770px) {
    .imageModal-content {
        width: 100%;
    }

    .cmpt-folder-list-card-item {
        width: 160px;
        height: 345px;
    }

    .slideshow-prev,
    .slideshow-next {
        font-size: 20px;
    }
}

@media screen and (min-width: 771px) {
    .cmpt-folder-list-card-item {
        width: 220px;
        height: 415px;
    }
}



