/* Reserve portrait geometry even when a file is absent or still loading. */
.aktorzy_wpis { min-width: 0; }
.aktorzy_wpis .aktor_element { width: 100%; min-width: 0; }
.aktor_cont { width: 100%; aspect-ratio: 330 / 497; overflow: hidden; }
.aktor_cont > img.wp-post-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.aktor_galeria_obraz > a:first-child { display: block; aspect-ratio: 330 / 498; overflow: hidden; }
.aktor_galeria_obraz > a:first-child > img { display: block; width: 100%; height: 100%; object-fit: cover; }
img.bumerang-image-missing { background: #e5dfdb; object-fit: contain; }
.aktor_fot_imie img.bumerang-image-missing,
.realizator_thumb img.bumerang-image-missing,
.prod_img img.bumerang-image-missing { display: block; width: 100%; height: auto; aspect-ratio: 330 / 497; }
.bumerang-image-frame { position: relative; }
.bumerang-image-frame::after {
    content: attr(data-image-unavailable-label);
    position: absolute;
    inset-inline: 10px;
    top: 62%;
    color: #61545d;
    text-align: center;
    font-family: FuturaPTLight, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    pointer-events: none;
}
.aktor_galeria_obraz.bumerang-media-unavailable .aktor_galeria_overlay,
.aktor_galeria_obraz.bumerang-media-unavailable .aktor_image_download { display: none; }
.aktor_galeria_obraz.bumerang-media-unavailable > a { cursor: default; }
.aktor_galeria_obraz.bumerang-media-unavailable:hover img { opacity: 0; }
.custom-logo { max-width: 100%; height: auto; }
@media (max-width: 480px) {
    .bumerang-image-frame::after { font-size: 14px; inset-inline: 6px; }
}

.slide img.bumerang-image-missing { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prod_img img.bumerang-image-missing { aspect-ratio: 4 / 3; }

.aktor_fot_imie .aktor_imie { z-index: 1; }
.galeria_przycisk.bumerang-gallery-unavailable { cursor: default; opacity: 0.65; }

/* A photo frame has its placeholder from first paint, independent of image events. */
.aktor_cont, .aktor_fot_imie, .realizator_thumb, .prod_img,
.aktor_galeria_obraz > a:first-child {
    background: #e5dfdb url('../interface/photo-unavailable.svg') center / 100% 100% no-repeat;
}
/* Gallery hover fades the photo; a loaded photo must not reveal the placeholder below it. */
.aktor_galeria_obraz > a:first-child:has(> img.bumerang-image-loaded:not(.bumerang-image-missing)) {
    background-image: none;
}
.aktor_fot_imie, .realizator_thumb { aspect-ratio: 330 / 497; }
.aktor_fot_imie > img, .realizator_thumb > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.prod_img { aspect-ratio: 4 / 3; }
.prod_img > a { display: block; }
.prod_img > img, .prod_img > a > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bumerang-images-enhanced :is(.aktor_cont > img, .aktor_fot_imie > img, .realizator_thumb > img, .prod_img > img, .prod_img > a > img, .aktor_galeria_obraz > a:first-child > img):not(.bumerang-image-loaded),
.bumerang-images-enhanced :is(.aktor_cont, .aktor_fot_imie, .realizator_thumb, .prod_img, .aktor_galeria_obraz) img.bumerang-image-missing { opacity: 0; }

/* Local Google Material menu icon; no icon-font dependency. */
.nav_menu_top .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 9px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
}
.nav_menu_top .mobile-menu-toggle img { display: block; width: 24px; height: 24px; filter: brightness(0) invert(1); }
.nav_menu_top .mobile-menu-toggle:hover { background: #74377e; }
.nav_menu_top .mobile-menu-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
