/* Diaz Wedding v3.6 — automatic, non-destructive responsive cover photo.
   Desktop: preserve original portrait's full width / 2:3 ratio, no crop.
   Phones: taller crop window automatically frames the couple; no manual controls.
   Photo pixels remain identical to uploaded assets/couple-main-original.jpg. */
.romance-portrait-inner {
  position:relative;
  overflow:hidden;
  isolation:isolate;
  flex:1 1 auto;
  min-width:0;
}
.romance-portrait #heroPhoto {
  position:static !important;
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  left:auto !important;
  top:auto !important;
  object-fit:contain !important;
  object-position:center center !important;
  filter:none !important;
  transform:none !important;
  user-select:none;
}
/* Wide displays: make the frame a portrait with the image's original 2:3 aspect.
   Enlarging the browser reveals the ENTIRE original photo, not a forced crop. */
@media (min-width:871px) {
 .collage {height:auto !important;min-height:0 !important;}
 .romance-portrait {
   width:min(90%,420px) !important;
   height:auto !important;
   flex:0 0 auto;
 }
 .romance-portrait-inner {
   width:100% !important;
   height:auto !important;
   aspect-ratio:1024 / 1536;
   flex:0 0 auto;
 }
 .romance-portrait figcaption {height:40px !important;flex:0 0 40px;}
}
/* Medium viewports: transition to a gentle full-height photo window.
   Preserve photo proportions and center the couple in the visible area. */
@media (min-width:601px) and (max-width:870px) {
 .collage {height:auto !important;min-height:0 !important;margin-top:8px !important;}
 .romance-portrait {width:min(76vw,390px) !important;height:auto !important;}
 .romance-portrait-inner {height:auto !important;aspect-ratio:4/5;flex:0 0 auto;}
 .romance-portrait #heroPhoto {
   object-fit:cover !important;
   object-position:50% 65% !important;
   transform:scale(1.07) !important;
 }
 .romance-portrait figcaption {height:38px !important;flex:0 0 38px;}
}
/* Mobile: larger, taller image with a subtle crop focused on both people,
   while avoiding permanently editing the original JPEG. */
@media (max-width:600px) {
 .collage {
   height:auto !important;
   min-height:0 !important;
   width:100% !important;
   margin:12px auto 8px !important;
 }
 .romance-portrait {
   width:min(85vw,355px) !important;
   height:auto !important;
   border-width:5px !important;
 }
 .romance-portrait-inner {
   width:100% !important;
   height:auto !important;
   aspect-ratio:4 / 5;
   flex:0 0 auto;
 }
 .romance-portrait #heroPhoto {
   object-fit:cover !important;
   object-position:center 62% !important;
   transform:scale(1.28) !important;
   transform-origin:50% 60%;
 }
 .romance-portrait figcaption {height:32px !important;flex:0 0 32px;font-size:7px !important;}
}
@media(max-width:365px){
 .romance-portrait{width:min(85vw,298px)!important;}
 .romance-portrait figcaption{font-size:6px!important;}
}
/* Even when the user has saved a design in older versions, the current layout
   is CSS-driven; no manual zoom, position or crop settings are read. */
