.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;
}

.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 var(--accent-color, #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;
}

@media (hover: hover) {
    .tusk-gallery-wrapper .tusk-lightbox-trigger:hover img {
        transform: scale(1.03);
    }
}

.tusk-gallery-notice {
    background: #f6f7f7;
    border-left: 4px solid #3c434a;
    padding: 12px 14px;
    margin: 6px 0;
    line-height: 1.5;
}

.tusk-gallery-notice.tusk-gallery-notice-warning {
    background: #fff8e5;
    border-left-color: #dba617;
}

.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;
    }
}
