/* HS Gallery frontend — no JS, CSS grid + custom-property crop frame */

.hsg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hsg-figure {
    margin: 0;
    min-width: 0;
}

.hsg-frame {
    overflow: hidden;
}

.hsg-frame a {
    display: block;
    width: 100%;
    height: 100%;
}

.hsg-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    /* translate pans the (possibly zoomed) image 1:1; object-position cannot
       move transform overflow, so pan must live in the transform itself */
    transform: translate(var(--hsg-x, 0%), var(--hsg-y, 0%)) scale(var(--hsg-zoom, 1));
}

.hsg-caption {
    font-size: 0.875em;
    margin-top: 0.5em;
    text-align: center;
}

.hsg-editor-note {
    padding: 20px;
    background: #fff3cd;
    border: 1px dashed #d4a017;
    color: #6b5200;
    font-size: 14px;
    text-align: center;
}
