.tusk-gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.tusk-gallery-wrapper .tusk-gallery-item { margin: 0; height: 100%; }

.tusk-gallery-wrapper .tusk-gallery-image {
    aspect-ratio: 4 / 3;
    background: var(--surface-3, #e9e9e9);
    border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    overflow: hidden;
    position: relative;
}

.tusk-gallery-wrapper .tusk-lightbox-trigger {
    display: block; height: 100%; cursor: zoom-in; border-radius: inherit;
}
.tusk-gallery-wrapper .tusk-lightbox-trigger:focus-visible { outline: 3px solid #0b74de; outline-offset: 3px; }
.tusk-gallery-wrapper .tusk-gallery-item img {
    width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease;
}

.tusk-video-play-icon {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 54px; height: 54px;
    background: rgba(0,0,0,0.65);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    transition: transform 0.25s ease, background 0.25s ease;
}
.tusk-video-play-icon::after {
    content: '';
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

@media (hover: hover) {
    .tusk-gallery-wrapper .tusk-lightbox-trigger:hover img { transform: scale(1.03); }
    .tusk-gallery-wrapper .tusk-lightbox-trigger:hover .tusk-video-play-icon {
        transform: translate(-50%, -50%) scale(1.1); background: rgba(0,0,0,0.85);
    }
}

.tusk-gallery-notice { background: #f6f7f7; border-left: 4px solid #3c434a; padding: 12px 14px; margin: 6px 0; }
.tusk-gallery-notice.tusk-gallery-notice-info { background: #eaf3ff; border-left-color: #2271b1; }

@media (max-width: 600px) {
    .tusk-gallery-wrapper { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
}