/*
 * rudolfgermann.de — poster carousel geometry
 *
 * Kadence's "fluid carousel" uses autoWidth. Without an explicit slide width,
 * a long figcaption can make a slide wider than its poster. These rules make
 * every slide follow the poster frame instead. The title may wrap, but it can
 * no longer alter the distance between neighbouring posters.
 */

:root {
  /* Fallbacks; rg-finetune.js writes the same values before Splide initializes. */
  --rg-poster-height-desktop: 236px;
  --rg-poster-height-mobile: 226px;
  --rg-poster-width-desktop: 166.550px;
  --rg-poster-width-mobile: 159.391px;
  --rg-poster-title-gap: 10px;
  --rg-poster-title-min-height: 30px;
}

.kb-gallery-id-block-23_7432ef-33 .kb-slide-item {
  box-sizing: border-box;
  width: var(--rg-poster-width-desktop) !important;
  max-width: var(--rg-poster-width-desktop) !important;
  min-width: var(--rg-poster-width-desktop) !important;
}

.kb-gallery-id-block-23_7432ef-33 .kb-slide-item .kadence-blocks-gallery-item,
.kb-gallery-id-block-23_7432ef-33 .kb-slide-item .kadence-blocks-gallery-item-inner,
.kb-gallery-id-block-23_7432ef-33 .kb-slide-item figure,
.kb-gallery-id-block-23_7432ef-33 .kb-slide-item .kb-gal-image-radius,
.kb-gallery-id-block-23_7432ef-33 .kb-slide-item .kb-gallery-image-contain {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
}

.kb-gallery-id-block-23_7432ef-33.kb-gallery-ul.kb-gallery-type-fluidcarousel
  .kt-blocks-carousel figure .kb-gal-image-radius,
.kb-gallery-id-block-23_7432ef-33.kb-gallery-ul.kb-gallery-type-fluidcarousel
  .kt-blocks-carousel figure .kb-gal-image-radius img {
  height: var(--rg-poster-height-desktop) !important;
}

.kb-gallery-id-block-23_7432ef-33.kb-gallery-ul.kb-gallery-type-fluidcarousel
  .kt-blocks-carousel figure .kb-gal-image-radius img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
}

.kb-gallery-id-block-23_7432ef-33 .kadence-blocks-gallery-item
  .kadence-blocks-gallery-item-inner .kadence-blocks-gallery-item__caption {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  min-height: var(--rg-poster-title-min-height);
  padding: var(--rg-poster-title-gap) 0 0 !important;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}


/* Keep film title and year visually separate. */
.kb-gallery-id-block-23_7432ef-33 .rg-poster-title,
.kb-gallery-id-block-23_7432ef-33 .rg-poster-year {
  display: block;
}

.kb-gallery-id-block-23_7432ef-33 .rg-poster-year {
  margin-top: 2px;
}

@media all and (max-width: 767px) {
  .kb-gallery-id-block-23_7432ef-33 .kb-slide-item {
    width: var(--rg-poster-width-mobile) !important;
    max-width: var(--rg-poster-width-mobile) !important;
    min-width: var(--rg-poster-width-mobile) !important;
  }

  .kb-gallery-id-block-23_7432ef-33.kb-gallery-ul.kb-gallery-type-fluidcarousel
    .kt-blocks-carousel figure .kb-gal-image-radius,
  .kb-gallery-id-block-23_7432ef-33.kb-gallery-ul.kb-gallery-type-fluidcarousel
    .kt-blocks-carousel figure .kb-gal-image-radius img {
    height: var(--rg-poster-height-mobile) !important;
  }
}
