﻿.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 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.listItemOverlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    transition: opacity .2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; 
    z-index: 2;
}

.image-tile:hover .listItemOverlay {
    opacity: 1;
}


.listItemOverlayContainer {
    position: relative;
    display: inline-block;
    overflow: hidden;
    cursor: pointer;
}

    .listItemOverlayContainer img {
        width: 100%; 
        height: 100%;
        object-fit: cover; 
        transition: opacity 0.3s ease;
    }


.listItemOverlayContainer:hover .listItemOverlay {
    width: 100%;
}

.listItemOverlayText {
    color: white;
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    cursor: pointer;
}

.listItemOverlayContainer:hover img {
    opacity: 0.7;
}

.listItemOverlayContainer:hover .listItemOverlayText {
    color: lightgray;
}


.listItemOverlayContent {
    display: block;
    width: 100%;
    height: auto;
}

.listItemOverlayContainer:hover .listItemOverlay {
    width: 100%;
}


.listItemOverlayButton:hover {
    color: lightgray;
}


.listItemOverlayText {
    display: flex;
}

.listItemOverlayButton {
    pointer-events: auto; 
    cursor: pointer;
    color: #fff;
    font-size: 1.25rem;
}


.overlayThumbnailListItem {
    width: 180px;
    height: 180px;
}



/*slideshow*/
@media screen and (max-width: 770px) {
    /*needs to be changed */
    .slideshow-modal {
        display: block;
        position: fixed;
        z-index: 7000;
        padding-top: 100px;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: black;
    }

    .slideshow-modal-content {
        position: relative;
        background-color: #fefefe;
        margin: auto;
        padding: 0;
        width: 100%;
        max-width: 1000px;
    }

    .slideshow-close {
        color: white;
        position: absolute;
        top: 10px;
        right: 25px;
        font-size: 35px;
        font-weight: bold;
    }

        .slideshow-close:hover,
        .slideshow-close:focus {
            color: #999;
            text-decoration: none;
            cursor: pointer;
        }


    .slideshow-prev,
    .slideshow-next {
        cursor: pointer;
        position: absolute;
        top: 50%;
        width: auto;
        padding: 8px;
        margin-top: -50px;
        color: white;
        font-weight: bold;
        font-size: 20px;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
        user-select: none;
        -webkit-user-select: none;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .slideshow-next {
        right: 0;
        border-radius: 3px 0 0 3px;
    }

        .slideshow-prev:hover,
        .slideshow-next:hover {
            background-color: rgba(0, 0, 0, 0.9);
            text-decoration: none;
        }

    .slideshow-caption-container {
        text-align: center;
        background-color: black;
        padding: 2px 16px;
        color: white;
    }
}

.slideshow-modal {
    display: block;
    position: fixed;
    z-index: 7000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
}

.slideshow-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 100%;
    max-width: 1000px;
}

.slideshow-close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}

    .slideshow-close:hover,
    .slideshow-close:focus {
        color: #999;
        text-decoration: none;
        cursor: pointer;
    }


.slideshow-prev,
.slideshow-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 8px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 25px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.slideshow-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

    .slideshow-prev:hover,
    .slideshow-next:hover {
        background-color: rgba(0, 0, 0, 0.5);
        text-decoration: none;
    }


.slideshow-caption-container {
    text-align: center;
    background-color: black;
    padding: 2px 16px;
    color: white;
}





@media screen and (max-width: 770px) {
    .imageModal-content {
        width: 100%;
    }
   
    .cmpt-folder-list-card-item {
        width: 160px;
        height: 345px;
    }
}

@media screen and (min-width: 771px) {
    .cmpt-folder-list-card-item {
        width: 220px;
        height: 415px;
    }
   
    }

    
