﻿

.card {
    border: none;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #000;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 10px;
    max-width: 1200px;
    margin: auto;
}

.gallery-item {
    flex: 1 1 calc(25% - 10px);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    max-width: 300px;
}

    .gallery-item img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.3s;
        cursor: pointer;
    }

    .gallery-item:hover img {
        transform: scale(1.1);
    }

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 60%;
    max-width: 700px;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation */
.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

    /* On hover, add a black background color with a little bit see-through */
    .prev:hover, .next:hover {
        background-color: rgba(0,0,0,0.8);
    }

/* Responsive layout */
@media screen and (max-width: 1200px) {
    .gallery-item {
        flex: 1 1 calc(33.33% - 10px);
    }
}

@media screen and (max-width: 900px) {
    .gallery-item {
        flex: 1 1 calc(50% - 10px);
    }
}

@media screen and (max-width: 600px) {
    .gallery-item {
        flex: 1 1 100%;
    }

    .modal-content {
        width: 90%;
    }

    .close {
        font-size: 30px;
    }

    .prev, .next {
        font-size: 16px;
        padding: 10px;
    }
}
