.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 2fr));
    gap: 15px;
    width: 100%;
}

.gallery .image-container {
    position: relative;
    background-color: #f0f0f0;
    border-radius: 10px;
    width: 100%;
    height: 450px;
}

.gallery a {
    width: 100%;
    height: 100%;
}

.gallery a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    opacity: 0;
    transition: filter 0.5s ease-out, opacity 1s ease-in-out, transform 0.3s ease;
    cursor: pointer;
    border-radius: 5px;
}

.gallery a img.loaded {
    filter: none;
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }

    .gallery .image-container {
        width: 100%;
        min-height: 300px;
        height: auto;
    }
}

.fancybox__slide.has-image>.fancybox__content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    min-width: 300px;
    min-height: 300px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .fancybox__slide.has-image>.fancybox__content {
        height: 500px;
        min-width: 250px;
        min-height: 400px;
    }
}

@media (min-width: 1025px) {
    .fancybox__slide.has-image>.fancybox__content {
        min-width: 300px;
        min-height: 500px;
    }
}