.gallery {
    display: flex;
    height: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    width: 100%;
    flex: 1;
}

.gallery__carousel .owl-stage-outer,
.gallery__carousel .owl-stage-outer div {
    height: 100%;
}

.gallery .owl-dots {
    display: none;
}

.gallery__carousel {
    width: calc(100% - 380px);
}

.gallery__thumbnails {
    overflow-y: auto;
    flex-direction: column;
    padding: 0 2px;
    height: 100%;
    width: 380px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 131px;
    grid-gap: 2px;
}

.gallery__thumbnail {
    margin-bottom: 0;
    display: block;
}

.gallery__thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__thumbnail.active img {
    opacity: 0.3;
}

.gallery .owl-item {
    display: flex;
}

.gallery .owl-carousel .owl-item a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery .owl-carousel .owl-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-view__other-album-description a {
    text-decoration: none;
}

@media (max-width: 1199px) {
    .gallery {
        flex-direction: column;
        height: auto;
        width: 100%;
    }
    .gallery__carousel {
        width: 100%;
        margin-bottom: 20px;
        height: 400px;
    }
    .gallery__thumbnails {
        width: 100%;
        display: flex;
        flex-direction: row;
        height: auto;
        overflow-x: scroll;
        grid-gap: 0;
        padding: 0;
    }
    .gallery__thumbnail {
        margin-bottom: 10px;
        margin-right: 10px;
    }
    .gallery__thumbnail img {
        min-width: 120px;
    }
}

@media (max-width: 575px) {
    .gallery__carousel {
        height: 220px;
    }
}
