/* Galería editorial Herrera */
.hp-photo-gallery {
    display: grid;
    width: min(1200px, calc(100vw - 48px));
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
    margin: 44px 0 64px;
    margin-left: calc(50% - min(600px, (100vw - 48px) / 2));
}
.hp-photo-gallery__card { min-width: 0; margin: 0; }
.hp-photo-gallery__item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef0e7;
    border-radius: 2px;
    text-decoration: none;
}
.hp-photo-gallery__item img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
}
.hp-photo-gallery__item:hover img { transform: scale(1.045); }
.hp-photo-gallery__item:focus-visible { outline: 3px solid #fa4140; outline-offset: 3px; }
.hp-photo-gallery__caption {
    position: static;
    display: block;
    padding: 11px 0 0;
    background: transparent;
    color: #425249;
    font: 500 13px/1.5 'Work Sans', sans-serif;
    overflow-wrap: anywhere;
}
.hp-lightbox[hidden] { display: none !important; }
.hp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 74px 48px;
    background: rgba(15, 24, 20, .94);
    color: #fff;
}
.hp-lightbox__figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
}
.hp-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 150px);
    width: auto;
    height: auto;
    object-fit: contain;
}
.hp-lightbox__caption {
    padding-top: 14px;
    text-align: center;
    font: 400 14px/1.5 'Work Sans', sans-serif;
    color: rgba(255,255,255,.85);
}
.hp-lightbox__control {
    position: absolute;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.08);
    color: #fff;
    font: 400 28px/1 'Work Sans', sans-serif;
    cursor: pointer;
    border-radius: 2px;
}
.hp-lightbox__control:hover { background: rgba(255,255,255,.22); }
.hp-lightbox__control:focus-visible { outline: 2px solid #fa4140; outline-offset: 3px; }
.hp-lightbox__close { top: 16px; right: 18px; }
.hp-lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.hp-lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
body.hp-lightbox-open { overflow: hidden; }
@media (max-width: 991.98px) {
    .hp-photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
}
@media (max-width: 575.98px) {
    .hp-photo-gallery {
        width: calc(100vw - 32px);
        margin-left: calc(50% - (100vw - 32px) / 2);
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .hp-photo-gallery__item { aspect-ratio: 5 / 4; }
    .hp-lightbox { padding: 64px 12px 75px; }
    .hp-lightbox__image { max-height: calc(100dvh - 175px); }
    .hp-lightbox__prev { left: 12px; top: auto; bottom: 15px; transform: none; }
    .hp-lightbox__next { right: 12px; top: auto; bottom: 15px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hp-photo-gallery__item img { transition: none; }
}

/* Especificidad para las reglas globales de interiores.css */
.hp-inner__body .hp-photo-gallery .hp-photo-gallery__item > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}
