.f-button svg path,
.f-button svg circle {
    fill: #ffffff !important;
}
.f-button svg circle {
    stroke: #ffffff !important; /* добавить эту строку */
}
.f-button[data-fancybox-close] svg path {
    stroke: red !important;
}
[data-fancybox-toggle-slideshow], [data-fancybox-toggle-thumbs]{
    display: none !important;
}

.gallery-container {
    display: flex;
    gap: 10px;
    max-width: 920px;
    position: relative;
    width: 100%;
}

.swiper-thumbnail {
    width: 80px;
    height: 600px;
}

.swiper-thumbnail .swiper-slide {
    opacity: 0.5;
    cursor: pointer;
    height: auto;
}

.swiper-thumbnail .swiper-slide-thumb-active {
    opacity: 1;
}

.swiper-main {
    width: 800px;
    height: 600px;
}

.swiper-thumbnail .swiper-wrapper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-main video, .swiper-main iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-main_img_wrap {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.swiper-main_img {
    width: auto;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
    cursor: pointer;
    color: #009999 !important;
    background-color: rgba(255, 255, 255, 0.4);
    width: 80px !important;;
    height: 300px !important;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 6px;
}

.video-icon {
    width: 80px;
    height: 80px;
    background-color: #009999;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    font-family: Arial, sans-serif;
    color: white;
    display: inline-block;
}

.video-icon .triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent white;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.video-icon span {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    color: #FFFFFF;
}

.video-icon:not(:has(span)) .triangle {
    top: 50%;
}

.video-icon:has(span) .triangle {
    top: 40%;
}

.fancybox__toolbar {
    --f-button-width: 50px !important;
    --f-button-height: 50px !important;
    --f-button-svg-width: 40px !important;
    --f-button-svg-height: 40px !important;
}

/* Fancybox навигационные кнопки */
.f-button.is-next svg,
.f-button.is-prev svg {
    width: 48px !important;
    height: 48px !important;
}

.f-button.is-next,
.f-button.is-prev {
    width: 100px !important;
    height: 300px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
