/* mod_serenade_team_photo */

.mod-serenade-team-photo {
    width: 100%;
    max-width: var(--layout-inner);
    margin: 0 auto;
    padding: 0;
}

.mod-serenade-team-photo__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1129 / 508;
    border-radius: var(--rad-card);
    overflow: hidden;
    background: var(--c-bg-mid);
}

.mod-serenade-team-photo__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Figma node 27:78 — solid 29 × 29 wasser circle with a centred white
 * "+" in IBM Plex Serif at 32 px. No gradient ring on the photo
 * markers (those only appear on the team-grid markers next to the
 * names). */
.mod-serenade-team-photo__hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 29px;
    height: 29px;
    border: none;
    border-radius: 50%;
    background: var(--c-wasser);
    color: var(--c-white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Tight box so the + glyph centres in the 29 px circle instead of
     * inheriting the page's 1.7 body line-height. */
    font-family: var(--ff-text);
    font-weight: var(--fw-regular);
    font-size: 32px;
    line-height: 1;
}

.mod-serenade-team-photo__hotspot > [aria-hidden="true"] {
    display: block;
    line-height: 1;
    /* The + glyph in IBM Plex Serif sits slightly above the em-box
     * centre; nudge it down a hair for true optical centering. */
    margin-top: -6px;
}

.mod-serenade-team-photo__hotspot--wasser { background: var(--c-wasser); }
.mod-serenade-team-photo__hotspot--wiese  { background: var(--c-wiese);  }
.mod-serenade-team-photo__hotspot--schilf { background: var(--c-schilf); }
.mod-serenade-team-photo__hotspot--petrol { background: var(--c-petrol); }

.mod-serenade-team-photo__hotspot:focus-visible {
    outline: var(--bw-marker) solid var(--c-white);
    outline-offset: var(--s-1);
}

.mod-serenade-team-photo__tip {
    position: absolute;
    transform: translate(-50%, -100%);
    margin-top: -8px;
    padding: 4px var(--s-2);
    background: var(--c-wasser);
    color: var(--c-white);
    border-radius: var(--rad-card);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--tr-base);
}

.mod-serenade-team-photo__hotspot:hover + .mod-serenade-team-photo__tip,
.mod-serenade-team-photo__hotspot:focus + .mod-serenade-team-photo__tip,
.mod-serenade-team-photo__hotspot:focus-visible + .mod-serenade-team-photo__tip {
    opacity: 1;
}

.mod-serenade-team-photo__caption {
    margin: var(--s-2) 0 0 0;
    color: var(--c-petrol);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .mod-serenade-team-photo__hotspot {
        width: 22px;
        height: 22px;
        font-size: 18px;
    }
}

/* Responsive (no Figma mobile frame): the frame deliberately keeps its
   1129/508 ratio at every width — the markers are positioned as percentages
   over the cover-cropped image, so changing the ratio would re-crop the
   photo and misalign them. Only guard the name pill so a long name wraps
   within a sane cap instead of forcing horizontal scroll near the photo
   edge on small screens. */
@media (max-width: 640px) {
    .mod-serenade-team-photo__tip {
        max-width: var(--layout-third);
        white-space: normal;
        text-align: center;
    }
}
