/* gallery.css — Social feed gallery (Escape Caribeño) */

.gallery{
  padding:0 0 10px;
}

.gallery .section-head{
  margin:0px 0 6px;
}

/* Category block */
.galCat{
  display:flex;
  flex-direction:column;
  margin-bottom:8px;
}

.galCat:last-child{
  margin-bottom:0;
}

.galCat{
  scroll-margin-top:calc(var(--topbar-h, 64px) + 12px);
}

.galCat__top{
  display:flex;
  gap:12px;
  align-items:center;
  padding:0px 0 0px 0;
  margin-left:-14px;
}

.galCat__logo{
  width:40px;
  height:40px;
  border-radius:999px;
  flex:0 0 auto;
  object-fit:cover;
  display:block;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.6);
  transform:translateY(-8px);
}

.galCat__head{
  min-width:0;
  flex:1 1 auto;
}

.galCat__title{
  margin:0;
  font-weight:800;
  letter-spacing:-.01em;
  font-size:1.06rem;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.galCat__meta{
  margin-top:2px;
  font-size:.88rem;
  color:var(--muted, rgba(34,34,34,.65));
  font-weight:500;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Carousel */
.galCat__carousel{
  overflow:hidden;
  margin-left:calc(-1 * var(--gutter));
  margin-right:calc(-1 * var(--gutter));
}

.galCat__track{
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}

.galCat__track::-webkit-scrollbar{
  display:none;
}

.galCat__slide{
  flex:0 0 100%;
  scroll-snap-align:start;
}

.galCat__slide img{
  width:100%;
  aspect-ratio:var(--cat-ratio, 3/2);
  object-fit:cover;
  display:block;
}

/* Dots */
.galCat__dots{
  display:flex;
  justify-content:center;
  gap:6px;
  padding:10px 0 0;
}

.galCat__dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:rgba(31,58,51,.20);
  transition:background .22s ease;
}

.galCat__dot.is-active{
  background:rgba(152,193,255,.90);
}

/* Like button */
.galCat__like{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0px 0 0;
  margin:0 0 0 auto;
  border:0;
  background:transparent;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  font:inherit;
  color:rgba(31,58,51,.70);
  transition:transform .18s ease;
}

.galCat__like:active{
  transform:scale(.94);
}

.galCat__like:focus-visible{
  outline:3px solid rgba(152,193,255,.9);
  outline-offset:3px;
  border-radius:8px;
}

.galCat__heart{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
}

.galCat__heart svg{
  width:28px;
  height:28px;
  fill:none;
  stroke:rgba(31,58,51,.55);
  stroke-width:1.8;
  transition:fill .22s ease, stroke .22s ease, transform .22s ease;
}

.galCat__like.is-liked .galCat__heart svg{
  fill:#ff4d6a;
  stroke:#ff4d6a;
  animation:galHeartPop .35s ease;
}

@keyframes galHeartPop{
  0%  { transform:scale(1); }
  40% { transform:scale(1.25); }
  100%{ transform:scale(1); }
}

.galCat__count{
  font-weight:650;
  font-size:1.05rem;
  line-height:1;
  font-variant-numeric:tabular-nums;
}

/* (removed: desktop title/count sizing — hidden in masonry mode) */

/* Desktop/tablet: hide entire gallery section */
@media (min-width:860px){
  .gallery{
    display:none;
  }
}

/* Mobile: hide desktop masonry, show carousels */
@media (max-width:859px){
  [data-gallery-desktop]{
    display:none;
  }
}

@media (prefers-reduced-motion:reduce){
  .galCat__like.is-liked .galCat__heart svg{
    animation:none;
  }

  .galCat__dot{
    transition:none;
  }
}
