﻿/* Main Container */
.previewImage-container {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.image-preview-box {
    position: relative;
    display: inline-block;
}

    .image-preview-box img {
        display: block;
        transition: all 0.3s ease;
    }

    .image-preview-box span {
        /*position: absolute;*/
        position: relative;
        padding: 8px;
        font-weight: 400;
        font-size: 1.2rem !important;
    }

.previewImgContol-small {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 85%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

    .previewImgContol-small img {
        width: 3.5rem;
    }

    .previewImgContol-small span {
        position: absolute;
        background: none;
        padding-left: 0;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        font-weight: 400;
        font-size: 1.5rem;
        width: 100%;
        display: block;
        text-align: center;
    }

.previewImgContol-medium {
    position: relative;
    display: inline-block;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .previewImgContol-medium img {
        width: 100%;
        max-height: 30vh;
        text-align: center;
    }

    .previewImgContol-medium span {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center;
        font-weight: 400;
        font-size: 1.2rem !important;
    }

    .previewImgContol-medium::after {
        content: "\f0c1";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        top: 12px;
        left: 12px;
        color: white;
        font-size: 18px;
        background: rgba(0, 0, 0, 0.5);
        padding: 4px;
        border-radius: 50%;
    }

.previewImgContol-large {
    position: relative;
    display: inline-block;
}

    .previewImgContol-large img {
        width: 100%;
        max-height: 60vh;
        object-fit: contain;
    }

    .previewImgContol-large span {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center;
        font-weight: 400;
        font-size: 1.2rem !important;
    }

    .previewImgContol-large::after {
        content: "\f0c1";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        top: 12px;
        left: 12px;
        color: white;
        font-size: 18px;
        background: rgba(0, 0, 0, 0.5);
        padding: 6px;
        border-radius: 50%;
    }

.w-80 {
    width: 85%;
}
/* ========================= */
/* 📱 MOBILE RESPONSIVE */
/* ========================= */
@media (max-width: 768px) {
    .w-80 {
        width: 95%;
    }
    .previewImgContol-large {
        width: 95%;
    }

    .previewImgContol-small-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .previewImgContol-medium {
        width: 46%;
    }

    .previewImgContol-small {
        width: 95%;
    }

        .previewImgContol-small span {
            position: relative;
            font-size: 1.2rem !important;
        }
}
