#ctm-photographer-gallery.ctm-photographer-gallery {
  --ctm-photographer-gallery-thumb-size: clamp(7.75rem, 18vw, 10.9rem);
  --ctm-photographer-gallery-gap: 0.875rem;
  background: #ffffff;
}

#ctm-photographer-gallery .ctm-photographer-gallery-overview {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  align-items: start;
  column-gap: 100px;
  row-gap: 0;
  width: 100%;
}

#ctm-photographer-gallery .ctm-photographer-gallery-main {
  min-width: 0;
}

#ctm-photographer-gallery .ctm-photographer-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: var(--ctm-photographer-gallery-gap);
}

#ctm-photographer-gallery .ctm-photographer-gallery-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  background: #ffffff;
  padding: 0.5rem;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  appearance: none;
  cursor: pointer;
}

#ctm-photographer-gallery .ctm-photographer-gallery-thumb:hover,
#ctm-photographer-gallery .ctm-photographer-gallery-thumb:focus-visible {
  outline: none;
}

#ctm-photographer-gallery .ctm-editor-thumb-item {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

#ctm-photographer-gallery .ctm-editor-thumb-media {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

#ctm-photographer-gallery .ctm-editor-thumb-media--squareish {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: auto;
}

#ctm-photographer-gallery .ctm-editor-thumb {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#ctm-photographer-gallery .ctm-photographer-gallery-profile {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#ctm-photographer-gallery .ctm-photographer-gallery-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 1.5rem;
}

#ctm-photographer-gallery .ctm-photographer-gallery-logo img {
  display: block;
  width: auto;
  max-width: min(100%, 17rem);
  max-height: 6rem;
  object-fit: contain;
}

#ctm-photographer-gallery .ctm-photographer-gallery-portrait {
  width: min(100%, 12rem);
  margin-bottom: 1.5rem;
}

#ctm-photographer-gallery .ctm-photographer-gallery-portrait img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

#ctm-photographer-gallery .ctm-photographer-gallery-company {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 700;
  color: #000000;
}

#ctm-photographer-gallery .ctm-photographer-gallery-profile h2 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 700;
  color: #000000;
}

#ctm-photographer-gallery .ctm-photographer-gallery-bio {
  margin: 0 0 1.25rem 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-neutral-700, #404040);
}

#ctm-photographer-gallery .ctm-photographer-gallery-facts {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

#ctm-photographer-gallery .ctm-photographer-gallery-facts div {
  display: grid;
  gap: 0.1rem;
}

#ctm-photographer-gallery .ctm-photographer-gallery-facts dt {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--color-neutral-500, #737373);
}

#ctm-photographer-gallery .ctm-photographer-gallery-facts dd {
  margin: 0;
  color: #000000;
}

#ctm-photographer-gallery .ctm-photographer-gallery-facts a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

#ctm-photographer-gallery .ctm-photographer-gallery-mobile,
#ctm-photographer-gallery .ctm-photographer-gallery-detail {
  display: none;
}

#ctm-photographer-gallery.is-detail-open .ctm-photographer-gallery-overview,
#ctm-photographer-gallery.is-detail-open .ctm-photographer-gallery-mobile {
  display: none;
}

#ctm-photographer-gallery.is-detail-open .ctm-photographer-gallery-detail {
  display: block;
  width: 100%;
  background: #ffffff;
}

#ctm-photographer-gallery .ctm-photographer-gallery-swiper {
  width: 100%;
  background: #ffffff;
}

#ctm-photographer-gallery .ctm-photographer-gallery-swiper--detail {
  max-width: 100%;
  cursor: pointer;
}

#ctm-photographer-gallery .ctm-photographer-gallery-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

#ctm-photographer-gallery .ctm-photographer-gallery-swiper--detail .swiper-slide {
  min-height: min(72vh, 54rem);
  cursor: pointer;
}

#ctm-photographer-gallery .ctm-photographer-gallery-swiper img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, 54rem);
  object-fit: contain;
}

#ctm-photographer-gallery .ctm-photographer-gallery-swiper--detail img {
  cursor: pointer;
}

#ctm-photographer-gallery .swiper-pagination {
  position: static;
  margin-top: 1rem;
  line-height: 1;
}

#ctm-photographer-gallery .swiper-pagination-bullet {
  width: 0.42rem;
  height: 0.42rem;
}

