/* Shared public content frames. Load after the previous public stylesheets. */
.page-heading h1 { overflow-wrap:anywhere; }
#catalog-results.compact-catalog {
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:32px 24px;
}
.compact-catalog .service-card { min-width:0; }
.compact-catalog .service-photo {
 aspect-ratio:1 / 1;
 isolation:isolate;
}
.compact-catalog .service-photo img {
 display:block;
 width:100%;
 height:100%;
 object-fit:cover;
}

/* The arrow has its own column. A long title can never run underneath it. */
.compact-catalog .service-meta {
 display:grid;
 grid-template-columns:minmax(0,1fr) 40px;
 grid-template-rows:1fr;
 column-gap:12px;
 align-items:start;
 padding:20px 0 18px;
}
.compact-catalog .service-meta>div {
 grid-column:1;
 grid-row:1;
 min-width:0;
}
.compact-catalog .service-meta .service-number { display:none; }
.compact-catalog .service-meta h3,
.home-carousel-track.compact-catalog .service-meta h3 {
 margin:0;
 padding-right:0;
 font-size:clamp(24px,1.9vw,29px);
 line-height:1.16;
 overflow-wrap:anywhere;
}
.compact-catalog .service-meta .arrow {
 position:static;
 inset:auto;
 grid-column:2;
 grid-row:1;
 align-self:start;
 justify-self:end;
 display:grid;
 place-items:center;
 width:40px;
 height:40px;
 min-width:40px;
 margin:1px 0 0;
 padding:0;
 flex:none;
}
.compact-catalog .service-meta .arrow .ll-icon {
 width:17px;
 height:17px;
}
.compact-catalog .service-meta p {
 margin:12px 0;
 font-size:13px;
 line-height:1.75;
}
.compact-catalog .duration-label {
 display:block;
 font-size:11px;
 line-height:1.7;
}

/* Longer descriptions extend the text column downwards, never the photograph. */
.detail-layout {
 align-items:start;
 grid-template-columns:minmax(0,1fr) minmax(0,1fr);
}
.detail-layout>.detail-image-wrap,
.detail-layout>.detail-copy {
 align-self:start;
 min-width:0;
}
.detail-layout>.detail-image-wrap {
 width:100%;
 aspect-ratio:4 / 5;
}
.detail-image-wrap>.detail-cover {
 display:block;
 width:100%;
 height:100%;
 aspect-ratio:4 / 5;
 object-fit:cover;
}
.detail-copy .breadcrumbs { flex-wrap:wrap; }
.detail-copy h1,
.detail-copy .body-copy { overflow-wrap:anywhere; }

/* Covers use the same shape shown by the drag-to-frame editor. */
.info-card>.content-image,
.info-card>.content-media,
.workshop-article>.content-image,
.workshop-article>.content-media,
.prose>.content-image,
.prose>.content-media {
 display:block;
 width:100%;
 height:auto;
 max-height:none;
 aspect-ratio:8 / 5;
 object-fit:cover;
 border-radius:18px;
 overflow:hidden;
}
.content-media>img {
 display:block;
 width:100%;
 height:100%;
 object-fit:cover;
}
.info-card>h3 { overflow-wrap:anywhere; }
.workshop-article>.content-media,
.prose>.content-media { margin-bottom:30px; }

/* Keep the uploaded offer visible, including on small screens. The previous
   fixed 125px image banner was too shallow to frame a portrait reliably. */
#promo-dialog {
 width:calc(100% - 32px);
 max-width:600px;
 max-height:calc(100vh - 32px);
 max-height:calc(100dvh - 32px);
 padding:0;
 overflow-x:hidden;
 overflow-y:auto;
 overscroll-behavior:contain;
}
#promo-dialog .promo-layout {
 display:grid;
 grid-template-columns:minmax(0,1fr);
 min-height:0;
}
#promo-dialog>.modal-close {
 position:sticky;
 top:12px;
 right:auto;
 left:auto;
 z-index:5;
 display:grid;
 place-items:center;
 width:44px;
 height:44px;
 margin:12px 12px -56px auto;
}
#promo-dialog .promo-art {
 width:100%;
 height:auto;
 min-height:0;
 aspect-ratio:5 / 3;
 overflow:hidden;
}
#promo-dialog .promo-image {
 display:block;
 width:100%;
 height:100%;
 min-height:0;
 max-height:none;
 aspect-ratio:5 / 3;
 object-fit:cover;
}
.today-offer>div:first-child {
 overflow:hidden;
 min-width:0;
}
.today-offer>div:first-child>img,
.offer-card-image {
 display:block;
 width:100%;
 height:auto;
 aspect-ratio:5 / 3;
 object-fit:cover;
}
.week-row>img.offer-row-image {
 display:block;
 width:100%;
 height:auto;
 aspect-ratio:2 / 1;
 object-fit:cover;
 border-radius:12px;
 margin-bottom:4px;
}
.general-offer .offer-card-image {
 border-radius:12px;
 margin-bottom:18px;
}

@media(max-width:1023px) {
 #catalog-results.compact-catalog {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:28px 18px;
 }
 .compact-catalog .service-meta { column-gap:10px; }
 .compact-catalog .service-meta h3,
 .home-carousel-track.compact-catalog .service-meta h3 {
  font-size:25px;
 }
}
@media(max-width:640px) {
 #catalog-results.compact-catalog {
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:26px 14px;
 }
 .compact-catalog .service-meta {
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:1fr auto;
  row-gap:12px;
  padding:17px 0 16px;
 }
 .compact-catalog .service-meta h3,
 .home-carousel-track.compact-catalog .service-meta h3 {
  font-size:clamp(21px,5.5vw,26px);
  padding-right:0;
  line-height:1.18;
 }
 .compact-catalog .service-meta .arrow {
  grid-column:1;
  grid-row:2;
  width:34px;
  height:34px;
  min-width:34px;
  margin:0;
 }
 .compact-catalog .service-meta p {
  font-size:12px;
  margin:10px 0;
 }
 .compact-catalog .duration-label { font-size:10px; }
 .detail-layout { gap:28px; }
 .detail-layout>.detail-image-wrap { max-width:100%; }
 .detail-image-wrap>.detail-cover { border-radius:100px 100px 20px 20px; }
 .info-card>.content-image,
 .info-card>.content-media,
 .workshop-article>.content-image,
 .workshop-article>.content-media,
 .prose>.content-image,
 .prose>.content-media { border-radius:14px; }
}
