.lsmg, .lsmg * { box-sizing: border-box; }
.lsmg {
    --teal: #003e46;
    --featured-cover-ratio: 2.7;
    --gold: #eb8a00;
    max-width: 1200px;
    margin-inline: auto;
    padding: 55px 40px;
    font-family: "LS Effra", Effra, Tahoma, Arial, sans-serif;
    text-align: right;
}
.lsmg button { cursor: pointer; font-family: inherit; }
.lsmg button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lsmg [hidden] { display: none !important; }
.lsmg-album, .lsmg-video-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--teal);
    border-radius: 10px;
}
.lsmg-album { display: flex; align-items: flex-end; min-height: 430px; }
.lsmg-album::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(0,31,36,.94), rgba(0,31,36,.64) 32%, rgba(0,31,36,.04) 75%);
}
.lsmg .lsmg-cover {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.lsmg-caption { width: 100%; padding: 35px; color: #edf6f3; }
.lsmg-caption > span { color: #ffb343; font-size: 14px; }
.lsmg .lsmg-caption h2 { color: #fff; font-family: inherit; font-size: 38px; font-weight: 700; line-height: 1.5; margin: 0 0 10px; }
.lsmg .lsmg-caption p { color: inherit; margin: 0; font-size: 16px; line-height: 2.15; }
.lsmg .lsmg-open {
    display: inline-flex;
    gap: 14px;
    min-height: 46px;
    margin-top: 22px;
    padding: 11px 23px;
    border: 0;
    border-radius: 6px;
    background: var(--gold);
    color: #00343b;
    font-size: 16px;
}
.lsmg .lsmg-open:hover { background: #ffa51f; }
.lsmg-dialog:not([open]) { display: none; }
.lsmg-dialog {
    width: min(1080px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    overscroll-behavior: contain;
    margin: auto;
    padding: 20px;
    border: 1px solid #ffffff38;
    border-radius: 12px;
    background: var(--teal);
    color: #fff;
}
html:has(.lsmg-dialog[open]) { overflow: hidden; }
.lsmg-dialog::backdrop { background: rgba(0,18,22,.88); }
.lsmg-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.lsmg-dialog header h2 { color: #fff; font: 700 22px/1.6 "LS Effra", Effra, Tahoma, Arial, sans-serif; margin: 0; }
.lsmg .lsmg-close, .lsmg .lsmg-prev, .lsmg .lsmg-next {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ffffff66;
    border-radius: 50%;
    background: #002e35da;
    color: white;
    font-size: 24px;
    line-height: 1;
}
.lsmg-stage { position: relative; height: min(58dvh,600px); min-height: 180px; background: #002e35; }
.lsmg .lsmg-full { width: 100%; height: 100%; object-fit: contain; }
.lsmg .lsmg-prev, .lsmg .lsmg-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lsmg-prev { right: 12px; }
.lsmg-next { left: 12px; }
.lsmg-status { text-align: center; color: #e0f0eb; margin: 14px 0; }
.lsmg-thumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.lsmg-thumbs button { width: 100px; aspect-ratio: 4/3; padding: 3px; background: transparent; border: 2px solid transparent; border-radius: 5px; }
.lsmg-thumbs button[aria-current=true] { border-color: var(--gold); }
.lsmg-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lsmg .lsmg-video-card { display: grid; place-items: center; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; }
.lsmg-video-card span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--teal); font-size: 25px; }
.lsmg-videos video { display: block; width: 100%; max-height: 72dvh; background: #001f24; }
@media (max-width: 950px) {
    .lsmg { padding: 45px 28px; }
    .lsmg .lsmg-caption h2 { font-size: 31px; }
}
@media (max-width: 700px) {
    .lsmg { padding: 40px 22px; }
    .lsmg-album { min-height: 370px; }
    .lsmg .lsmg-caption { padding: 25px 22px; }
    .lsmg .lsmg-caption h2 { font-size: 29px; }
    .lsmg-dialog { width: calc(100% - 20px); padding: 14px; }
    .lsmg-stage { height: 48dvh; }
    .lsmg-thumbs button { width: 75px; }
    .lsmg-video-card span { width: 46px; height: 46px; font-size: 18px; }
}

.lsmg[dir=ltr] { text-align: left; }
.lsmg[dir=ltr] .lsmg-prev { right: auto; left: 12px; }
.lsmg[dir=ltr] .lsmg-next { left: auto; right: 12px; }

.lsmg-carousel-track {
    --gap: 22px;
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 4px;
}
.lsmg-carousel-track > * {
    min-width: 0;
    scroll-snap-align: start;
}
.lsmg-carousel-controls {
    display: flex;
    direction: ltr;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 4px 12px;
}
.lsmg-carousel-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--teal);
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 22px;
    line-height: 1;
}
.lsmg-carousel-controls button[aria-disabled=true] {
    opacity: .45;
    cursor: default;
}
@media (max-width: 700px) {
    .lsmg-carousel-track { --gap: 14px; }
}

/* Album covers stay in a grid, with the caption outside the image. */
.lsmg-album-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.lsmg-album-grid > .lsmg-album:last-child:nth-child(odd) { grid-column: 1 / -1; }
.lsmg .lsmg-album-grid .lsmg-album {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
}
.lsmg .lsmg-album-grid .lsmg-album::after { content: none; }
.lsmg .lsmg-album-grid .lsmg-cover {
    position: static;
    display: block;
    height: auto;
    aspect-ratio: 16 / 10;
}
.lsmg .lsmg-album-grid > .lsmg-album:last-child:nth-child(odd) .lsmg-cover {
    aspect-ratio: var(--featured-cover-ratio);
}
.lsmg .lsmg-album-grid .lsmg-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex: 1;
    padding: 14px 18px;
    background: var(--teal);
    text-align: start;
}
.lsmg-caption-text { min-width: 0; }
.lsmg .lsmg-caption-text > span { display: block; color: #ffb343; font-size: 13px; line-height: 1.35; }
.lsmg .lsmg-caption-text h2 { font-size: clamp(17px, 2vw, 25px); line-height: 1.25; margin: 2px 0; }
.lsmg .lsmg-caption-text p { font-size: 14px; line-height: 1.4; margin: 0; }
.lsmg .lsmg-caption .lsmg-open {
    flex: none;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 8px 11px;
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
}

.lsmg-carousel { display: flex; flex-direction: column; }
.lsmg-carousel .lsmg-carousel-controls {
    order: 1;
    justify-content: center;
    margin: 10px 0 0;
    gap: 10px;
}
.lsmg-carousel .lsmg-carousel-controls button {
    background: #f3f8f7;
    color: #003e46;
    border-color: #c8ddda;
}
.lsmg-carousel .lsmg-carousel-controls button:hover:not([aria-disabled=true]) {
    background: #eb8a00;
    border-color: #eb8a00;
}
.lsmg .lsmg-thumbs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    --gap: 10px;
}
.lsmg .lsmg-carousel-track.lsmg-thumbs > button { flex: 0 0 96px; }
.lsmg .lsmg-video-card.lsmg-video-featured { width: 100%; aspect-ratio: var(--featured-cover-ratio); }
.lsmg-video-archive { margin-top: 20px; }
.lsmg .lsmg-video-track > .lsmg-video-card { flex: 0 0 calc((100% - 2 * var(--gap)) / 3); }
@media (max-width: 700px) {
    .lsmg-album-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .lsmg { --featured-cover-ratio: 16 / 10; }
    .lsmg .lsmg-album-grid .lsmg-caption { padding: 12px; gap: 8px; }
    .lsmg .lsmg-caption-text p { font-size: 13px; }
    .lsmg .lsmg-carousel-track.lsmg-thumbs > button { flex-basis: 72px; }
    .lsmg .lsmg-video-track > .lsmg-video-card { flex-basis: 78%; }
}

.lsmg .lsmg-section-title {
    margin: 0 0 20px;
    color: var(--teal);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    text-align: start;
}
.lsmg[dir=ltr] .lsmg-caption-text,
.lsmg[dir=ltr] .lsmg-caption-text h2,
.lsmg[dir=ltr] .lsmg-caption-text p {
    text-align: left;
}
