.block-hover-gallery {
    --gallery-bg: var(--color-accent);
    --gallery-text: var(--color-primary);
    --gallery-text-muted: rgba(255, 255, 255, 0.5);

    background: #fff;
    color: var(--gallery-text);
    position: relative;
    min-height: 100vh;
    padding: 0 0.5em 0.5em 0.5em;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .block-hover-gallery {
        padding: 0 0.1875em 0.1875em 0.1875em;
    }
}

.block-hover-gallery.theme-accent {
    --gallery-bg: var(--color-accent);
}
.block-hover-gallery.theme-blue {
    --gallery-bg: var(--color-5);
}
.block-hover-gallery.theme-green {
    --gallery-bg: var(--color-4);
}
.block-hover-gallery.theme-black {
    --gallery-bg: #000;
    --gallery-text: #fff;
    --gallery-text-muted: rgba(255, 255, 255, 0.5);
}
.block-hover-gallery.theme-white {
    --gallery-bg: #fff;
    --gallery-text: #000;
    --gallery-text-muted: rgba(0, 0, 0, 0.5);
}

.block-hover-gallery__inner {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 0.5em);
    border-radius: 0.375em;
    background-color: var(--gallery-bg);
    overflow: hidden;
}

@media (max-width: 1024px) {
    .block-hover-gallery__inner {
        flex-direction: column-reverse;
        min-height: calc(100vh - 0.1875em);
    }
}

.block-hover-gallery__content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1em;
    align-items: center;
    padding: 4.125em 4.875em;
    width: 50%;
}

@media (max-width: 1024px) {
    .block-hover-gallery__content-col {
        width: 100%;
        min-height: 50vh;
        padding: 4.5rem 1.5rem;
        justify-content: space-between;
        gap: 6.75em;
    }
}

.block-hover-gallery__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.3125em;
    text-align: center;
    width: 20.375em;
}

@media (max-width: 1024px) {
    .block-hover-gallery__header {
        margin-bottom: 0;
        width: 100%;
        gap: 1.5rem;
    }
}

.block-hover-gallery__title--mobile,
.block-hover-gallery__description--mobile {
    display: none;
}

@media (max-width: 1024px) {
    .has-mobile-title,
    .has-mobile-description {
        display: none !important;
    }
    .block-hover-gallery__title--mobile,
    .block-hover-gallery__description--mobile {
        display: block;
    }
}

.block-hover-gallery__menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (max-width: 1024px) {
    .block-hover-gallery__menu {
        display: none;
    }
}

.block-hover-gallery__menu-item {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: color 0.4s ease;
    color: var(--gallery-text-muted);
}

.block-hover-gallery__menu-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.block-hover-gallery.theme-white .block-hover-gallery__menu-item {
    border-color: rgba(0, 0, 0, 0.1);
}

.block-hover-gallery__menu-item span {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.block-hover-gallery__menu-item.is-active,
.block-hover-gallery__menu-item:hover {
    color: var(--gallery-text);
}

.block-hover-gallery__menu-item:hover span {
    transform: scale(1.05);
}

.block-hover-gallery__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 400px;
    width: 100%;
    gap: 1.6875em;
}

.block-hover-gallery__media-col {
    flex: 1;
    position: relative;
    width: 50%;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .block-hover-gallery__media-col {
        width: 100%;
        min-height: 50vh;
    }
}

.block-hover-gallery__images {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.block-hover-gallery__image-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    z-index: 1;
}

.block-hover-gallery__image-wrapper.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.block-hover-gallery__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
