/* Shared photograph viewer: Georgiana's approved controls, colours and spacing. */
body.full-gallery-open{overflow:hidden}
.full-photo-dialog.full-photo-carousel{padding:0;border:0;width:min(1080px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 36px);overflow:auto;border-radius:22px;background:#fbfcfe;color:var(--navy,var(--tp-ink,#172d4c));box-shadow:0 25px 100px #071a4c44;font-family:var(--body,Manrope,Arial,sans-serif)}
.full-photo-carousel::backdrop{background:#07172be8;backdrop-filter:blur(8px)}
.full-photo-top{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 18px 12px 25px;border-bottom:1px solid #dfe5ee;font-size:11px;font-weight:700}
.full-photo-carousel figure{margin:0;padding:20px 30px 0;display:flex;align-items:center;flex-direction:column;min-width:0}
.full-photo-carousel figure>img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 240px);object-fit:contain;margin:0;border-radius:6px}
.full-photo-carousel figcaption{font-size:12px;color:#65758e;line-height:1.6;text-align:center;margin-top:15px;max-width:700px;overflow-wrap:anywhere}
.full-photo-bottom{display:flex;gap:25px;align-items:center;justify-content:center;padding:15px 20px 20px}
.full-photo-bottom>span{font-size:11px;color:#65758e;min-width:48px;text-align:center;font-variant-numeric:tabular-nums}
.full-photo-carousel button.fith-icon-control{width:44px;height:44px;min-height:44px;display:grid;place-items:center;flex-shrink:0;margin:0;padding:0;border:1px solid #dfe5ef;border-radius:50%;background:#fff;color:var(--navy,var(--tp-ink,#172d4c));cursor:pointer;box-shadow:none}
.full-photo-carousel button.fith-icon-control:hover{background:#edf3ff;color:var(--blue,var(--tp-blue,#123bc6))}
.full-photo-carousel button.fith-icon-control:focus-visible{outline:3px solid var(--red,#e53245);outline-offset:4px}
.full-photo-carousel button[hidden]{display:none!important}
.full-photo-carousel .fith-chevron{display:block;width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.9}
@media(max-width:760px){.full-photo-dialog.full-photo-carousel{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:17px}.full-photo-top{padding:10px 13px 10px 18px;font-size:10px}.full-photo-carousel figure{padding:15px 12px 0}.full-photo-carousel figure>img{max-height:calc(100dvh - 250px);border-radius:4px}.full-photo-carousel figcaption{font-size:11px;margin-top:12px;line-height:1.7;padding-inline:5px}.full-photo-bottom{padding:13px 15px 18px;gap:22px}.full-photo-bottom>span{font-size:10px}}
@media(max-height:420px){.full-photo-carousel figure>img{max-height:45dvh}}

/* Keep the shared and Georgiana viewers readable when controls wrap. */
:is(.full-photo-carousel, .tp-lightbox) :is(.full-photo-top, .tp-lightbox-top) {
  font-size: .9375rem;
  line-height: 1.4;
  gap: 12px;
}

:is(.full-photo-carousel, .tp-lightbox) :is(.full-photo-top, .tp-lightbox-top) button {
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

:is(.full-photo-carousel, .tp-lightbox) figcaption {
  color: #465670;
  font-size: .9375rem;
  overflow-wrap: anywhere;
}

:is(.full-photo-carousel, .tp-lightbox) :is(.full-photo-bottom, .tp-lightbox-bottom) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding-inline: 12px;
}

:is(.full-photo-carousel, .tp-lightbox) :is(.full-photo-bottom, .tp-lightbox-bottom) > span {
  grid-column: 2;
  min-width: 0;
  max-width: 12ch;
  color: #465670;
  font-size: .875rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

:is(.full-photo-carousel, .tp-lightbox) button.fith-gallery-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #71809b;
  border-radius: 999px;
  background: #fff;
  color: var(--navy, var(--tp-ink, #172d4c));
  font: inherit;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

:is(.full-photo-carousel, .tp-lightbox) .fith-gallery-step-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

:is(.full-photo-carousel, .tp-lightbox) :is([data-full-prev], [data-tp-prev]) {
  grid-column: 1;
  justify-self: end;
}

:is(.full-photo-carousel, .tp-lightbox) :is([data-full-next], [data-tp-next]) {
  grid-column: 3;
  justify-self: start;
  flex-direction: row-reverse;
}

:is(.full-photo-carousel, .tp-lightbox) button:focus-visible {
  outline: 3px solid var(--blue, var(--tp-blue, #123bc6));
  outline-offset: 3px;
}

.tp-lightbox button[hidden] {
  display: none;
}

@media (max-width: 560px) {
  :is(.full-photo-carousel, .tp-lightbox) :is(.full-photo-bottom, .tp-lightbox-bottom) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is(.full-photo-carousel, .tp-lightbox) :is(.full-photo-bottom, .tp-lightbox-bottom) > span {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: none;
  }

  :is(.full-photo-carousel, .tp-lightbox) :is([data-full-prev], [data-tp-prev]) {
    grid-row: 2;
  }

  :is(.full-photo-carousel, .tp-lightbox) :is([data-full-next], [data-tp-next]) {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-height: 420px) {
  .tp-lightbox figure > img,
  .tp-lightbox.tp-document figure > img {
    max-height: 45dvh;
  }
}