#ctm-photographer-gallery .swiper-pagination-bullet-active {
  background: #000000;
}

#ctm-photographer-gallery .ctm-photographer-gallery-info {
  min-height: 1.35rem;
  margin: 0.85rem auto 0 auto;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--color-neutral-500, #737373);
  opacity: 1;
  transition: opacity 160ms ease;
}

#ctm-photographer-gallery .ctm-photographer-gallery-info--mobile {
  display: grid;
  gap: 0.08rem;
}

#ctm-photographer-gallery .ctm-photographer-gallery-info[hidden],
#ctm-photographer-gallery .ctm-photographer-gallery-info-line[hidden] {
  display: none !important;
}

#ctm-photographer-gallery .ctm-photographer-gallery-info-line {
  display: block;
}

/* Halbe Zeile Abstand vor dem Bildnachweis, sofern darueber sichtbare Zeilen stehen */
#ctm-photographer-gallery .ctm-photographer-gallery-info-line:not([hidden]) ~ [data-gallery-credit-line] {
  margin-top: 0.5em;
}

#ctm-photographer-gallery .ctm-photographer-gallery-info.is-fading {
  opacity: 0;
}

#ctm-photographer-gallery .ctm-photographer-gallery-back {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
}

#ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-detail {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  padding: 10vmin;
  box-sizing: border-box;
  overflow: hidden;
  background: #ffffff;
}

#ctm-photographer-gallery.is-presentation-fallback .ctm-photographer-gallery-detail {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

#ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-swiper--detail {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
}

#ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-swiper--detail .swiper-wrapper,
#ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-swiper--detail .swiper-slide {
  height: 100%;
  min-height: 0;
}

#ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-swiper--detail .swiper-slide {
  cursor: pointer;
}

#ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-swiper--detail img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
}

#ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-swiper--detail > .swiper-pagination,
#ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-info,
#ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-back {
  display: none !important;
}

.ctm-photographer-gallery-empty {
  background: #ffffff;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery.ctm-photographer-gallery {
  --ctm-photographer-gallery-thumb-size: 8rem;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery .ctm-photographer-gallery-overview,
.ctm-photographer-gallery-phone #ctm-photographer-gallery .ctm-photographer-gallery-detail {
  display: none !important;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery .ctm-photographer-gallery-mobile {
  display: block;
  width: 100%;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery .ctm-photographer-gallery-swiper--mobile {
  height: min(70vh, 75vw);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery .ctm-photographer-gallery-swiper--mobile .swiper-wrapper {
  height: 100%;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery .ctm-photographer-gallery-swiper--mobile .swiper-slide {
  height: 100%;
  min-height: 0;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery .ctm-photographer-gallery-swiper--mobile img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery [data-gallery-mobile-pagination] {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  overflow: visible;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery [data-gallery-mobile-pagination] .swiper-pagination-bullet {
  background: #000000;
  opacity: 0.22;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery [data-gallery-mobile-pagination] .swiper-pagination-bullet-active {
  background: #000000;
  opacity: 1;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery .ctm-photographer-gallery-profile--mobile {
  margin-top: 2.2rem;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery .ctm-photographer-gallery-profile--desktop {
  display: none;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery .ctm-photographer-gallery-logo,
.ctm-photographer-gallery-phone #ctm-photographer-gallery .ctm-photographer-gallery-portrait {
  justify-content: flex-start;
  margin-left: 0;
  margin-right: 0;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery .ctm-photographer-gallery-profile-text {
  max-width: 34rem;
  margin: 0;
}

/* Zentrale Contrima-Galerie (public_galerie): einspaltige Übersicht, 4-spaltiges Grid ohne Texte */
#ctm-photographer-gallery.ctm-contrima-gallery .ctm-contrima-gallery-overview {
  grid-template-columns: minmax(0, 1fr);
  column-gap: 0;
}

#ctm-photographer-gallery.ctm-contrima-gallery .ctm-photographer-gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#ctm-photographer-gallery.ctm-contrima-gallery .ctm-contrima-gallery-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 2.5rem;
}

#ctm-photographer-gallery.ctm-contrima-gallery .ctm-contrima-gallery-header h1 {
  margin: 0;
}

/* Fotografenlink wie Footer-Links: unterstrichen, dezent, Hover schwarz */
#ctm-photographer-gallery.ctm-contrima-gallery .ctm-contrima-gallery-credit-line a {
  color: rgb(163 163 163);
  text-decoration: underline;
}

#ctm-photographer-gallery.ctm-contrima-gallery .ctm-contrima-gallery-credit-line a:hover,
#ctm-photographer-gallery.ctm-contrima-gallery .ctm-contrima-gallery-credit-line a:focus-visible {
  color: #000;
}

/* Pill-Paginierung wie im Kurationsbereich (Quelle: ctm-licensed-assets.css) */
#ctm-photographer-gallery.ctm-contrima-gallery .ctm-coll-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
}

#ctm-photographer-gallery.ctm-contrima-gallery .ctm-coll-pagination a {
  cursor: pointer;
}

#ctm-photographer-gallery.ctm-contrima-gallery .ctm-coll-pagination-meta,
#ctm-photographer-gallery.ctm-contrima-gallery .ctm-coll-page-pill--current,
#ctm-photographer-gallery.ctm-contrima-gallery .ctm-coll-page-pill--disabled {
  cursor: default;
}

#ctm-photographer-gallery.ctm-contrima-gallery .ctm-coll-pagination-meta {
  margin: 0;
  color: rgb(82 82 82);
  font-size: 0.96rem;
}

#ctm-photographer-gallery.ctm-contrima-gallery .ctm-coll-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

#ctm-photographer-gallery.ctm-contrima-gallery .ctm-coll-page-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  border: 1px solid rgb(212 212 212);
  background: #fff;
  color: rgb(82 82 82);
  padding: 0.2rem 0.55rem;
  font-size: 0.92rem;
  line-height: 1.1;
  text-decoration: none;
}

