
/* HANNA · Galería editorial con filtros y visor inmersivo */
#hannaRealGallery{margin-top:24px;font-family:'Plus Jakarta Sans',sans-serif}
#hannaRealGallery .hanna-gallery-filters{display:flex;gap:7px;overflow-x:auto;padding:2px 1px 12px;scrollbar-width:thin}
#hannaRealGallery .hanna-gallery-filter{border:1px solid #e7cfd3;background:#fff;color:#7b5965;border-radius:999px;padding:10px 15px;font-size:11px;font-weight:750;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s;flex-shrink:0}
#hannaRealGallery .hanna-gallery-filter:hover{border-color:#bc8998;background:#fff3f4}
#hannaRealGallery .hanna-gallery-filter.is-active{background:#875d6b;color:#fff;border-color:#875d6b}
#hannaRealGallery .hanna-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#hannaRealGallery .hanna-gallery-card{min-width:0;overflow:hidden;border:1px solid #ecd8dc;border-radius:17px;background:#fff;box-shadow:0 4px 18px rgba(103,63,81,.055);transition:transform .18s,box-shadow .18s}
#hannaRealGallery .hanna-gallery-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(103,63,81,.12)}
#hannaRealGallery .hanna-gallery-view{border:0;padding:0;background:#f8f1ef;width:100%;height:200px;position:relative;display:block;cursor:zoom-in;overflow:hidden}
#hannaRealGallery .hanna-gallery-view img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}
#hannaRealGallery .hanna-gallery-view:hover img{transform:scale(1.045)}
#hannaRealGallery .hanna-gallery-stamp{position:absolute;left:10px;top:10px;background:rgba(255,251,250,.96);color:#805260;border-radius:6px;font-size:9px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;padding:6px 9px}
#hannaRealGallery .hanna-gallery-zoom{position:absolute;right:11px;bottom:11px;width:34px;height:34px;display:grid;place-items:center;color:#fff;background:rgba(54,30,43,.7);border-radius:50%;font-size:12px}
#hannaRealGallery .hanna-gallery-meta{padding:12px 14px 15px}
#hannaRealGallery .hanna-gallery-area{color:#ab7483;text-transform:uppercase;letter-spacing:.12em;font-weight:850;font-size:9px}
#hannaRealGallery .hanna-gallery-title{font-size:13px;font-weight:750;color:#5a404b;line-height:1.45;margin-top:5px;min-height:19px}
#hannaRealGallery .hanna-gallery-empty{grid-column:1/-1;color:#826a76;padding:27px 16px;text-align:center;border:1px dashed #e6cfd3;border-radius:16px;background:#fffbfa;font-size:13px}
#hannaRealGallery .hanna-gallery-admin-hint{display:flex;gap:8px;align-items:flex-start;font-size:11px;line-height:1.6;color:#87596a;background:#fff7f7;border:1px dashed #e7c5cd;border-radius:12px;padding:10px;margin-bottom:13px}
#hannaRealGallery .hanna-gallery-admin-hint i{margin-top:4px}
#hannaRealGallery .hanna-gallery-card-controls{padding:0 12px 12px}
#hannaRealGallery .hanna-gallery-category-select{width:100%;font-size:11px;padding:9px;border:1px solid #e3c4cb;border-radius:9px;color:#6d4353;background:#fff}
#hannaRealGallery .hanna-gallery-card-buttons{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
#hannaRealGallery .hanna-gallery-card-buttons button{padding:7px 8px;border:1px solid #e6cfd3;border-radius:8px;background:#fff;color:#79515d;font-size:10px;font-weight:700;cursor:pointer}
#hannaRealGallery .hanna-gallery-card-buttons button:hover{background:#fbe9ed}
#hannaRealGallery .hanna-gallery-card-buttons .hanna-gallery-delete{color:#b24c61}
#hannaRealGallery [data-hanna-gallery-caption]{cursor:text;outline-offset:3px}
.hanna-gallery-upload-label{display:flex;align-items:center;gap:8px;color:#79515d;font-size:11px;font-weight:700}
.hanna-gallery-upload-label select{border:1px solid #dbb7c0;border-radius:9px;background:#fff;padding:9px;max-width:170px;color:#624250;font-size:11px}
body.hanna-gallery-open{overflow:hidden!important}
#hannaGalleryViewer[hidden]{display:none!important}
#hannaGalleryViewer{position:fixed;inset:0;z-index:999999;background:rgba(31,18,26,.94);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center;padding:16px;color:#fff;font-family:'Plus Jakarta Sans',sans-serif}
#hannaGalleryViewer .hanna-gallery-lightbox-shell{width:min(1100px,100%);height:min(92dvh,920px);display:flex;flex-direction:column;gap:8px}
#hannaGalleryViewer .hanna-gallery-lightbox-header{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:4px 0 9px}
#hannaGalleryViewer .hanna-gallery-lightbox-header small{font-size:10px;letter-spacing:.2em;color:#e2b9c4;font-weight:800}
#hannaGalleryViewer .hanna-gallery-lightbox-header h2{font:600 clamp(22px,3vw,34px) 'Cormorant Garamond',Georgia,serif;color:#fff;margin-top:4px}
#hannaGalleryViewer #hannaGalleryViewerClose{height:42px;width:42px;display:grid;place-items:center;background:#fff2;border:1px solid #fff5;color:#fff;border-radius:50%;cursor:pointer}
#hannaGalleryViewer .hanna-gallery-lightbox-stage{flex:1;min-height:0;display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:10px;align-items:center;justify-items:center}
#hannaGalleryViewer #hannaGalleryViewerImage{max-width:100%;max-height:100%;min-height:0;min-width:0;width:auto;height:auto;object-fit:contain;border-radius:12px;box-shadow:0 12px 42px #160b1369}
#hannaGalleryViewer .hanna-gallery-lightbox-arrow{width:46px;height:46px;border:1px solid #fff5;border-radius:50%;background:#fff2;color:#fff;cursor:pointer}
#hannaGalleryViewer .hanna-gallery-lightbox-arrow:disabled{opacity:.23;cursor:default}
#hannaGalleryViewer .hanna-gallery-lightbox-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:88px}
#hannaGalleryViewer #hannaGalleryViewerCaption{font-size:15px;font-weight:700;color:#fff}
#hannaGalleryViewer #hannaGalleryViewerCount{font-size:11px;color:#c6aebb;margin-top:6px}
#hannaGalleryViewer .hanna-gallery-lightbox-thumbs{display:flex;align-items:center;gap:8px;max-width:57%;overflow-x:auto;padding:5px;scrollbar-width:thin}
#hannaGalleryViewer .hanna-gallery-thumb{height:54px;width:74px;flex:0 0 auto;overflow:hidden;border:2px solid transparent;border-radius:8px;background:#fff2;cursor:pointer;padding:0}
#hannaGalleryViewer .hanna-gallery-thumb img{height:100%;width:100%;object-fit:cover}
#hannaGalleryViewer .hanna-gallery-thumb.is-active{border-color:#e7bdca}
#hannaGalleryViewer button:focus-visible,#hannaRealGallery button:focus-visible{outline:3px solid #df9fb2;outline-offset:3px}
@media(max-width:680px){
 #hannaRealGallery .hanna-gallery-grid{gap:10px}
 #hannaRealGallery .hanna-gallery-view{height:155px}
 #hannaRealGallery .hanna-gallery-meta{padding:9px 10px 12px}
 #hannaRealGallery .hanna-gallery-title{font-size:11px}
 #hannaGalleryViewer{padding:10px}
 #hannaGalleryViewer .hanna-gallery-lightbox-shell{height:95dvh}
 #hannaGalleryViewer .hanna-gallery-lightbox-stage{grid-template-columns:30px minmax(0,1fr) 30px;gap:4px}
 #hannaGalleryViewer .hanna-gallery-lightbox-arrow{height:30px;width:30px}
 #hannaGalleryViewer .hanna-gallery-lightbox-footer{flex-direction:column;align-items:stretch;gap:5px;padding-bottom:10px}
 #hannaGalleryViewer .hanna-gallery-lightbox-thumbs{max-width:100%}
 #hannaGalleryViewer .hanna-gallery-thumb{height:47px;width:65px}
 .hanna-gallery-upload-label{flex-wrap:wrap}
}

#hannaRealGallery .hanna-gallery-card-buttons .hanna-gallery-delete{
 position:static!important;top:auto!important;right:auto!important;
 z-index:auto!important;box-shadow:none!important;
 font-size:10px!important;font-weight:700!important;
 padding:7px 8px!important;border-radius:8px!important;
}
body.hanna-visual-active .hanna-gallery-title[contenteditable]{
 outline:2px dashed #c999a4!important;background:#fff6f7!important;
}


/* Corrección editorial: el antiguo contenedor de galería era una cuadrícula y
   distribuía FILTROS y FOTOS como columnas, estirando los filtros a 400px. */
#lookbook #hannaRealGallery.hanna-real-gallery{
  display:block!important;
  grid-template-columns:none!important;
  grid-template-rows:none!important;
  grid-auto-flow:initial!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
  margin:22px 0 0!important;
  padding:0!important;
}
#lookbook #hannaRealGallery .hanna-gallery-filters{
  width:100%!important;
  min-width:0!important;
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  align-content:center!important;
  gap:8px!important;
  margin:0 0 20px!important;
  padding:2px 0 6px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none;
  scroll-snap-type:x proximity;
}
#lookbook #hannaRealGallery .hanna-gallery-filters::-webkit-scrollbar{display:none}
#lookbook #hannaRealGallery .hanna-gallery-filter{
  position:static!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  width:max-content!important;
  min-width:max-content!important;
  max-width:none!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  margin:0!important;
  padding:0 16px!important;
  align-items:center!important;
  align-self:center!important;
  justify-content:center!important;
  text-align:center!important;
  border-radius:999px!important;
  font:750 11px/1.2 'Plus Jakarta Sans',sans-serif!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  scroll-snap-align:start;
  background:#fff!important;
  color:#795963!important;
  border:1px solid #e7d5d9!important;
  box-shadow:none!important;
}
#lookbook #hannaRealGallery .hanna-gallery-filter:hover{
  background:#faedef!important;border-color:#d7a9b7!important;color:#754b5b!important
}
#lookbook #hannaRealGallery .hanna-gallery-filter.is-active{
  background:#855a6a!important;
  border-color:#855a6a!important;
  color:#fff!important;
}
#lookbook #hannaRealGallery .hanna-gallery-grid{
  display:grid!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:auto!important;
  align-items:start!important;
  gap:18px!important;
  margin:0!important;
  padding:0!important;
}
#lookbook #hannaRealGallery .hanna-gallery-card{
  min-width:0!important;
  width:100%!important;
  height:auto!important;
  border:1px solid #efdee0!important;
  border-radius:17px!important;
  background:#fffdfc!important;
  box-shadow:0 8px 26px rgba(89,54,68,.065)!important;
  overflow:hidden!important;
  transform:none;
}
#lookbook #hannaRealGallery .hanna-gallery-card:hover{
  transform:translateY(-3px);
  box-shadow:0 13px 31px rgba(89,54,68,.11)!important;
}
#lookbook #hannaRealGallery .hanna-gallery-view{
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:4/3!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
  background:#f4e9e7!important;
  padding:0!important;
  margin:0!important;
  border:none!important;
  border-radius:0!important;
}
#lookbook #hannaRealGallery .hanna-gallery-view>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
}
#lookbook #hannaRealGallery .hanna-gallery-meta{
  display:block!important;
  width:100%!important;
  min-height:77px!important;
  padding:15px 16px 17px!important;
  background:#fffdfc!important;
}
#lookbook #hannaRealGallery .hanna-gallery-area{
  display:block!important;
  font-size:9px!important;
  letter-spacing:.11em!important;
  line-height:1.4!important;
  color:#a47483!important;
}
#lookbook #hannaRealGallery .hanna-gallery-title{
  display:block!important;
  margin:6px 0 0!important;
  min-height:0!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.45!important;
  color:#573e4b!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
