/* v31 — compact Bounty gallery built on the corrected v30 from v29.
   Keeps the approved “Морской” background/design and removes empty grid areas. */
.room-baunti-page .room-hero-media img{object-position:center 48%}

/* 5 photos: one large on the left + four compact cards on the right. */
.room-baunti-page .baunti-view{
  grid-template-columns:1.55fr 1fr 1fr;
  grid-template-rows:220px 220px;
}
.room-baunti-page .baunti-view .morskoy-photo:first-child{grid-row:1/3}

/* 5 photos: one large on the left + four compact cards on the right. */
.room-baunti-page .baunti-living{
  grid-template-columns:1.35fr 1fr 1fr;
  grid-template-rows:215px 215px;
}
.room-baunti-page .baunti-living .morskoy-photo:first-child{grid-row:1/3}

.room-baunti-page .baunti-bedroom{
  grid-template-columns:1.25fr .95fr;
  grid-template-rows:320px;
}

/* 3 kitchen photos stay in one compact row. */
.room-baunti-page .baunti-kitchen{
  grid-template-columns:repeat(3,1fr);
  grid-template-rows:285px;
}

/* 4 bathroom photos: exact 2×2 grid, no orphan photo / blank space. */
.room-baunti-page .baunti-bath{
  grid-template-columns:repeat(2,1fr);
  grid-template-rows:260px 260px;
}

.room-baunti-page .baunti-view img,
.room-baunti-page .baunti-living img,
.room-baunti-page .baunti-bedroom img,
.room-baunti-page .baunti-kitchen img,
.room-baunti-page .baunti-bath img{object-position:center 50%}
.room-baunti-page .baunti-bedroom .morskoy-photo:first-child img{object-position:center 47%}

@media(max-width:980px){
  /* At tablet width, keep all five view photos in a compact 2-column composition. */
  .room-baunti-page .baunti-view{
    grid-template-columns:1.25fr 1fr;
    grid-template-rows:200px 200px 200px;
  }
  .room-baunti-page .baunti-view .morskoy-photo:first-child{grid-row:1/3}
  .room-baunti-page .baunti-view .morskoy-photo:nth-child(4){grid-column:1/2}
  .room-baunti-page .baunti-view .morskoy-photo:nth-child(5){grid-column:2/3}

  .room-baunti-page .baunti-living{
    grid-template-columns:1fr 1fr;
    grid-template-rows:260px 190px 190px;
  }
  .room-baunti-page .baunti-living .morskoy-photo:first-child{grid-column:1/3;grid-row:auto}

  .room-baunti-page .baunti-bedroom{grid-template-rows:270px}

  .room-baunti-page .baunti-kitchen{
    grid-template-columns:1fr 1fr;
    grid-template-rows:245px 210px;
  }
  .room-baunti-page .baunti-kitchen .morskoy-photo:first-child{grid-column:1/3}

  .room-baunti-page .baunti-bath{
    grid-template-columns:1fr 1fr;
    grid-template-rows:235px 235px;
  }
}

@media(max-width:700px){
  .room-baunti-page .baunti-view,
  .room-baunti-page .baunti-living,
  .room-baunti-page .baunti-bedroom,
  .room-baunti-page .baunti-kitchen,
  .room-baunti-page .baunti-bath{
    grid-template-columns:1fr;
    grid-template-rows:none;
    grid-auto-rows:245px;
  }

  .room-baunti-page .baunti-view .morskoy-photo:first-child,
  .room-baunti-page .baunti-view .morskoy-photo:nth-child(4),
  .room-baunti-page .baunti-view .morskoy-photo:nth-child(5),
  .room-baunti-page .baunti-living .morskoy-photo:first-child,
  .room-baunti-page .baunti-kitchen .morskoy-photo:first-child{
    grid-column:auto;
    grid-row:auto;
  }

  .room-baunti-page .baunti-view .morskoy-photo:first-child,
  .room-baunti-page .baunti-living .morskoy-photo:first-child{min-height:300px}
}