#ctm-photographer-gallery.ctm-contrima-gallery .ctm-coll-page-pill:not(.ctm-coll-page-pill--current):not(.ctm-coll-page-pill--disabled):hover,
#ctm-photographer-gallery.ctm-contrima-gallery .ctm-coll-page-pill:not(.ctm-coll-page-pill--current):not(.ctm-coll-page-pill--disabled):focus-visible {
  border-color: #000;
  color: #000;
  outline: none;
}

#ctm-photographer-gallery.ctm-contrima-gallery .ctm-coll-page-pill--current {
  border-color: #000;
  background: #000;
  color: #fff;
  pointer-events: none;
}

#ctm-photographer-gallery.ctm-contrima-gallery .ctm-coll-page-pill--disabled {
  color: rgb(163 163 163);
  pointer-events: none;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery .ctm-contrima-gallery-phone-headline {
  margin-bottom: 1rem;
}

/* Breadcrumb-Leiste der Galerien: Uebersichts- und Detail-Variante togglen
   ueber is-detail-open; im Vollbild-Praesentationsmodus komplett ausgeblendet. */
#ctm-photographer-gallery .ctm-photographer-gallery-backlinks {
  margin-top: 1.5rem;
}

#ctm-photographer-gallery .ctm-photographer-gallery-backlinks--detail {
  display: none;
}

#ctm-photographer-gallery.is-detail-open .ctm-photographer-gallery-backlinks--overview {
  display: none;
}

#ctm-photographer-gallery.is-detail-open .ctm-photographer-gallery-backlinks--detail {
  display: block;
}

#ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-backlinks {
  display: none !important;
}

/* Mobiler Tap-to-Vollbild-Praesentationsmodus (Pendant zum Desktop-Detailmodus) */
.ctm-photographer-gallery-phone #ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-mobile {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  margin: 0;
  /* Prozentualer Weissrand im mobilen Praesentationsmodus */
  padding: 7vmin;
  box-sizing: border-box;
  overflow: hidden;
  background: #ffffff;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery.is-presentation-fallback .ctm-photographer-gallery-mobile {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-swiper--mobile {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  aspect-ratio: auto;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-swiper--mobile .swiper-wrapper,
.ctm-photographer-gallery-phone #ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-swiper--mobile .swiper-slide {
  height: 100%;
  min-height: 0;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-swiper--mobile img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.ctm-photographer-gallery-phone #ctm-photographer-gallery.is-presentation-open [data-gallery-mobile-pagination],
.ctm-photographer-gallery-phone #ctm-photographer-gallery.is-presentation-open .ctm-photographer-gallery-profile--mobile {
  display: none !important;
}
