.photo-example-gallery {
  --photo-example-ink: #172339;
  --photo-example-muted: #657087;
  color: var(--photo-example-ink);
}

.photo-example-home-section {
  width: min(1120px, calc(100% - 2rem));
  margin: clamp(4rem, 8vw, 7rem) auto;
}
.photo-example-home-section > .section-head { max-width: 760px; margin-bottom: 1.75rem; }
.photo-example-home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: #172339;
  color: #fff;
}
.photo-example-home-cta p { margin: 0; }
.photo-example-home-cta .button { flex: 0 0 auto; }

.photo-example-tabs {
  display: flex;
  justify-content: center;
  gap: .35rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1rem;
  padding: .3rem;
  overflow-x: auto;
  border: 1px solid rgba(23,35,57,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  scrollbar-width: none;
}
.photo-example-tabs::-webkit-scrollbar { display: none; }
.photo-example-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: .55rem .95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--photo-example-muted);
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
}
.photo-example-tabs button[aria-selected="true"] {
  background: #172339;
  color: #fff;
  box-shadow: 0 7px 18px rgba(23,35,57,.18);
}

.photo-example-panel {
  padding: clamp(1rem, 2.5vw, 1.65rem);
  border: 1px solid rgba(23,35,57,.1);
  border-radius: 24px;
  background: linear-gradient(145deg,#fff 0%,#f6f3ec 100%);
  box-shadow: 0 20px 48px rgba(27,35,52,.1);
}
.photo-example-panel[hidden] { display: none !important; }
.photo-example-story { max-width: 650px; margin: 0 auto 1.1rem; text-align: center; }
.photo-example-story h3 { margin: .18rem 0 .3rem; font-size: clamp(1.2rem,2vw,1.65rem); line-height: 1.18; }
.photo-example-story p { margin: 0; color: var(--photo-example-muted); font-size: .92rem; line-height: 1.5; }
.photo-example-kicker { color: #91681b; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.photo-example-comparison {
  display: grid;
  grid-template-columns: minmax(0,1fr) 54px minmax(0,1fr);
  align-items: center;
  gap: clamp(.65rem,1.8vw,1.25rem);
  width: min(100%,760px);
  margin: 0 auto;
  overflow-x: clip;
}
.photo-example-side { min-width: 0; margin: 0; }
.photo-example-side-label {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 27px;
  margin: 0 0 .45rem;
  color: #172339;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.photo-example-side-label span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #172339;
  color: #fff;
  font-size: .72rem;
}
.photo-example-after .photo-example-side-label span { background: #9a7121; }
.photo-example-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 5/7;
  overflow: hidden;
  border: 1px solid rgba(23,35,57,.12);
  border-radius: 17px;
  background: #e8edf0;
  box-shadow: 0 13px 28px rgba(29,38,55,.13);
  box-sizing: border-box;
}
.photo-example-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-example-stage-single > img { padding: 5%; }
.photo-example-after .photo-example-stage { border-color: rgba(154,113,33,.35); background: #dbdfe1; }
.photo-example-side figcaption {
  min-height: 2.5em;
  padding: .55rem .15rem 0;
  color: var(--photo-example-muted);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.3;
}
.photo-example-change { display: grid; justify-items: center; gap: .25rem; color: #91681b; }
.photo-example-change span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 9px 22px rgba(26,35,51,.13);
  font-size: 1.25rem;
}
.photo-example-change small { font-size: .64rem; font-weight: 900; text-transform: uppercase; }

.photo-example-source-grid { display: grid; gap: 5px; padding: 5px; }
.photo-example-source-grid > div { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 10px; background: #dce3e7; }
.photo-example-source-grid img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-example-source-grid small {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: .22rem .4rem;
  border-radius: 999px;
  background: rgba(23,35,57,.86);
  color: #fff;
  font-size: .58rem;
  font-weight: 850;
}
.photo-example-source-pair { grid-template-rows: repeat(2,minmax(0,1fr)); }
.photo-example-source-trio { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); }
.photo-example-source-trio > div:last-child { grid-column: 1/-1; }

.photo-example-modal .modal-dialog {
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  width: min(880px,calc(100% - 2rem));
  max-height: min(900px,calc(100vh - 2rem));
  padding: 0;
  overflow: hidden;
}
.photo-example-modal .modal-header { align-items: flex-start; margin: 0; padding: 1rem 1.25rem .8rem; border-bottom: 1px solid rgba(23,35,57,.1); }
.photo-example-modal .modal-body { min-height: 0; padding: .8rem 1.15rem 1.15rem; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }

@media (max-width: 760px) {
  .photo-example-home-section { width: min(100% - 1.25rem,1120px); }
  .photo-example-home-cta { align-items: stretch; flex-direction: column; }
  .photo-example-home-cta .button { text-align: center; }
  .photo-example-panel { padding: .85rem; border-radius: 19px; }
  .photo-example-story { margin-bottom: .75rem; }
  .photo-example-story h3 { font-size: 1.08rem; }
  .photo-example-story p { font-size: .78rem; line-height: 1.4; }
  .photo-example-comparison { grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr); gap: 5px; }
  .photo-example-side-label { gap: .3rem; min-height: 23px; margin-bottom: .35rem; font-size: .59rem; letter-spacing: .02em; }
  .photo-example-side-label span { width: 21px; height: 21px; font-size: .62rem; }
  .photo-example-stage { border-radius: 11px; box-shadow: 0 8px 18px rgba(29,38,55,.12); }
  .photo-example-side figcaption { min-height: 2.5em; padding-top: .4rem; font-size: .65rem; }
  .photo-example-change span { width: 28px; height: 28px; font-size: .85rem; }
  .photo-example-change small { display: none; }
  .photo-example-source-grid { gap: 3px; padding: 3px; }
  .photo-example-source-grid > div { border-radius: 7px; }
  .photo-example-source-grid small { left: 4px; bottom: 4px; padding: .14rem .28rem; font-size: .48rem; }

  .photo-example-modal { padding: 8px; }
  .photo-example-modal .modal-dialog { grid-template-rows: auto minmax(0,auto); width: 100%; height: auto; max-height: 88dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .photo-example-modal .modal-header { padding: .7rem .85rem .6rem; }
  .photo-example-modal .modal-header h2 { font-size: 1.05rem; }
  .photo-example-modal .modal-header .hint { margin-top: .12rem; font-size: .68rem; line-height: 1.3; }
  .photo-example-modal .modal-body { padding: .6rem .65rem .8rem; }
  .photo-example-modal .photo-example-tabs { position: sticky; top: -.6rem; z-index: 4; width: 100%; margin-bottom: .55rem; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
  .photo-example-modal .photo-example-tabs button { flex: 1 1 0; min-width: max-content; min-height: 33px; padding: .4rem .55rem; font-size: .72rem; }
  .photo-example-modal .photo-example-panel { padding: .7rem; }
  .photo-example-modal .photo-example-kicker { font-size: .57rem; }
}
