﻿.gallery-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

    .gallery-list img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        cursor: pointer;
        border-radius: 6px;
        transition: transform 0.3s;
    }

        .gallery-list img:hover {
            transform: scale(1.05);
        }

/* Preview Box */
#previewBox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

    #previewBox img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 8px;
    }

    /* Close Button */
    #previewBox .close {
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 35px;
        color: #fff;
        cursor: pointer;
    }

    /* Navigation */
    #previewBox .nav {
        position: absolute;
        top: 50%;
        font-size: 45px;
        color: #fff;
        cursor: pointer;
        padding: 10px;
        user-select: none;
    }

    #previewBox .prev {
        left: 30px;
    }

    #previewBox .next {
        right: 30px;
    }


    /*media*/

.media-slider {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
}

    .media-slider img {
        width: 100%;
        height: 320px;
        object-fit: cover;
    }

    /* Navigation */
    .media-slider .nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        color: #fff;
        background: rgba(0,0,0,0.5);
        padding: 5px 5px;
        cursor: pointer;
        user-select: none;
    }

    .media-slider .prev {
        left: 10px;
    }

    .media-slider .next {
        right: 10px;
    }
