/* SA Core · Galería pública */
body.sa-gallery-page .sa-content{padding:34px 0 64px}
body.sa-gallery-page .sa-content article{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important}
body.sa-gallery-page .sa-content article>h1{display:none!important}
body.sa-gallery-page .sa-content article img{border-radius:0}

.sa-gallery{
  --wine:#5B2430;--wine2:#71303D;--rose:#B38A72;--graphite:#252526;--muted:#77716D;--ivory:#F4F1EB;--line:#DDD8D0;--sa-gallery-bg:transparent;
  position:relative;isolation:isolate;overflow:hidden;width:100%;margin:0;padding:18px 0 30px;color:var(--graphite);background:var(--sa-gallery-bg)
}
.sa-gallery--decorated{padding:36px 30px 42px;border-radius:22px}
.sa-gallery__background-wrap{position:absolute;z-index:-3;inset:0;overflow:hidden}.sa-gallery__background,.sa-gallery__background-video{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:var(--sa-gallery-media-x,50%) var(--sa-gallery-media-y,50%);transform:scale(var(--sa-gallery-media-zoom,1));transform-origin:var(--sa-gallery-media-x,50%) var(--sa-gallery-media-y,50%);display:block}
.sa-gallery__overlay{position:absolute;z-index:-2;inset:0;background:#141214;pointer-events:none}
.sa-gallery__inner{position:relative;z-index:1;min-width:0}

.sa-gallery__head{width:100%;max-width:none;margin:0 0 24px}
.sa-gallery__eyebrow{display:block;color:var(--wine);font-size:12px;font-weight:800;letter-spacing:.19em;text-transform:uppercase;margin-bottom:9px}
.sa-gallery__head h1{margin:0 0 10px!important;font-size:clamp(40px,5.4vw,66px)!important;line-height:.98!important;letter-spacing:-.045em!important}
.sa-gallery__head p{width:100%;max-width:none;margin:0;color:var(--muted);font-size:17px;line-height:1.72;text-align:justify;white-space:normal}
.sa-gallery--tone-light{color:#fff}.sa-gallery--tone-light .sa-gallery__eyebrow{color:#efd7c9}.sa-gallery--tone-light .sa-gallery__head p{color:rgba(255,255,255,.82)}

.sa-gallery__filters{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 22px}
.sa-gallery__filters button{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:rgba(255,255,255,.92);color:var(--graphite);padding:9px 13px;border-radius:999px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;transition:.18s ease}
.sa-gallery__filters button small{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#f1ece7;color:#776f6b;font-size:11px;font-weight:800}
.sa-gallery__filters button:hover,.sa-gallery__filters button.is-active{background:var(--wine);border-color:var(--wine);color:#fff}
.sa-gallery__filters button.is-active small,.sa-gallery__filters button:hover small{background:rgba(255,255,255,.16);color:#fff}

/* Muro tipo masonry: sin tarjetas blancas y respetando proporciones */
.sa-gallery__grid{column-count:4;column-gap:10px}
.sa-gallery article.sa-gallery__item{display:inline-block!important;width:100%!important;break-inside:avoid;vertical-align:top;margin:0 0 10px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.sa-gallery article.sa-gallery__item[hidden],.sa-gallery article.sa-gallery__item.is-filtered-out{display:none!important}
.sa-gallery__open{display:block;width:100%;padding:0;border:0;background:transparent;text-align:left;cursor:pointer;color:inherit}
.sa-gallery__media{position:relative;overflow:hidden;margin:0;border-radius:10px;background:#ded8d2}
.sa-gallery__media img,.sa-gallery__media video{display:block;width:100%;max-width:100%;margin:0!important;border:0!important;border-radius:0!important;object-position:var(--sa-media-x,50%) var(--sa-media-y,50%);transform:scale(var(--sa-media-zoom,1));transform-origin:var(--sa-media-x,50%) var(--sa-media-y,50%);transition:transform .3s ease}
.sa-gallery__media--auto img,.sa-gallery__media--auto video{height:auto;object-fit:contain}
.sa-gallery__media--landscape{aspect-ratio:4/3}.sa-gallery__media--portrait{aspect-ratio:3/4}.sa-gallery__media--square{aspect-ratio:1/1}.sa-gallery__media--wide{aspect-ratio:16/9}
.sa-gallery__media--landscape img,.sa-gallery__media--portrait img,.sa-gallery__media--square img,.sa-gallery__media--wide img,.sa-gallery__media--landscape video,.sa-gallery__media--portrait video,.sa-gallery__media--square video,.sa-gallery__media--wide video{width:100%;height:100%;object-fit:cover}
.sa-gallery__open:hover .sa-gallery__media img,.sa-gallery__open:hover .sa-gallery__media video{transform:scale(var(--sa-media-hover-zoom,1.018))}
.sa-gallery__media figcaption{position:absolute;left:0;right:0;bottom:0;padding:34px 12px 10px;color:#fff;font-size:12px;font-weight:700;background:linear-gradient(180deg,transparent,rgba(17,16,17,.7));text-shadow:0 1px 5px rgba(0,0,0,.25)}
.sa-gallery__play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.94);color:var(--wine);padding-left:3px;box-shadow:0 7px 24px rgba(0,0,0,.14)}
.sa-gallery__video-badge{position:absolute;left:10px;top:10px;padding:5px 8px;border-radius:999px;background:rgba(20,18,20,.66);color:#fff;font-size:9px;font-weight:800;letter-spacing:.12em}
.sa-gallery__empty{column-span:all;padding:26px;border:1px solid var(--line);border-radius:14px;background:#fff}.sa-gallery__empty strong,.sa-gallery__empty span{display:block}.sa-gallery__empty span{margin-top:5px;color:var(--muted)}

html.sa-gallery-open,body.sa-gallery-open{overflow:hidden!important}

/* Lightbox global: JS lo mueve a <body> para quedar por encima del header del tema. */
body>.sa-gallery__lightbox{position:fixed!important;z-index:2147483000!important;inset:0!important;background:rgba(13,12,13,.965)!important;display:flex;align-items:center;justify-content:center;padding:72px 82px 78px!important}
body>.sa-gallery__lightbox[hidden]{display:none!important}
body>.sa-gallery__lightbox .sa-gallery__stage{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;padding:0}
body>.sa-gallery__lightbox .sa-gallery__stage img,body>.sa-gallery__lightbox .sa-gallery__stage video{display:block;max-width:min(92vw,1500px)!important;max-height:84vh!important;width:auto!important;height:auto!important;object-fit:contain;border-radius:10px;background:#000;box-shadow:0 22px 70px rgba(0,0,0,.32)}
body>.sa-gallery__lightbox .sa-gallery__close,body>.sa-gallery__lightbox .sa-gallery__prev,body>.sa-gallery__lightbox .sa-gallery__next{position:absolute!important;z-index:2!important;border:1px solid rgba(255,255,255,.2)!important;background:rgba(255,255,255,.14)!important;color:#fff!important;cursor:pointer!important;display:grid!important;place-items:center!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transition:background .18s ease,transform .18s ease}
body>.sa-gallery__lightbox .sa-gallery__close:hover,body>.sa-gallery__lightbox .sa-gallery__prev:hover,body>.sa-gallery__lightbox .sa-gallery__next:hover{background:rgba(255,255,255,.24)!important}
body>.sa-gallery__lightbox .sa-gallery__close{right:22px!important;top:22px!important;width:48px!important;height:48px!important;border-radius:50%!important;font-size:32px!important;line-height:1!important;font-family:Arial,sans-serif!important}
body>.sa-gallery__lightbox .sa-gallery__prev,body>.sa-gallery__lightbox .sa-gallery__next{top:50%!important;transform:translateY(-50%)!important;width:48px!important;height:64px!important;border-radius:14px!important;font-size:36px!important;line-height:1!important}
body>.sa-gallery__lightbox .sa-gallery__prev{left:18px!important}
body>.sa-gallery__lightbox .sa-gallery__next{right:18px!important}
body>.sa-gallery__lightbox .sa-gallery__prev:hover,body>.sa-gallery__lightbox .sa-gallery__next:hover{transform:translateY(-50%) scale(1.03)!important}
body>.sa-gallery__lightbox .sa-gallery__lightbox-caption{position:absolute!important;left:70px!important;right:70px!important;bottom:24px!important;color:#fff!important;text-align:center!important;font-size:14px!important;line-height:1.5!important;pointer-events:none}

@media(max-width:1050px){.sa-gallery__grid{column-count:3}}
@media(max-width:760px){.sa-gallery__grid{column-count:2}.sa-gallery--decorated{padding:28px 18px 34px}}
@media(max-width:520px){body.sa-gallery-page .sa-content{padding-top:20px}.sa-gallery{padding:8px 0 24px}.sa-gallery--decorated{padding:22px 12px 28px;border-radius:16px}.sa-gallery__grid{column-gap:7px}.sa-gallery article.sa-gallery__item{margin-bottom:7px!important}.sa-gallery__media{border-radius:8px}.sa-gallery__filters{gap:6px}.sa-gallery__filters button{padding:8px 10px;font-size:13px}body>.sa-gallery__lightbox{padding:64px 48px 66px!important}body>.sa-gallery__lightbox .sa-gallery__prev,body>.sa-gallery__lightbox .sa-gallery__next{width:38px!important;height:52px!important;font-size:30px!important}body>.sa-gallery__lightbox .sa-gallery__prev{left:6px!important}body>.sa-gallery__lightbox .sa-gallery__next{right:6px!important}body>.sa-gallery__lightbox .sa-gallery__close{right:10px!important;top:10px!important;width:44px!important;height:44px!important}body>.sa-gallery__lightbox .sa-gallery__lightbox-caption{left:16px!important;right:16px!important;bottom:18px!important}}
