.gallery-wrapper {
    z-index: 10;
    background: rgba(196, 196, 196, 0.81);
    backdrop-filter: blur(20px);
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: fixed;
    box-sizing: border-box;
    flex-flow: column;
    transition: opacity 0.2s;
    display: none;
    opacity: 0;
}

.gallery-container {
    display: flex;
    flex-flow:  column;
    box-sizing: border-box;
    width: 100%;
    height: 0;
    flex-grow: 1;
    margin-top: 6%;
    max-width: 1300px;
    position: relative;
}

.gallery-items-container {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow-y: auto;
}

.close-gallery-button {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    background-image: url("../icons/ic_close_round.svg");
    width: var(--close-button-side);
    height: var(--close-button-side);
    position: absolute;
    right: 0;
    top: -70px;
}

.gallery-items-container::-webkit-scrollbar {
    margin-right: 10px;
    padding-right: 10px;
    margin-top: 20px;
    width: 5px;
    border-radius: 5px;

}

.gallery-items-container::-webkit-scrollbar-thumb {
    width: 5px;
    height: 8px;
    border-radius: 5px;
    background: #ffffff;
}

.gallery-thumb {
    cursor: pointer;
    transition: border-bottom-color 0.2s, border-top-color 0.2s, border-left-color 0.2s, border-right-color 0.2s ;
    width: 400px;
    height: 300px;
    border: 6px solid transparent;
    box-sizing: border-box;
    border-radius: 10px;
    object-fit: cover;
}

.gallery-thumb:hover {
    border-color: white;
}

.image-viewer-wrapper {
    z-index: 11;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);;
    position: fixed;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.image-viewer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 1000px;
    position: relative;

}

.gallery-image {
    cursor: pointer;
    object-fit: cover;
    width: 0;
    flex-grow: 1;
    max-width: 1000px;
    height: 769px;
    -webkit-mask-image: url(../images/gallery_mask.svg);
    -webkit-mask-mode: alpha;
    mask-image:  url(../images/gallery_mask.svg);
    -webkit-mask-size: 1000px 1000px;
    mask-mode: alpha;
    transition: opacity 0.3s;
}

.gallery-right-arrow {
    transition: all 0.2s;
    z-index: 12;
    cursor: pointer;
    width: 75px;
    height: 75px;
    background-size: contain;
    background-position: right;
    background-image: url("../icons/ic_right_arrow.svg");
    position: absolute;
    right: -10px;
    top: 110px;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
    background-repeat: no-repeat;
}

.gallery-right-arrow:hover {
    transform: scale(1.05);
}

.gallery-left-arrow {
    transition: all 0.2s;
    z-index: 12;
    cursor: pointer;
    width: 75px;
    height: 75px;
    background-size: contain;
    background-position: left;
    background-repeat: no-repeat;
    background-image: url("../icons/ic_left_arrow.svg");
    position: absolute;
    left: -10px;
    top: 110px;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
}

.gallery-left-arrow:hover {
    transform: scale(1.05);
}

.close-viewer-button {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 12;
    background-image: url("../icons/ic_close_round.svg");
    width: var(--close-button-side);
    height: var(--close-button-side);
    position: absolute;
    right: 140px;
    top: calc(50% - 190px);
}

@media (max-width: 986px) {
    .close-gallery-button {
        top: unset;
        right: 5%;
    }

    .image-viewer-container {
        width: 100%;
    }
    .gallery-items-container {
        height: unset;
        flex-grow: 1;
        margin-top: 40px;
    }
    .gallery-thumb {
        width: 90%;
    }

    .gallery-image {
        cursor: pointer;
        object-fit: cover;
        flex-grow: 1;
        width: 100%;
        height: 769px;
        -webkit-mask-image: url(../images/gallery_mask.svg);
        -webkit-mask-mode: alpha;
        mask-image:  url(../images/gallery_mask.svg);
        -webkit-mask-size: 100% 1000px;
        mask-mode: alpha;
        transition: opacity 0.3s;
    }


}