.TopMainSlide {
    position: relative;
    overflow: hidden;
}

.TopMainSlide img {
    width: 100%;
    height: 100dvh;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: all ease-in-out 0.6s;
    filter: brightness(0.6);
}

.TopMainSlide.active img {
    opacity: 1;
}

.TopMainSlide .Title {
    position: absolute;
    width: 100%;
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: var(--White);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(16px);
    bottom: -10%;
    opacity: 0;
    transition: all ease-in-out 0.3s
}

.TopMainSlide.active .Title {
    bottom: 10%;
    opacity: 1;
}

.CategoriesList .node {
    flex: 0 0 20%;
}

:root {
    --gallery-column: 1;
    --gutter: calc(0.5rem * var(--gallery-column));
    --gallery-container: calc(var(--container) - calc(var(--gutter)));
}

@media (max-width: 575px) {
    :root {
        --gallery-column: 2;
        --gutter: calc(0.5rem * var(--gallery-column));
        --gallery-container: calc(var(--container) - calc(var(--gutter)));
    }
}

@media (min-width: 576px) {
    :root {
        --gallery-column: 2;
        --gutter: calc(0.5rem * var(--gallery-column));
        --gallery-container: calc(var(--container) - calc(var(--gutter)));
    }
}

@media (min-width: 768px) {
    :root {
        --gallery-column: 3;
        --gutter: calc(0.5rem * var(--gallery-column));
        --gallery-container: calc(var(--container) - calc(var(--gutter)));
    }
}

@media (min-width: 992px) {
    :root {
        --gallery-column: 3;
        --gutter: calc(0.5rem * var(--gallery-column));
        --gallery-container: calc(var(--container) - calc(var(--gutter)));
    }
}

@media (min-width: 1200px) {
    :root {
        --gallery-column: 4;
        --gutter: calc(0.5rem * var(--gallery-column));
        --gallery-container: calc(var(--container) - calc(var(--gutter)));
    }
}

.GalleryImages {
    display: flex;
    flex-wrap: wrap;
}

.GalleryImages .ImageItem {
    width: calc(var(--gallery-container) / var(--gallery-column));
    cursor: pointer;

}

.GalleryImages .ImageItem .Thumbnail {
    overflow: hidden;
    position: relative;
}

.GalleryImages .ImageItem img {
    height: calc(100% - 10px);
}

.GalleryImages .ImageItem .caption-box {
    bottom: -5rem;
    opacity: 0;
    transition: all ease-in-out 0.3s;
    left: 0;
    width: 100%;
    height: 3rem;
    backdrop-filter: blur(3px);
    background: rgba(0, 0, 0, 0.4);
    color: var(--White);
}

.GalleryImages .ImageItem .caption-box>* {
    padding: 0.5rem;
}

.GalleryImages .ImageItem:hover .caption-box {
    bottom: 0;
    opacity: 1
}


.GalleryImages .popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100dvw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.8);
}

.GalleryImages .popup-content {
    position: relative;
    margin: 5dvh auto;
    padding: 2rem;
    width: max-content;
    background: #fff;
    text-align: center;
    border-radius: 0.5rem;
    height: 80dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media(max-width:768px) {
    .GalleryImages .popup-content {
        width: 100%;
        height: 100dvh;
        margin: auto;
        padding: 0;
    }
}

.GalleryImages .popup img {
    max-width: 100%;
    height: auto;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    position: relative;
    animation: pulse 1s linear infinite;
}

.loader:after {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    border: 5px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: scaleUp 1s linear infinite;
}

@keyframes scaleUp {
    0% {
        transform: translate(-50%, -50%) scale(0)
    }

    60%,
    100% {
        transform: translate(-50%, -50%) scale(1)
    }
}

@keyframes pulse {

    0%,
    60%,
    100% {
        transform: scale(1)
    }

    80% {
        transform: scale(1.2)
    }
}

.GalleryImages .popup .close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
}

.GalleryImages .popup .navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: black;
}

.GalleryImages .popup .navigation#prev {
    left: 1rem;
}

.GalleryImages .popup .navigation#next {
    right: 1rem;
}

.CategoriesListHome {
    gap: 1.5rem;
    overflow: auto;
    padding: 0;
    margin: 0;
    border-bottom: 0.1rem solid var(--light-silver);
    margin-bottom: 1rem;
}

.CategoriesListHome li {
    list-style: none;
    flex: 1 0 auto;
    font-weight: bold;
    cursor: pointer;
    padding: 2rem 0;
    text-align: center;
}

.CategoriesListHome li.active {
    border-bottom: 0.1rem solid var(--Black)
}