.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.thumbnail {
    width: 280px;
    height: 200px;
    margin: 15px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 768px) {
    .gallery {
        justify-content: flex-start;
    }

    .thumbnail {
        width: calc(33.33% - 20px);
        margin: 10px;
    }
}

@media screen and (max-width: 480px) {
    .thumbnail {
        width: calc(50% - 20px);
    }
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s ease-in-out;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.image-container {
    position: relative;
    width: 80%;
    height: 80%;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
}

.large-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.close-btn,
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out, font-size 0.3s ease-in-out;
    border: none;
    outline: none;
}

.close-btn:hover,
.arrow:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    font-size: 28px;
}

.arrow.active {
    transform: scale(1.1);
    font-size: 28px;
}

.close-btn {
    top: 50px;
    right: 50px;
}

.prev {
    left: 50px;
}

.next {
    right: 50px;
}

.article-image {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: 3%;
}

.article-image::before {
    content: "";
    display: block;
    padding-bottom: 56.25%;
}

.article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 768px) {
    .article-image {
        border-radius: 0;
    }
}

@media screen and (max-width: 480px) {
    .article-image::before {
        padding-bottom: 75%;
    }
}


