/* Tamaruva: deliberate crops, still photographs, and complete destination rows. */
[data-tamaruva-place-grid]{
  display:grid;grid-template-columns:minmax(0,1fr);gap:1px;
  width:100%;min-width:0;max-width:100%;align-items:stretch;
}
[data-tamaruva-place-card]{min-width:0;max-width:100%;isolation:isolate;}
[data-tamaruva-place-frame]{
  aspect-ratio:auto;height:clamp(340px,110vw,470px);overflow:hidden;
}
[data-tamaruva-place-frame] img{
  display:block;width:100%;height:100%;object-fit:cover;
  transform:none!important;animation:none!important;transition:none!important;
}
[data-tamaruva-place-copy]{color:var(--ivory,#f5f5f1);}
[data-tamaruva-place-copy] p:first-child{
  color:#ead79f;text-shadow:0 1px 5px rgba(0,0,0,.5);line-height:1.6;
}
[data-tamaruva-place-copy] p:nth-child(2){
  color:#f5f5f1;text-shadow:0 1px 7px rgba(0,0,0,.45);overflow-wrap:anywhere;
}
[data-media-static],.hero-stable-frame,.hero-grow{
  transform:none!important;animation:none!important;will-change:auto!important;
  transition-property:opacity!important;
}
.cine-mist{animation:none!important;transform:none!important;}
/* Wide hero boxes crop the video vertically: keep crowns at the top visible. */
.hero-stable-media{object-position:50% 0%!important;}
@media(min-width:768px) and (min-aspect-ratio:6/5){
  /* Keep the complete 16:9 film below the navigation, even in wide windows. */
  .hero-stable-frame{background:var(--forest-950,#21362d);}
  video.hero-stable-media{
    position:absolute;top:72px;right:0;width:auto;max-width:100%;
    height:min(calc(100% - 72px),56.25vw);object-fit:contain;
    -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 14%),linear-gradient(to bottom,#000 94%,transparent 100%);
    mask-image:linear-gradient(to right,transparent 0%,#000 14%),linear-gradient(to bottom,#000 94%,transparent 100%);
    -webkit-mask-composite:source-in;mask-composite:intersect;
  }
}
@media(max-width:767px) and (max-aspect-ratio:9/16){
  /* Tall phones retain the entire 9:16 film; its lower edge blends into the forest. */
  .hero-stable-frame{background:var(--forest-950,#21362d);}
  video.hero-stable-media{
    display:block;width:100%;height:auto;object-fit:contain;
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 68%,transparent 100%);
    mask-image:linear-gradient(to bottom,#000 0%,#000 68%,transparent 100%);
  }
}
@media(min-width:640px){
  [data-tamaruva-place-grid]{grid-template-columns:repeat(2,minmax(0,1fr));}
  [data-tamaruva-place-frame]{height:clamp(340px,50vw,470px);}
}
@media(min-width:640px) and (max-width:1023px){
  [data-tamaruva-place-card]:last-child:nth-child(odd){grid-column:1/-1;}
}
@media(min-width:1024px){
  [data-tamaruva-place-grid]{grid-template-columns:repeat(12,minmax(0,1fr));}
  [data-tamaruva-place-grid]>[data-tamaruva-place-card]{grid-column:span 3;}
  [data-tamaruva-place-frame]{height:clamp(320px,32vw,480px);}
  [data-place-count="3"]>[data-tamaruva-place-card],
  [data-place-count="6"]>[data-tamaruva-place-card]{grid-column:span 4;}
  [data-place-count="5"]>[data-tamaruva-place-card]{grid-column:span 4;}
  [data-place-count="5"]>[data-tamaruva-place-card]:nth-child(n+4){grid-column:span 6;}
  [data-place-count="7"]>[data-tamaruva-place-card]:nth-child(n+5){grid-column:span 4;}
}
