/* ExerciseLightbox — fullscreen overlay for a large view of an exercise clip. */
.iw-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;                 /* above Bootstrap modals (1050-1055) */
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.iw-lightbox-box {
    position: relative;
    background: #111;
    border-radius: 10px;
    padding: 12px;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.iw-lightbox-media {
    max-width: 88vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    border-radius: 6px;
    background: #000;
}

.iw-lightbox-title {
    align-self: flex-start;
    color: #fff;
    font-weight: 600;
    margin: 2px 40px 8px 6px;      /* keep clear of the close button */
}

.iw-lightbox-close {
    position: absolute;
    top: 4px;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}
.iw-lightbox-close:hover { color: #ccc; }

body.iw-lightbox-open { overflow: hidden; }

/* "Larger view" magnifier shown on exercise cards. Absolutely positioned in
   the top-right corner of a positioned card; sits above the clip overlay
   (z-index 2) and a stretched-link's ::after (z-index 1). */
.exercise-zoom-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border-radius: 4px;
    padding: 0 5px;
    font-size: 0.72rem;
    line-height: 1.5;
    cursor: pointer;
    z-index: 5;
}
.exercise-zoom-btn:hover { background: rgba(0, 0, 0, 0.7); }
