.hds-project-views {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 64px);
  color: #171715;
}
.hds-views-section { padding-block: clamp(36px, 7vw, 108px); }
.hds-views-section + .hds-views-section { border-top: 1px solid #d6d5cf; }
.hds-views-section h2 {
  margin: 0 0 clamp(22px, 4vw, 48px);
  font-size: clamp(32px, 5vw, 74px);
  line-height: 1.08;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.hds-views-section > p {
  margin: -12px 0 clamp(24px, 4vw, 44px);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  max-width: 62ch;
}
.hds-views-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 42px);
}
.hds-view { margin: 0; min-width: 0; }
.hds-view--desktop, .hds-view--facade { grid-column: 1 / -1; }
.hds-view figcaption { margin-top: 12px; font-size: max(16px, 1rem); line-height: 1.45; }
.hds-view__stage {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e9e8e3;
}
.hds-view__stage:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.hds-view__stage img { display: block; width: 100%; height: auto; }
.hds-view__frame { display: block; }
.hds-view--desktop .hds-view__stage { aspect-ratio: 1.95; background: #dedfd9; }
.hds-view--desktop .hds-view__frame,
.hds-view--perspective .hds-view__frame {
  width: 82%;
  padding: clamp(4px, .75vw, 12px);
  border: 1px solid #50504a;
  border-radius: clamp(6px, 1.3vw, 16px);
  background: #232321;
  box-shadow: 0 20px 38px #0003;
}
.hds-view--perspective .hds-view__stage {
  background: linear-gradient(140deg, #29302d, #68716b 61%, #afb2a5);
  perspective: 680px;
}
.hds-view--perspective .hds-view__frame { transform: rotateY(-17deg) rotateX(12deg) rotateZ(-5deg); }
.hds-view--phone .hds-view__stage { background: #d9d9cf; }
.hds-view--phone .hds-view__frame {
  width: clamp(78px, 33%, 190px);
  padding: clamp(3px, .45vw, 7px);
  border-radius: clamp(10px, 2vw, 22px);
  background: #222;
  box-shadow: 12px 20px 30px #0004;
  overflow: hidden;
}
.hds-view--phone img { max-height: clamp(110px, 27vw, 340px); object-fit: contain; background: #fff; border-radius: inherit; }
.hds-view--detail .hds-view__stage { aspect-ratio: auto; min-height: 0; background: #efeee8; }
.hds-view--detail .hds-view__frame { width: 100%; }
.hds-view--mockup .hds-view__stage { background: var(--hds-view-accent); }
.hds-view__material { display: grid; place-items: center; z-index: 1; position: relative; }
.hds-view--facade .hds-view__stage {
  aspect-ratio: 2.1;
  background: linear-gradient(155deg, #fff5, #25251b50 65%), repeating-linear-gradient(0deg, transparent 0 25px, #493d282b 26px 28px), var(--hds-view-accent);
}
.hds-view--facade .hds-view__stage::after {
  content: "";
  position: absolute;
  inset: 65% 8% -5%;
  background: repeating-linear-gradient(90deg, #272b26 0 4%, #727c73 4% 21%);
  border: 8px solid #2b2921;
  box-shadow: 0 -8px 15px #0003;
}
.hds-view--facade .hds-view__material {
  width: 40%; padding: 2%; align-self: start; margin-top: 5%;
  background: #f6f3eb;
  border: 1px solid #fff;
  box-shadow: 5px 9px 16px #0005;
}
.hds-view--facade img { max-height: clamp(60px, 18vw, 200px); object-fit: contain; }
.hds-view--poster .hds-view__stage {
  background: linear-gradient(130deg,#fff4,#25261d58), var(--hds-view-accent);
}
.hds-view--poster .hds-view__material {
  width: 53%; aspect-ratio: 3 / 4; padding: 5%;
  background: #f5f1e6;
  box-shadow: 9px 14px 24px #0004;
  transform: rotate(-6deg);
}
.hds-view--shelter .hds-view__stage {
  background: linear-gradient(0deg,#575850 0 18%,#aab1a7 18% 21%,#d6d9ce 21% 47%,#a6b6b9 47% 100%);
}
.hds-view--shelter .hds-view__stage::before {
  content: "";
  position: absolute;
  inset: 17% 12% 17%;
  border: clamp(4px, 1vw, 13px) solid #3b423d;
  border-bottom: 0;
  background: linear-gradient(145deg,#fff5,#ffffff0a 56%,#fff5);
  box-shadow: 0 -5px 0 #30342f;
}
.hds-view--shelter .hds-view__material {
  width: 38%; aspect-ratio: 3 / 4; padding: 3%;
  margin-inline-start: 28%;
  background: #f5f2e9;
  border: clamp(4px, .7vw, 9px) solid #252b26;
  box-shadow: 10px 12px 16px #0003;
}
.hds-view--cards .hds-view__stage {
  background: linear-gradient(150deg,#fff5,#25261c58), var(--hds-view-accent);
}
.hds-view--cards .hds-view__stage::before {
  content: "";
  position: absolute;
  width: 57%;
  aspect-ratio: 1.7;
  background: #282925;
  box-shadow: 8px 15px 24px #0005;
  transform: translate(-16%, -25%) rotate(-11deg);
}
.hds-view--cards .hds-view__material {
  width: 55%; aspect-ratio: 1.7; padding: 3%;
  background: #fffaf0;
  box-shadow: 8px 15px 22px #0005;
  transform: translate(13%, 15%) rotate(10deg);
}
.hds-view--cards img { width: 84%; max-height: clamp(36px, 12vw, 110px); object-fit: contain; }
.hds-views-grid--brand > .hds-view--poster:first-child { grid-column: 1 / -1; }
.hds-views-grid--brand > .hds-view--poster:first-child .hds-view__stage { aspect-ratio: 1.85; }
.hds-views-grid--brand > .hds-view--poster:first-child .hds-view__material { width: 30%; padding: 3%; }
@media (max-width: 650px) {
  .hds-views-grid { grid-template-columns: minmax(0, 1fr); }
  .hds-view--desktop .hds-view__stage { aspect-ratio: 1.45; }
  .hds-view--phone .hds-view__frame { width: 35%; }
  .hds-view--phone img { max-height: 235px; }
  .hds-view--facade .hds-view__material { margin-top: 4%; }
}

#brxe-hdsviw {
  width: 100%;
  position: relative;
  z-index: 1;
  background: #faf9f5;
  scroll-margin-top: clamp(66px, 7vw, 90px);
}
.hds-views-grid--gallery > .hds-view:only-child { grid-column: 1 / -1; }
.hds-view--poster .hds-view__material img { width: 100%; }

/* Larger smartphone presentation */
.hds-view--phone .hds-view__stage {
  aspect-ratio: auto;
  min-height: 100%;
  padding: clamp(16px, 3vw, 42px);
  background: radial-gradient(ellipse at 50% 28%, #f1f0e9, #d6d7ce 75%);
}
.hds-view--phone .hds-view__frame {
  width: min(76%, 310px);
  padding: clamp(4px, .55vw, 8px);
  border-radius: clamp(14px, 2.2vw, 30px);
}
.hds-view--phone img { max-height: none; }
.hds-view--phone .hds-view__stage { min-height: 0; }
@media (max-width: 650px) {
  .hds-view--phone .hds-view__frame { width: min(88%, 310px); }
}

/* Photographic opener for the project image sequence */
.hds-view--scene .hds-view__stage {
  aspect-ratio: 3 / 2;
  background: #e4e0d8;
}
.hds-view--scene .hds-view__frame { width: 100%; }
.hds-views-section--scene + .hds-views-section .hds-view--phone { grid-column: 1 / -1; }
.hds-views-section--scene + .hds-views-section .hds-view--phone .hds-view__frame {
  width: min(90%, 390px);
}

/* Device photographs in the website case study */
.hds-views-grid--device-scenes {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  margin-block-end: clamp(32px, 6vw, 86px);
}
.hds-view--device-scene .hds-view__stage { aspect-ratio: auto; }
.hds-view--device-scene .hds-view__frame { width: 100%; }
@media (max-width: 650px) {
  .hds-views-grid--device-scenes { grid-template-columns: minmax(0, 1fr); }
}

html.hds-lightbox-open { overflow: hidden; }
.hds-project-views a[data-hds-lightbox] { cursor: zoom-in; }
.hds-lightbox {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  overflow: hidden;
}
.hds-lightbox[open] { display: grid; place-items: center; }
.hds-lightbox::backdrop { background: rgba(12, 12, 12, .94); }
.hds-lightbox figure { display: grid; justify-items: center; gap: 12px; margin: 0; max-width: 90vw; }
.hds-lightbox img {
  display: block;
  max-width: min(84vw, 1600px);
  max-height: 76vh;
  max-height: 76dvh;
  object-fit: contain;
  touch-action: pan-y pinch-zoom;
}
.hds-lightbox figcaption { text-align: center; font: 400 15px/1.4 system-ui, sans-serif; }
.hds-lightbox button {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #fff5;
  border-radius: 50%;
  background: #171717;
  color: white;
  font: 400 30px/1 system-ui, sans-serif;
  cursor: pointer;
}
.hds-lightbox button[hidden] { display: none; }
.hds-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hds-lightbox__close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.hds-lightbox__prev { left: 12px; top: calc(50% - 22px); }
.hds-lightbox__next { right: 12px; top: calc(50% - 22px); }
@media (max-width: 650px) {
  .hds-lightbox img { max-width: 94vw; max-height: 70vh; max-height: 70dvh; }
  .hds-lightbox__prev, .hds-lightbox__next { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); }
}