#lookbook #hannaRealGallery .hanna-gallery-stamp{
  top:12px!important;left:12px!important;
  padding:6px 10px!important;
  border-radius:7px!important;
  box-shadow:0 2px 10px #39223119!important;
}
#lookbook #hannaRealGallery .hanna-gallery-zoom{
  width:34px!important;height:34px!important;border-radius:50%!important;
}
#lookbook #hannaRealGallery .hanna-gallery-admin-hint,
#lookbook #hannaRealGallery .hanna-gallery-empty{
  width:100%!important;min-width:0!important;
}
@media(min-width:1350px){
  #lookbook #hannaRealGallery .hanna-gallery-grid{gap:20px!important}
  #lookbook #hannaRealGallery .hanna-gallery-view{aspect-ratio:5/4!important}
}
@media(max-width:767px){
  #lookbook #hannaRealGallery .hanna-gallery-grid{gap:12px!important}
  #lookbook #hannaRealGallery .hanna-gallery-view{aspect-ratio:1/1!important}
  #lookbook #hannaRealGallery .hanna-gallery-meta{min-height:70px!important;padding:12px 11px 15px!important}
  #lookbook #hannaRealGallery .hanna-gallery-title{font-size:12px!important}
  #lookbook #hannaRealGallery .hanna-gallery-filter{height:36px!important;min-height:36px!important;max-height:36px!important;padding:0 13px!important}
}
@media(max-width:380px){
  #lookbook #hannaRealGallery .hanna-gallery-grid{gap:9px!important}
  #lookbook #hannaRealGallery .hanna-gallery-title{font-size:11px!important}
}
