
/* DPTherm photo gallery — intentionally isolated from the exported Next.js styles. */
.dp-gallery {
  --dp-ink: #0b0f10;
  --dp-cream: #f3f0e9;
  --dp-bronze: #b98d52;
  --dp-line: rgba(11,13,14,.13);
  background: #f3f0e9;
  color: var(--dp-ink);
  padding: clamp(72px, 8vw, 116px) 0;
  border-top: 1px solid rgba(11,13,14,.08);
  border-bottom: 1px solid rgba(11,13,14,.08);
}
.dp-gallery * { box-sizing: border-box; }
.dp-gallery__inner { width: min(1280px, calc(100% - 40px)); margin: 0 auto; }
.dp-gallery__head { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.65fr); gap: 48px; align-items: end; margin-bottom: 38px; }
.dp-gallery__eyebrow { margin: 0 0 13px; font-size: 12px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; color: var(--dp-bronze); }
.dp-gallery__title { margin: 0; max-width: 760px; font-family: 'Iowan Old Style', Baskerville, 'Times New Roman', Georgia, serif; font-size: clamp(40px, 5vw, 68px); line-height: .97; letter-spacing: -.05em; font-weight: 500; }
.dp-gallery__lead { margin: 0; max-width: 480px; font-size: 16px; line-height: 1.75; color: rgba(11,13,14,.62); }
.dp-gallery__grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); grid-auto-flow: dense; gap: 14px; }
.dp-gallery__item { position: relative; grid-column: span 4; min-height: 330px; margin: 0; overflow: hidden; background: #dcd6cc; cursor: zoom-in; isolation: isolate; }
.dp-gallery__item:nth-child(1), .dp-gallery__item:nth-child(6) { grid-column: span 7; min-height: 440px; }
.dp-gallery__item:nth-child(2), .dp-gallery__item:nth-child(7) { grid-column: span 5; min-height: 440px; }
.dp-gallery__item:nth-child(3), .dp-gallery__item:nth-child(4), .dp-gallery__item:nth-child(5), .dp-gallery__item:nth-child(8), .dp-gallery__item:nth-child(9), .dp-gallery__item:nth-child(10) { grid-column: span 4; min-height: 330px; }
.dp-gallery__button { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; text-align: left; color: inherit; }
.dp-gallery__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.75,.2,1), filter .35s ease; }
.dp-gallery__item:nth-child(1) .dp-gallery__img { object-position: 50% 54%; }
.dp-gallery__item:nth-child(2) .dp-gallery__img { object-position: 50% 52%; }
.dp-gallery__item:nth-child(3) .dp-gallery__img { object-position: 48% 48%; }
.dp-gallery__item:nth-child(4) .dp-gallery__img { object-position: 50% 48%; }
.dp-gallery__item:nth-child(5) .dp-gallery__img { object-position: 50% 48%; }
.dp-gallery__item:nth-child(6) .dp-gallery__img { object-position: 50% 50%; }
.dp-gallery__item:nth-child(7) .dp-gallery__img { object-position: 50% 43%; }
.dp-gallery__item::after { content: ''; position: absolute; inset: 38% 0 0; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(4,6,7,.72)); opacity: .82; transition: opacity .3s ease; }
.dp-gallery__caption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; pointer-events: none; color: white; text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.dp-gallery__tag { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #d5ad76; }
.dp-gallery__name { display: block; font-size: 16px; line-height: 1.3; font-weight: 650; }
.dp-gallery__button:focus-visible { outline: none; }
.dp-gallery__item:focus-within { outline: 3px solid var(--dp-bronze); outline-offset: 3px; }
@media (hover:hover) {
  .dp-gallery__item:hover .dp-gallery__img { transform: scale(1.035); filter: saturate(1.04) contrast(1.02); }
  .dp-gallery__item:hover::after { opacity: 1; }
}
.dp-gallery-dialog { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5,7,8,.96); color: #fff; overflow: hidden; }
.dp-gallery-dialog::backdrop { background: rgba(5,7,8,.96); }
.dp-gallery-dialog__stage { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 66px 78px 82px; }
.dp-gallery-dialog__img { display: block; max-width: min(1320px, 88vw); max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; box-shadow: 0 24px 80px rgba(0,0,0,.38); }
.dp-gallery-dialog__close, .dp-gallery-dialog__nav { position: absolute; z-index: 3; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); background: rgba(0,0,0,.28); color: #fff; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.dp-gallery-dialog__close:hover, .dp-gallery-dialog__nav:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.48); }
.dp-gallery-dialog__close { top: 22px; right: 22px; width: 46px; height: 46px; border-radius: 999px; font-size: 28px; line-height: 1; }
.dp-gallery-dialog__nav { top: 50%; width: 48px; height: 62px; transform: translateY(-50%); font-size: 28px; }
.dp-gallery-dialog__prev { left: 18px; }
.dp-gallery-dialog__next { right: 18px; }
.dp-gallery-dialog__meta { position: absolute; left: 50%; bottom: 24px; width: min(820px, calc(100% - 120px)); transform: translateX(-50%); text-align: center; }
.dp-gallery-dialog__title { display: block; font-size: 15px; font-weight: 650; }
.dp-gallery-dialog__count { display: block; margin-top: 5px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
@media (max-width: 900px) {
  .dp-gallery__inner { width: min(100% - 28px, 760px); }
  .dp-gallery__head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .dp-gallery__lead { max-width: 640px; }
  .dp-gallery__grid { gap: 10px; }
  .dp-gallery__item, .dp-gallery__item:nth-child(n) { grid-column: span 6; min-height: 290px; }
  .dp-gallery__item:nth-child(1), .dp-gallery__item:nth-child(6) { grid-column: span 12; min-height: 390px; }
  .dp-gallery-dialog__stage { padding: 62px 14px 88px; }
  .dp-gallery-dialog__img { max-width: 96vw; max-height: calc(100vh - 170px); }
  .dp-gallery-dialog__nav { top: auto; bottom: 16px; transform: none; width: 46px; height: 46px; border-radius: 999px; }
  .dp-gallery-dialog__prev { left: 16px; }
  .dp-gallery-dialog__next { right: 16px; }
  .dp-gallery-dialog__meta { bottom: 21px; width: calc(100% - 140px); }
}
@media (max-width: 560px) {
  .dp-gallery { padding: 64px 0; }
  .dp-gallery__inner { width: calc(100% - 24px); }
  .dp-gallery__title { font-size: clamp(38px, 12vw, 54px); }
  .dp-gallery__lead { font-size: 15px; }
  .dp-gallery__grid { grid-template-columns: 1fr; gap: 9px; }
  .dp-gallery__item, .dp-gallery__item:nth-child(n) { grid-column: 1; min-height: 0; aspect-ratio: 4/5; }
  .dp-gallery__item:nth-child(1), .dp-gallery__item:nth-child(2), .dp-gallery__item:nth-child(6), .dp-gallery__item:nth-child(9) { aspect-ratio: 4/3; }
  .dp-gallery__caption { left: 16px; right: 16px; bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .dp-gallery__img, .dp-gallery-dialog__close, .dp-gallery-dialog__nav { transition: none !important; }
}
/* Additional client-supplied project photos. */
.dp-gallery__item:nth-child(11) .dp-gallery__img { object-position: 50% 48%; }
.dp-gallery__item:nth-child(12) .dp-gallery__img { object-position: 50% 52%; }
.dp-gallery__item:nth-child(13) .dp-gallery__img { object-position: 50% 50%; }
