.cc-artist-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    align-items: start;
    gap: 16px;
}
.cc-artist-gallery__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #f4f3f1; }
.cc-artist-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cc-artist-gallery__item span {
    position: absolute;
    inset: auto 0 0;
    padding: 12px 16px;
    background: #171717eb;
    color: #fff;
    overflow-wrap: anywhere;
}
@media (hover: hover) {
    .cc-artist-gallery__item span { opacity: 0; }
    .cc-artist-gallery__item:hover span,
    .cc-artist-gallery__item:focus-visible span { opacity: 1; }
}
.cc-artist-gallery__dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 52px 16px 16px;
    border: 0;
    background: #171717;
    color: #fff;
}
.cc-artist-gallery__dialog[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}
.cc-artist-gallery__dialog:not([open]) { display: none; }
.cc-artist-gallery__dialog img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: scale-down; }
.cc-artist-gallery__dialog p { margin: 0; text-align: center; overflow-wrap: anywhere; max-height: 25vh; overflow: auto; }
.cc-artist-gallery__dialog .cc-gallery-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.cc-artist-gallery__dialog .cc-gallery-control {
    all: unset;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid #ffffff70;
    border-radius: 50%;
    background: #242424;
    color: #fff;
    cursor: pointer;
}
.cc-artist-gallery__dialog .cc-gallery-control:hover,
.cc-artist-gallery__dialog .cc-gallery-control:focus {
    background: #414141;
    color: #fff;
    border-color: #fff;
    box-shadow: none;
}
.cc-artist-gallery__dialog .cc-gallery-control:active {
    background: #555;
    color: #fff;
}
.cc-artist-gallery__dialog .cc-gallery-control:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
.cc-artist-gallery__dialog .cc-gallery-control svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cc-artist-gallery__dialog .cc-gallery-close {
    position: absolute;
    top: 6px;
    right: 12px;
}
