.ik-gallery-link { display: block; min-width: 0; cursor: zoom-in; border-radius: 16px; }
.ik-site.ik-chef-profile .gallery:has(.ik-profile-media-grid) { display: block; }
.ik-site.ik-chef-profile .gallery[hidden] { display: none; }
.ik-profile-media-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 8px;
}
.ik-profile-media-grid > div {
    grid-column: span 2;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 16/9;
    border-radius: 16px;
    background: #f4f3f9;
}
.ik-profile-media-grid > .ik-media-portrait {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}
.ik-profile-media-grid > .ik-media-portrait img { object-position: center 20%; }
.ik-live-gallery .ik-media-portrait img[src$="/ikook-reference/chef-esther.jpg"] {
    object-position: center top;
}
.ik-profile-media-grid.ik-media-single > div { grid-column: 1/-1; aspect-ratio: 16/9; }
.ik-profile-media-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ik-media-video a, .ik-media-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.ik-media-video a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    color: #fff;
    background: #19183e;
    text-align: center;
    text-decoration: none;
    font-size: .875rem;
}
.ik-media-video a:hover, .ik-media-video a:focus-visible { color: #fff; background: #282652; }
.ik-media-video a span { display: grid; place-content: center; width: 36px; height: 36px; border-radius: 50%; background: #ffbf1a; color: #19183e; }
.ik-media-video a:focus-visible { outline: 3px solid #ffbf1a; outline-offset: -4px; }
.ik-profile-media-grid:has(> :nth-child(2):last-child) > .ik-media-portrait { grid-row: span 1; aspect-ratio: 16/9; }
.cj-gallery .ik-profile-media-grid > .ik-media-portrait { grid-column: 1/-1; grid-row: span 1; aspect-ratio: 4/3; }
.cj-gallery .ik-profile-media-grid > .ik-media-video { grid-column: 1/-1; }
@media (max-width: 640px) {
    .ik-profile-media-grid > .ik-media-portrait,
    .ik-profile-media-grid:has(> :nth-child(2):last-child) > .ik-media-portrait { grid-column: 1/-1; grid-row: span 1; aspect-ratio: 4/3; }
    .ik-profile-media-grid > .ik-media-video { grid-column: 1/-1; }
}
.ik-chef-profile .ik-gallery-link { width: 100%; height: 100%; }
.ik-gallery-link:focus-visible, .ik-chef-lightbox button:focus-visible { outline: 3px solid #ffb700; outline-offset: 2px; }
body:has(.ik-chef-lightbox[open]) { overflow: hidden; }
.ik-chef-lightbox:not([open]) { display: none; }
.ik-chef-lightbox[open] {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template: 44px minmax(0,1fr) auto / 44px minmax(0,1fr) 44px;
    place-items: center;
    gap: 8px;
    width: min(1100px, calc(100% - 16px));
    height: calc(100dvh - 16px);
    max-height: none;
    max-width: none;
    margin: auto;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #fff;
}
.ik-chef-lightbox::backdrop { background: rgb(17 17 34 / 92%); }
.ik-chef-lightbox img {
    grid-area: 2 / 2;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}
.ik-chef-lightbox button {
    display: grid;
    place-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 50%;
    color: #fff;
    background: #202044;
    font: 28px/1 Arial, sans-serif;
    cursor: pointer;
}
.ik-chef-lightbox button:hover { background: #343460; }
.ik-chef-lightbox button[hidden] { display: none; }
.ik-chef-lightbox .ik-gallery-close { grid-area: 1 / 3; }
.ik-chef-lightbox .ik-gallery-prev { grid-area: 2 / 1; }
.ik-chef-lightbox .ik-gallery-next { grid-area: 2 / 3; }
.ik-chef-lightbox .ik-gallery-position { grid-area: 3 / 1 / 4 / -1; margin: 0; font: 500 14px/1.5 system-ui, sans-serif; }
@media (max-width: 600px) {
    .ik-chef-lightbox[open] { grid-template-rows: 44px minmax(0,1fr) 44px; }
    .ik-chef-lightbox img { grid-area: 2 / 1 / 3 / -1; }
    .ik-chef-lightbox .ik-gallery-prev { grid-area: 3 / 1; z-index: 1; }
    .ik-chef-lightbox .ik-gallery-next { grid-area: 3 / 3; z-index: 1; }
    .ik-chef-lightbox .ik-gallery-position { grid-area: 3 / 2; }
}
