/* The photograph sets the atmosphere; controls stay on a readable dark surface. */
.photo-portfolio-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; max-width: 100%; min-height: 48px; padding: 14px 20px; border: 1px solid #ff6a00; border-radius: 9px; background: #ff6a00; color: #17100b; font: 800 15px/1.35 Outfit,Arial,sans-serif; text-decoration: none; text-align: center; }
.photo-portfolio-cta:hover { background: #ff9142; border-color: #ff9142; color: #17100b; }
.photo-portfolio-cta:focus-visible { outline: 3px solid #ff994f; outline-offset: 4px; }
.photo-story-card .photo-portfolio-cta { margin-top: 12px; }
.photography-portfolio-page .photo-gallery-section {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 0;
  overflow: hidden;
  padding: 64px 24px;
  background: #0b1115;
  color: #fff;
}
.photo-gallery-background { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.photo-background-layer { position: absolute; inset: -20px; background: center / cover no-repeat; filter: blur(12px); opacity: 0; transition: opacity 650ms ease; transform: scale(1.03); }
.photo-background-layer.is-visible { opacity: 1; }
.photo-gallery-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(5,10,14,.8),rgba(5,10,14,.5) 42%,rgba(5,10,14,.88)); }
.photography-portfolio-page .photo-gallery-section .photo-section-heading { text-align: left; margin: 0 0 28px; }
.photography-portfolio-page .photo-gallery-section .photo-section-heading .kicker { color: #ff994f; }
.photography-portfolio-page .photo-gallery-section .photo-section-heading h2 { color: #fff; white-space: normal; }
.photo-gallery-viewer { margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(8,14,19,.86); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.photo-image-surface { position: relative; display: block; overflow: hidden; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.photo-gallery-stage { width: 100%; height: min(58vw, 620px); min-height: 280px; padding: 0; border: 0; background: rgba(0,0,0,.22); cursor: zoom-in; }
.photo-slide { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 550ms ease; pointer-events: none; }
.photo-slide.is-visible { opacity: 1; }
.photo-expand { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; color: #fff; background: rgba(8,14,19,.82); font-size: 18px; }
.photo-gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; }
.photo-gallery-caption { min-width: 0; }
.photo-gallery-count { display: block; margin-bottom: 7px; color: #ff994f; font-size: 12px; font-weight: 800; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.photo-gallery-caption h3 { margin: 0; font-size: clamp(22px,2.5vw,30px); line-height: 1.15; color: #fff; }
.photo-gallery-caption p { margin: 7px 0 0; font-size: 15px; line-height: 1.45; color: #d2dbe0; }
.photo-gallery-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.photo-control { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-width: 48px; min-height: 48px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; background: rgba(255,255,255,.07); color: #fff; font: 700 15px/1.2 Outfit,Arial,sans-serif; cursor: pointer; transition: background 150ms ease, border-color 150ms ease; }
.photo-control:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.photo-control-play { min-width: 100px; background: #ff6a00; border-color: #ff6a00; color: #17100b; }
.photo-control-play:hover { background: #ff9142; border-color: #ff9142; }
.photo-gallery-thumbnails { display: flex; gap: 12px; margin-top: 22px; padding: 5px 4px 14px; overflow-x: auto; scrollbar-color: #ff994f rgba(255,255,255,.12); scrollbar-width: thin; }
.photo-thumbnail { position: relative; flex: 0 0 126px; height: 100px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: #10171d; color: #fff; cursor: pointer; font: 700 13px/1.2 Outfit,Arial,sans-serif; }
.photo-thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; }
.photo-thumbnail span { position: absolute; inset: auto 0 0; padding: 22px 8px 8px; text-align: left; background: linear-gradient(transparent,rgba(0,0,0,.88)); }
.photo-thumbnail:hover { border-color: rgba(255,255,255,.7); }
.photo-thumbnail[aria-current="true"] { border-color: #ff994f; box-shadow: 0 0 0 2px #ff994f; }
.photo-control:focus-visible, .photo-thumbnail:focus-visible, .photo-gallery-stage:focus-visible { outline: 3px solid #ffb67d; outline-offset: 3px; }
.photo-gallery-stage:focus-visible { outline-offset: -4px; }
.photo-gallery-hint { margin: 12px 0 0; color: #d2dbe0; font-size: 13px; line-height: 1.6; }
.photo-gallery-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.photo-gallery-lightbox { position: fixed; inset: 0; isolation: isolate; width: 100%; height: 100%; max-width: none; max-height: none; box-sizing: border-box; margin: 0; border: 0; padding: 24px; background: rgba(5,10,14,.96); color: #fff; }
.photo-gallery-lightbox[open] { display: grid; place-items: center; }
.photo-gallery-lightbox::backdrop { background: rgba(0,0,0,.94); }
.photo-lightbox-panel { position: relative; display: flex; flex-direction: column; width: min(1500px,100%); max-height: 100%; padding-top: 54px; }
.photo-lightbox-close { position: absolute; top: 0; right: 0; z-index: 2; padding: 10px; font-size: 24px; background: #141d24; }
.photo-lightbox-image { flex-shrink: 1; height: calc(100dvh - 235px); min-height: 100px; }
.photo-gallery-lightbox .photo-gallery-toolbar { flex-shrink: 0; padding: 20px 0 0; }
body.photo-gallery-open { overflow: hidden; }
@media (max-width: 700px) {
  .photography-portfolio-page .photo-gallery-section { padding: 44px 16px; }
  .photo-gallery-toolbar { align-items: flex-start; flex-direction: column; gap: 18px; padding: 20px; }
  .photo-gallery-controls { width: 100%; }
  .photo-gallery-controls .photo-control { flex: 1; padding: 12px; }
  .photo-gallery-stage { height: 64vw; min-height: 250px; }
  .photo-gallery-caption p { font-size: 14px; }
  .photo-expand { right: 12px; bottom: 12px; }
  .photo-thumbnail { flex-basis: 100px; height: 84px; }
  .photo-gallery-lightbox { padding: 12px; }
  .photo-lightbox-image { height: calc(100dvh - 290px); }
  .photo-gallery-lightbox .photo-gallery-toolbar { gap: 14px; }
}
@media (max-height: 540px) and (min-width: 701px) {
  .photo-gallery-lightbox { padding: 10px 20px; }
  .photo-lightbox-panel { padding-top: 0; }
  .photo-lightbox-image { height: calc(100dvh - 112px); margin: 0 56px; }
  .photo-gallery-lightbox .photo-gallery-caption p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-background-layer, .photo-slide, .photo-control { transition: none; }
}
