/* Interactive room mosaic, controls and lightbox */
.hi-room-feature {
  min-width:0;
}

.hi-room-feature .hi-photo-space {
  overflow:hidden;
  background:linear-gradient(140deg,#e7e0d4,#d3d9cf);
  border-radius:var(--hi-radius);
}

.hi-room-feature:nth-child(2) .hi-photo-space {
  background:linear-gradient(135deg,#d1d9cf,#eee6d9);
}

.hi-room-caption {
  padding-top:4px;
}

.hi-room-caption h3 {
  font-size:32px;
}

.hi-room-caption .hi-text-link {
  display:block;
  width:fit-content;
}

@media(min-width:600px) {
.hi-room-caption h3 {
  font-size:28px;
}
}

@media(min-width:1024px) {
.hi-room-feature .hi-photo-space {
  aspect-ratio:auto;
  height:240px;
  margin-top:55px;
}
}

@media(min-width:1024px) {
.hi-room-feature.is-featured .hi-photo-space {
  height:320px;
  margin-top:0;
}
}

@media(min-width:1024px) {
.hi-room-caption h3 {
  font-size:34px;
}
}

@media(prefers-reduced-motion:no-preference) {
.hi-room-feature .hi-photo-space {
  transition:height .25s ease,margin-top .25s ease;
}
}

.hi-site .hi-gallery-stage {
  position:relative;
  isolation:isolate;
  background:#e7e0d4;
}

.hi-gallery-main {
  position:absolute;
  inset:0;
  display:block;
  overflow:hidden;
  border-radius:var(--hi-radius);
  touch-action:pan-y;
}

.hi-site .hi-room-mosaic .hi-gallery-main > img {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.hi-site .hi-gallery-main:focus-visible {
  outline:3px solid white;
  outline-offset:-6px;
  box-shadow:inset 0 0 0 9px var(--hi-green);
}

.hi-site .hi-gallery-zoom {
  position:absolute;
  display:grid;
  place-items:center;
  color:white;
  font:400 22px/1 var(--hi-font-body);
}

.hi-site .hi-gallery-controls {
  display:none;
}

.is-gallery-ready .hi-gallery-controls {
  position:absolute;
  left:12px;
  bottom:12px;
  display:flex;
  align-items:center;
  background:var(--hi-green);
  color:white;
  border:1px solid var(--hi-ivory);
  border-radius:24px;
  z-index:2;
  gap:4px;
  padding-top:2px;
  padding-right:2px;
  padding-bottom:2px;
  padding-left:2px;
}

.hi-site .hi-gallery-controls button,.hi-lightbox-controls button {
  display:grid;
  place-items:center;
  min-width:44px;
  min-height:44px;
  border:0;
  border-radius:50%;
  background:transparent;
  color:white;
  cursor:pointer;
  font:400 23px/1 var(--hi-font-body);
}

.hi-site .hi-gallery-controls output {
  font:400 11px/1.4 var(--hi-font-body);
  min-width:68px;
  text-align:center;
}

.hi-gallery-controls button:hover,.hi-lightbox-controls button:hover {
  background:#3c6757;
}

.hi-gallery-controls button:focus-visible {
  outline:3px solid white;
  outline-offset:-5px;
}

.hi-gallery-fallback {
  font-size:13px;
  margin-top:12px;
}

.hi-gallery-fallback a {
  display:inline-block;
  padding-top:8px;
  padding-right:8px;
  padding-bottom:8px;
  padding-left:8px;
  text-decoration:underline;
}

.is-gallery-ready+.hi-gallery-fallback {
  display:none;
}

.hi-site .hi-gallery-examples {
  font-size:12px;
  color:var(--hi-muted);
  margin-top:20px;
}

.hi-site .hi-photo-space.hi-gallery-stage>span {
  font-size:inherit;
}

.hi-lightbox:not([open]) {
  display:none;
}

.hi-lightbox {
  background:#173b31;
  color:var(--hi-ivory);
  border:1px solid #6b8679;
  border-radius:8px;
  padding-top:14px;
  padding-right:14px;
  padding-bottom:14px;
  padding-left:14px;
  width:calc(100vw - 24px);
  max-width:1200px;
  max-height:calc(100dvh - 24px);
}

.hi-lightbox[open] {
  display:flex;
  flex-direction:column;
  gap:10px;
}

.hi-lightbox::backdrop {
  background:rgba(11,23,17,.9);
}

.hi-lightbox-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.hi-site .hi-lightbox h2 {
  font-size:clamp(22px,3vw,32px);
  color:var(--hi-ivory);
  letter-spacing:-.02em;
}

.hi-lightbox-bar button {
  background:transparent;
  color:white;
  border:1px solid #bac9bd;
  border-radius:5px;
  min-height:44px;
  font:400 13px/1.3 var(--hi-font-body);
  cursor:pointer;
  flex-shrink:0;
}

.hi-lightbox-stage {
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#102b23;
}

.hi-lightbox-stage img {
  display:block;
  max-width:100%;
  width:auto;
  height:auto;
  max-height:calc(100dvh - 190px);
  object-fit:contain;
}

.hi-lightbox-controls {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
}

.hi-lightbox-controls output {
  font-size:13px;
  min-width:100px;
  text-align:center;
}

.hi-lightbox button:focus-visible {
  outline:3px solid white;
  outline-offset:3px;
}

html.hi-lightbox-open {
  overflow:hidden;
}

@media(min-width:1024px) {
.hi-lightbox {
  padding-top:20px;
  padding-right:20px;
  padding-bottom:20px;
  padding-left:20px;
}
}

@media(prefers-reduced-motion:no-preference) {
.hi-gallery-main img {
  transition:transform .3s ease;
}
}

@media(prefers-reduced-motion:no-preference) {
.hi-gallery-main:hover img {
  transform:scale(1.025);
}
}

.hi-site .hi-lightbox-bar h2 {
  min-width:0;
  overflow-wrap:anywhere;
  flex:1;
}

.hi-lightbox-bar button {
  width:44px;
  padding-top:0;
  padding-right:0;
  padding-bottom:0;
  padding-left:0;
  font-size:26px;
  line-height:1;
}

.hi-room-selector,.hi-room-activate {
  display:none;
}

.hi-room-mosaic {
  display:grid;
  gap:30px;
}

.hi-room-mosaic .hi-photo-space {
  height:300px;
  margin-top:0;
  aspect-ratio:auto;
}

.hi-room-promise {
  font-family:var(--hi-font-heading);
  font-size:24px;
  color:var(--hi-green);
}

.hi-rooms-ready .hi-room-selector {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-bottom:24px;
}

.hi-room-selector button,.hi-room-activate {
  min-height:48px;
  padding-top:12px;
  padding-right:12px;
  padding-bottom:12px;
  padding-left:12px;
  border:1px solid #718478;
  background:var(--hi-ivory);
  color:var(--hi-green);
  border-radius:4px;
  font:400 14px/1.4 var(--hi-font-body);
  cursor:pointer;
  overflow-wrap:anywhere;
}

.hi-room-selector button[aria-pressed=true] {
  background:var(--hi-green);
  color:white;
}

.hi-room-selector button:focus-visible,.hi-room-activate:focus-visible {
  outline:3px solid var(--hi-focus);
  outline-offset:3px;
}

@media(max-width:1023px) {
.hi-rooms-ready .hi-room-mosaic .hi-room-feature:not(.is-featured) {
  display:none;
}
}

@media(max-width:1023px) {
.hi-room-mosaic .hi-photo-space {
  height:auto;
  aspect-ratio:3/2;
  min-height:220px;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic {
  align-items:stretch;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .hi-room-feature {
  display:flex;
  flex-direction:column;
  position:relative;
  padding-bottom:0;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .hi-room-feature:not(.is-featured) .hi-photo-space {
  flex:1;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .is-featured .hi-photo-space {
  margin-top:0;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .hi-room-feature:not(.is-featured) .hi-room-description,.hi-rooms-ready .hi-room-mosaic .hi-room-feature:not(.is-featured) .hi-room-caption>.hi-text-link,.hi-rooms-ready .hi-room-mosaic .hi-room-feature:not(.is-featured) .hi-gallery-controls {
  display:none;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .hi-room-feature:not(.is-featured) h3 {
  font-size:24px;
  margin-top:8px;
  margin-right:0;
  margin-bottom:8px;
  margin-left:0;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .hi-room-feature:not(.is-featured) .hi-room-activate {
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:3;
  background:transparent;
  border:0;
  color:transparent;
  font-size:0;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .hi-room-feature:not(.is-featured) .hi-gallery-main {
  pointer-events:none;
}
}

@media(prefers-reduced-motion:no-preference) {
.hi-room-mosaic .hi-room-feature.is-featured .hi-room-caption {
  animation:hi-room-reveal .2s ease;
}
}

@media(prefers-reduced-motion:no-preference) {
@keyframes hi-room-reveal{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
}

.hi-site .hi-room .hi-room-promise {
  font-size:24px;
  line-height:1.25;
  color:var(--hi-green);
  margin-top:18px;
  margin-right:0;
  margin-bottom:12px;
  margin-left:0;
}

.hi-room-mosaic .hi-photo-space {
  width:100%;
  min-width:0;
}

.hi-room-photo-title {
  display:none;
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-selector {
  display:none;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic {
  grid-template-columns:1.4fr 1.4fr 1fr 1fr;
  grid-template-rows:250px 230px auto;
  gap:16px;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .hi-room-feature.is-featured {
  display:contents;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .is-featured .hi-photo-space {
  grid-column:1/3;
  grid-row:1/3;
  height:100%;
  min-height:0;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .is-featured .hi-room-caption {
  grid-column:1/-1;
  grid-row:3;
  padding-top:22px;
  padding-right:0;
  padding-bottom:8px;
  padding-left:0;
  display:grid;
  grid-template-columns:1fr 1.6fr auto;
  gap:32px;
  align-items:start;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .is-featured .hi-room-caption h3 {
  margin-top:0;
  margin-right:0;
  margin-bottom:0;
  margin-left:0;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .is-featured .hi-room-promise {
  margin-top:0;
  margin-right:0;
  margin-bottom:10px;
  margin-left:0;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .hi-room-feature[data-slot="1"] {
  grid-column:3/5;
  grid-row:1;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .hi-room-feature[data-slot="2"] {
  grid-column:3;
  grid-row:2;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .hi-room-feature[data-slot="3"] {
  grid-column:4;
  grid-row:2;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .hi-room-feature:not(.is-featured) .hi-photo-space {
  height:100%;
  min-height:0;
  margin-top:0;
  margin-right:0;
  margin-bottom:0;
  margin-left:0;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .hi-room-feature:not(.is-featured) .hi-room-caption {
  display:none;
}
}

@media(min-width:1024px) {
.hi-site.hi-rooms-ready .hi-room-mosaic .hi-room-photo-title {
  display:block;
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  color:white;
  font:400 clamp(22px,2.3vw,34px)/1.2 var(--hi-font-heading);
  z-index:1;
  pointer-events:none;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .is-featured .hi-room-photo-title {
  top:0;
  bottom:auto;
  padding-top:24px;
  padding-right:22px;
  padding-bottom:44px;
  padding-left:22px;
  background:linear-gradient(#000a,transparent);
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .is-featured .hi-gallery-zoom {
  left:auto;
  right:16px;
}
}

@media(min-width:1024px) {
.hi-rooms-ready .hi-room-mosaic .hi-room-activate:focus-visible {
  outline-offset:-6px;
  outline:3px solid white;
  box-shadow:inset 0 0 0 9px var(--hi-green);
}
}

.hi-site .hi-gallery-zoom {
  width:34px;
  height:34px;
  top:14px;
  right:14px;
  left:auto;
  border-radius:4px;
  font-size:19px;
  background:rgba(20,44,34,.85);
  border:1px solid #ffffff80;
}

.hi-site .hi-room-feature:not(.is-featured) .hi-gallery-zoom {
  display:none;
}

.hi-site .hi-gallery-controls {
  left:auto;
  right:14px;
  bottom:14px;
  border-radius:24px;
  background:rgba(20,44,34,.9);
  border:1px solid #ffffffb3;
}

.hi-site .hi-gallery-controls output {
  font-size:11px;
}

.hi-site .hi-gallery-controls button {
  min-width:44px;
  min-height:44px;
  font-size:21px;
}

@media(min-width:1024px) {
.hi-site.hi-rooms-ready .hi-room-mosaic .is-featured .hi-room-photo-title {
  top:auto;
  bottom:0;
  padding-top:48px;
  padding-right:190px;
  padding-bottom:22px;
  padding-left:22px;
  background:linear-gradient(transparent,#000b);
  font-size:clamp(23px,2.2vw,32px);
}
}

@media(min-width:1024px) {
.hi-site.hi-rooms-ready .hi-room-mosaic .hi-room-photo-title {
  font-size:clamp(22px,2vw,30px);
  padding-top:40px;
  padding-right:18px;
  padding-bottom:18px;
  padding-left:18px;
  background:linear-gradient(transparent,#000b);
}
}

@media(min-width:1024px) {
.hi-site.hi-rooms-ready .hi-room-mosaic .is-featured .hi-room-caption {
  gap:26px;
  padding-top:18px;
}
}

/* A photo must fill its tile; the general content height:auto must not win.
   Wide, shallow tiles keep the room furniture rather than the ceiling in view. */
@media(min-width:1024px) {
  .hi-site .hi-room-mosaic .hi-gallery-main > img {
    object-position:50% 65%;
  }
}
