/*  .gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3px;
    margin: auto;
	}
*/
.large-image {
  /*grid-row: span 2;*/
    height: 455px;
    display: block;
}
.large-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}
.more-overlay {
    position: relative;
}
.more-overlay::after {
    content: attr(data-count);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 5px;
}
.image-row {
    display: flex;
    gap: 3px;
    align-items: center;
    justify-content: center;
    background: #f2f2f2;
	border-radius: 5px;
}
.gallery-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 445px;
	border-radius: 5px;
}

.gallery img {
    background: #e0e0e0; 
    position: relative;
    overflow: hidden;
}
.gallery img::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
    animation: shine 1s infinite;
}
@keyframes skeleton-loading {
    0% { background: #e0e0e0; }
    50% { background: #f0f0f0; }
    100% { background: #e0e0e0; }
}
@keyframes shine {
    0% {
		left: -100%;
	}
    100% {
		left: 100%;
	}
}

/* Только базовые стили для видео элементов, не затрагивая размеры контейнеров */
    .video-container {
        position: relative;
        display: block; /* Чтобы контейнер занял все доступное пространство */
    }
    
    .video-container img {
        display: block;
        width: 100%; /* Занимать всю ширину контейнера */
		height: 450px;
    }
    
    /* Стили для оверлея видео */
    .video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.2);
        z-index: 1;
    }
    
    /* Стили для кнопки воспроизведения */
    .youtube-play {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 68px;
        height: 48px;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.5 7.7c-.8-2.9-2.5-5.4-5.4-6.2C55.8.1 34 0 34 0S12.2.1 6.9 1.6c-2.9.8-4.6 3.3-5.4 6.2C.1 13 0 24 0 24s.1 11 1.5 16.3c.8 2.9 2.5 5.4 5.4 6.2C12.2 47.9 34 48 34 48s21.8-.1 27.1-1.6c2.9-.8 4.6-3.3 5.4-6.2C68 35 68 24 68 24s0-11-1.5-16.3z" fill="red"/><path d="M45 24L27 14v20" fill="white"/></svg>') no-repeat center center;
        background-size: cover;
        z-index: 2;
        pointer-events: none; /* Чтобы клик проходил на ссылку под кнопкой */
    }
    
    /* Вариант для маленьких превью */
    .small-images .youtube-play {
        width: 48px;
        height: 34px;
    }
    
    /* Специфичные стили для мобильной версии */
    @media (max-width: 767.98px) {
        .d-block.d-md-none .gallery .youtube-play {
            width: 48px;
            height: 34px;
        }
}