/* Photo viewer (PhotoLightbox) and press photos (ArtistPressPhotos). Plain HTML on the dark
   theme — MudDialog renders with the light palette here. */

/* Gallery slides are buttons now (keyboard + screen reader): keep the old look. */
.gallery-open { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: transparent; }
.gallery-open:focus-visible { outline: 2px solid #C1FE01; outline-offset: 2px; }

.photo-lightbox {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.88); padding: 16px;
}
.photo-lightbox:focus { outline: none; }
.photo-lightbox__frame {
    display: flex; flex-direction: column; gap: 12px;
    width: min(1100px, 100%); max-height: 100%;
}
.photo-lightbox__bar { display: flex; align-items: center; gap: 12px; color: #fff; }
.photo-lightbox__title { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-lightbox__count { color: #bdbdbd; font-variant-numeric: tabular-nums; }
.photo-lightbox__close {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid #3a3a3a; background: #232323; color: #fff; font-size: 18px; cursor: pointer;
}
.photo-lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; flex: 1; }
.photo-lightbox__stage img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 8px; }
.photo-lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid #3a3a3a; background: rgba(23, 23, 23, 0.85); color: #fff;
    font-size: 30px; line-height: 1; cursor: pointer;
}
.photo-lightbox__nav--prev { left: 8px; }
.photo-lightbox__nav--next { right: 8px; }
/* The theme pads every button; without this the round buttons render as ovals. */
.photo-lightbox__close, .photo-lightbox__nav { padding: 0; flex: none; }
.photo-lightbox__close:focus-visible, .photo-lightbox__nav:focus-visible { outline: 2px solid #C1FE01; outline-offset: 2px; }
.photo-lightbox__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 44px; }
.photo-lightbox__hint, .photo-lightbox__status { color: #bdbdbd; font-size: 14px; }

.press-photos {
    position: fixed; inset: 0; z-index: 1900;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.7); padding: 16px;
}
.press-photos__panel {
    width: min(960px, 100%); max-height: calc(100vh - 32px); overflow: auto;
    background: #171717; border: 1px solid #3a3a3a; border-radius: 12px; padding: 20px; color: #fff;
}
.press-photos__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.press-photos__head h2 { margin: 0 0 4px; font-size: 20px; }
.press-photos__head p { margin: 0; color: #bdbdbd; }
.press-photos__close {
    flex: none; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid #3a3a3a; background: #232323; color: #fff; font-size: 18px; cursor: pointer;
}
.press-photos__state { color: #d0d0d0; padding: 24px 0; }
.press-photos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.press-photos__item { margin: 0; background: #232323; border: 1px solid #3a3a3a; border-radius: 8px; overflow: hidden; }
.press-photos__thumb { display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; background: #111; cursor: zoom-in; }
.press-photos__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.press-photos__thumb:focus-visible { outline: 2px solid #C1FE01; outline-offset: -2px; }
.press-photos__item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; font-size: 13px; color: #bdbdbd; }
.press-photos__item figcaption button { min-height: 40px; }
.press-photos__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.press-photos__hint { color: #9e9e9e; font-size: 13px; }
.press-photos__status { margin: 12px 0 0; color: #C1FE01; }

@media (max-width: 600px) {
    .press-photos { padding: 0; }
    .press-photos__panel { max-height: 100vh; height: 100%; border-radius: 0; }
    .press-photos__grid { grid-template-columns: repeat(2, 1fr); }
    .photo-lightbox__nav { width: 40px; height: 40px; font-size: 24px; }
}

/* Profile picture in the profile header opens the same viewer (ProfilePhoto). */
.profile-photo-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; cursor: zoom-in; background: transparent; }
.profile-photo-open:focus-visible { outline: 2px solid #C1FE01; outline-offset: -2px; }
