﻿/* Reset and basics */
body {
    margin: 0;
    background: #ffffff; /* White background */
}

/* Masonry Gallery Container */
.masonry {
    column-count: 6;
    column-gap: 16px;
    padding: 20px;
    background: transparent;
    position: relative;
    top: 4rem;
    margin-bottom: 3rem;
}

/* Card for each image */
.card {
    margin-top: 16px;
    display: inline-block;
    width: 100%;
    background: #ffffff;
    box-shadow: none;
    cursor: pointer;
    border-radius: 8px;
    /*    transition: transform 0.3s ease, border-color 0.3s ease;*/
}


    .card img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: cover;
        border-radius: 8px;
        display: block;
        background: transparent;
        transition: transform 0.3s ease;
    }

        .card img:hover {
            transform: scale(1.03);
        }

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .modal-content img {
        max-height: 80vh;
        max-width: 90vw;
        object-fit: contain;
        border-radius: 8px;
    }

/* Navigation Buttons */
.close, .prev, .next {
    position: absolute;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.close {
    top: 20px;
    right: 30px;
}

.prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

    .close:hover,
    .prev:hover,
    .next:hover {
        color: #ccc;
    }

/* Skeleton shimmer effect */
.skeleton {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    background: linear-gradient( 90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63% );
    background-size: 400% 100%;
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

/* Responsive Breakpoints */
@media (max-width: 1440px) {
    .masonry {
        column-count: 4;
    }
}

@media (max-width: 1024px) {
    .masonry {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .masonry {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    .masonry {
        column-count: 1;
        padding: 10px;
    }

    .card {
        border: none;
        margin-bottom: 1rem;
    }

        /* img {
        width: 120% !important;
        height: auto;
    }*/

        .card img {
            max-height: auto;
            max-width: 65%;
            margin: auto;
        }

    .close {
        font-size: 28px;
        top: 10px;
        right: 15px;
    }

    .prev, .next {
        font-size: 24px;
    }
}
