.hds-archive-gallery .et_pb_gallery_items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    position: relative;
}

.hds-archive-gallery .et_pb_gallery_items::before,
.hds-archive-gallery .et_pb_gallery_items::after {
    display: none;
}

.hds-archive-gallery.et_pb_gallery_grid .et_pb_gallery_item {
    float: none;
    width: auto;
    margin: 0;
    clear: none;
    min-width: 0;
}

.hds-archive-gallery .et_pb_gallery_items.hds-masonry-ready .et_pb_gallery_item {
    position: absolute;
    width: calc((100% - 12px) / 2);
    top: var(--hds-top);
    inset-inline-start: var(--hds-left);
}

.hds-archive-gallery .et_pb_gallery_image img {
    display: block;
    width: 100%;
    height: auto;
}

.hds-archive-gallery .et_pb_gallery_image {
    overflow: hidden;
}

.hds-archive-gallery .et_overlay {
    display: none;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .hds-archive-gallery .et_pb_gallery_image img {
        transition: transform 0.4s ease-in-out;
    }

    .hds-archive-gallery .et_pb_gallery_image:hover img {
        transform: scale(1.2);
    }
}

.hds-gallery-viewer {
    box-sizing: border-box;
    width: min(100vw, 1200px);
    max-width: 100%;
    max-height: 100%;
    border: 0;
    background: transparent;
    color: white;
    padding: 36px 44px 12px;
    text-align: center;
}

.hds-gallery-viewer::backdrop {
    background: rgba(0, 0, 0, 0.88);
}

.hds-gallery-viewer img {
    display: block;
    max-height: calc(100dvh - 90px);
    max-width: 100%;
    width: auto;
    height: auto;
    margin: auto;
    object-fit: contain;
}

.hds-gallery-viewer button {
    position: absolute;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 30px;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
}

.hds-gallery-close { top: 0; right: 0; }
.hds-gallery-previous { top: calc(50% - 22px); left: 0; }
.hds-gallery-next { top: calc(50% - 22px); right: 0; }
