    .photos {
        max-width: 600px;
        width: 100%;
        height: 600px;
        display: flex;
        margin: 0 auto;
    }
    .photos-slider {
        position: relative;
        height: 100%;
        max-width: 125px;
        width: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .photos-slider-thumbs {
        display: flex;
        flex-direction: column;
        gap: 20px;
        transition: transform 0.3s ease;
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        touch-action: pan-y;
    }
    .photos-slider-thumbs.dragging {
        cursor: grabbing;
        transition: none;
    }
    .photos-slider-arrow {
        width: 40px !important;
        height: 40px !important;
        margin: 0;
        border-radius: 50%;
        rotate: 0deg;
        background: #F0F0F099 url(/templates/default/shop/images/arrow.svg) 14px 16px no-repeat;
        position: absolute;
        left: 27px;
        bottom: 10px;
        z-index: 100;
        border: none;
        cursor: pointer;
    }
    .photos-slider-arrow:hover {
        background: #F0F0F099 url(/templates/default/shop/images/arrow.svg) 14px 16px no-repeat;
        opacity: 1;
    }
    .Prev {
        rotate: 180deg;
        top: 10px;
        bottom: auto;
        background: #F0F0F099 url(/templates/default/shop/images/arrow.svg) 14px 16px no-repeat;
    }
    .photos-slider-photo {
        width: 75%;
        height: 104px !important;
        object-fit: cover;
        box-sizing: border-box;
        border: 1px solid transparent;
        transition: border-color 0.3s;
        border-radius: 10px;
        flex-shrink: 0;
        pointer-events: auto;
        cursor: pointer;
    }
    .photos-slider-photo.active {
        border-color: #008C3A;
        border-width: 1px;
    }
    .photos-slider-photo.video-thumb {
        position: relative;
    }
    .photos-slider-photo.video-thumb::after {
        content: '▶';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }
    .photos-main-container {
        height: 100%;
        max-width: 475px;
        width: 100%;
        position: relative;
        overflow: hidden;
        cursor: pointer;
        user-select: none;
        border-radius: 10px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .photo-slides {
        display: flex;
        width: 100%;
        height: 100%;
        transition: transform 0.3s ease;
        will-change: transform;
    }
    .photo-slide {
        flex: 0 0 475px;
        width: 475px;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .photos-mainPhoto {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 10px;
        cursor: pointer;
    }
    .photos-mainVideo {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 10px;
        cursor: default;
    }
    .photos-main-container:active {
        cursor: grabbing;
    }

    /* Стили для модального окна */
    .photo-modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        justify-content: center;
        align-items: center;
        touch-action: none;
    }
    .photo-modal-content {
        position: relative;
        max-width: 645px;
        max-height: 860px;
        width: 90%;
        height: 90%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .photo-modal-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        font-size: 24px;
        padding: 0;
        cursor: pointer;
        z-index: 1001;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.2s ease;
        line-height: 1;
    }
    .photo-modal-prev {
        left: -60px;
    }
    .photo-modal-next {
        right: -60px;
    }
    .photo-modal-arrow:hover {
        background-color: rgba(0, 0, 0, 0.7);
    }
    .photo-modal-arrow:active {
        background-color: rgba(0, 0, 0, 0.5) !important;
    }
    .photo-modal-image-container {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        cursor: pointer;
    }
    #photo-modal-image {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
        cursor: default;
    }

    /* Адаптивная верстка для экранов до 1400px */
    @media (max-width: 1400px) {
        .photos {
            max-width: 704px;
            width: 100%;
            height: 476px;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            margin: 0 auto;
            padding: 0;
            box-sizing: border-box;
        }
        .photos-slider {
            max-width: 78px;
            width: 78px;
            height: 476px;
            margin-right: 0;
        }
        .photos-slider-thumbs {
            gap: 20px;
        }
        .photos-slider-arrow {
            left: 19px;
            bottom: 10px;
        }
        .Prev {
            top: 10px;
            bottom: auto;
        }
        .photos-slider-photo {
            width: 78px;
            height: 104px !important;
        }
        .photos-main-container {
            max-width: 626px;
            width: 626px;
            height: 476px;
            margin-left: 0;
            padding: 0;
            box-sizing: border-box;
        }
        .photo-slide {
            flex: 0 0 626px;
            width: 626px;
            height: 476px;
        }
        .photos-mainPhoto {
            width: 376px;
            height: 476px;
            object-fit: contain;
        }
        .photos-mainVideo {
            width: 376px;
            height: 476px;
            object-fit: contain;
        }
    }

    /* Адаптивная верстка для мобильных устройств до 767px */
    @media (max-width: 767px) {
        .photos {
            max-width: 100%;
            width: 100%;
            height: 415px;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            margin: 0 auto;
            padding: 0;
        }
        .photos-slider {
            display: none;
        }
        .photos-main-container {
            max-width: 329px;
            width: 329px;
            height: 415px;
            margin: 0 auto;
        }
        .photo-slide {
            flex: 0 0 329px;
            width: 329px;
            height: 415px;
        }
        .photos-mainPhoto {
            width: 329px;
            height: 415px;
            object-fit: contain;
        }
        .photos-mainVideo {
            width: 329px;
            height: 415px;
            object-fit: contain;
        }
        
        /* Адаптация модального окна для мобильных */
        .photo-modal-content {
            max-width: 90%;
            max-height: 80%;
            width: 90%;
            height: 80%;
            padding: 0;
            margin: 0;
        }
        #photo-modal-image {
            max-width: 100%;
            max-height: 100%;
        }
        .photo-modal-arrow {
            width: 40px;
            height: 40px;
            font-size: 18px;
        }
        .photo-modal-prev {
            left: 10px;
        }
        .photo-modal-next {
            right: 10px;
        }
        
        .photo-modal-image-container {
            cursor: pointer;
        }
    }

    @media (min-width: 768px) {
        .photo-modal-content {
            max-width: 645px;
            max-height: 860px;
            width: 645px;
            height: 860px;
        }
    }




