/* One gallery viewer treatment for the photography service pages. */
.a360-gallery-viewer {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(10px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  overflow: hidden;
  border: 0;
  color: #fff;
  background: #061827;
}

.a360-gallery-viewer::backdrop { background: #071b2c; }
.a360-gallery-viewer[open] { display: flex; flex-direction: column; }

.a360-gallery-viewer .a360-gallery-viewer-head,
.a360-gallery-viewer .a360-gallery-viewer-foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.a360-gallery-viewer .a360-gallery-viewer-head {
  min-height: 48px;
  border-bottom: 1px solid #ffffff2d;
}

.a360-gallery-viewer .a360-gallery-viewer-head > span {
  color: #e5c68d;
  font: 800 11px/1.3 var(--a360-sans, sans-serif);
  letter-spacing: .14em;
}

.a360-gallery-viewer .a360-gallery-viewer-head > button,
.a360-gallery-viewer .a360-gallery-viewer-stage > button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  color: #fff;
  background: #0618279e;
  font: 300 27px/1 var(--a360-sans, sans-serif);
  cursor: pointer;
}

.a360-gallery-viewer .a360-gallery-viewer-head > button:hover,
.a360-gallery-viewer .a360-gallery-viewer-stage > button:hover {
  border-color: #fff;
  background: #ffffff1c;
}

.a360-gallery-viewer button:focus-visible {
  outline: 2px solid #e5c68d;
  outline-offset: 3px;
}

.a360-gallery-viewer .a360-gallery-viewer-stage {
  position: relative;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  gap: 0;
  padding: 0;
}

.a360-gallery-viewer .a360-gallery-viewer-stage > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  user-select: none;
}

.a360-gallery-viewer .a360-gallery-viewer-stage > button {
  position: absolute;
  z-index: 2;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.a360-gallery-viewer .a360-gallery-viewer-stage > button:first-child { left: 8px; }
.a360-gallery-viewer .a360-gallery-viewer-stage > button:last-child { right: 8px; }

.a360-gallery-viewer .a360-gallery-viewer-foot {
  min-height: 44px;
  padding: 0;
  border-top: 1px solid #ffffff2d;
  color: #ffffffa8;
  font: 800 10px/1.4 var(--a360-sans, sans-serif);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.a360-gallery-viewer .a360-gallery-viewer-foot > p {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: #fff;
  font: 400 clamp(17px, 1.5vw, 23px)/1.2 var(--a360-serif, Georgia, serif);
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.a360-gallery-viewer .a360-gallery-viewer-foot > :is(span, a) {
  flex: 0 0 auto;
  max-width: 45%;
  overflow: hidden;
  color: #ffffffa8;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a360-gallery-viewer .a360-gallery-viewer-foot > a:hover { color: #e5c68d; }

@media (max-width: 640px) {
  .a360-gallery-viewer .a360-gallery-viewer-stage > button { width: 40px; height: 40px; font-size: 24px; }
  .a360-gallery-viewer .a360-gallery-viewer-stage > button:first-child { left: 0; }
  .a360-gallery-viewer .a360-gallery-viewer-stage > button:last-child { right: 0; }
  .a360-gallery-viewer .a360-gallery-viewer-foot > :is(span, a) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .a360-gallery-viewer button,
  .a360-gallery-viewer img { transition: none !important; }
}
