.gallery-series-shell { background: #050403; }
.gallery-series-page {
    width: min(100% - 18px, 1120px);
    margin: 8px auto 24px;
    padding: 8px;
    border: 1px solid rgba(181, 117, 31, .55);
    background: linear-gradient(145deg, rgba(8, 8, 6, .98), rgba(18, 13, 8, .98));
    color: #f2d298;
    box-shadow: inset 0 0 35px rgba(126, 66, 10, .12);
}
.gallery-series-page *, .gallery-series-page *::before, .gallery-series-page *::after { box-sizing: border-box; }
.gallery-series-page section { padding: 0 !important; }
.gallery-series-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    border: 1px solid #9e631f;
    background-image: linear-gradient(90deg, rgba(5, 4, 3, .98) 0%, rgba(7, 5, 3, .92) 37%, rgba(8, 5, 3, .2) 68%, rgba(6, 3, 2, .08) 100%), var(--gallery-series-cover);
    background-position: center, center;
    background-size: cover;
}
.gallery-series-hero__copy {
    position: relative;
    z-index: 1;
    width: 56%;
    padding: clamp(30px, 5vw, 62px) clamp(24px, 5vw, 58px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gallery-series-hero__copy > p,
.gallery-series-section > h2 {
    margin: 0;
    color: #d8983f;
    font: 500 13px/1.2 'Cinzel', serif;
    letter-spacing: .28em;
    text-transform: uppercase;
}
.gallery-series-hero__copy h1 {
    max-width: 600px;
    margin: 9px 0 3px;
    color: #f0bd6e;
    font: 500 clamp(38px, 5.2vw, 72px)/.98 'Cinzel', serif;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .7);
}
.gallery-series-hero__copy h2 {
    margin: 3px 0 18px;
    color: #dca052;
    font: 500 15px/1.3 'Cinzel', serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.gallery-series-hero__copy > div {
    max-width: 520px;
    color: #e3c794;
    font: italic clamp(17px, 1.8vw, 23px)/1.32 'EB Garamond', serif;
}
.gallery-series-hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 25px; }
.gallery-series-hero__actions a,
.gallery-series-purchase a {
    min-height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid #d49a43;
    border-radius: 4px;
    color: #edca8c;
    background: rgba(5, 5, 3, .78);
    font: 500 12px/1.2 'Cinzel', serif;
    letter-spacing: .1em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}
.gallery-series-hero__actions a:hover,
.gallery-series-purchase a:hover { color: #1c1006; background: linear-gradient(135deg, #f0cd7c, #b9772e); }
.gallery-series-section { margin-top: 14px; }
.gallery-series-section > h2 { margin: 0 0 7px 7px; font-size: 15px; letter-spacing: .12em; }
.gallery-series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.gallery-series-card {
    position: relative;
    min-width: 0;
    aspect-ratio: 2.05 / 1;
    overflow: hidden;
    padding: 0;
    border: 1px solid #9d6220;
    border-radius: 4px;
    background: #080604;
    color: #e9bf78;
    cursor: pointer;
    text-align: left;
}
.gallery-series-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.gallery-series-card::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(4, 3, 2, .92)); pointer-events: none; }
.gallery-series-card:hover img { transform: scale(1.025); }
.gallery-series-card > span:not(.gallery-series-card__play) { position: absolute; z-index: 2; left: 15px; right: 12px; bottom: 11px; display: grid; }
.gallery-series-card small { color: #d7953c; font: 500 11px/1.15 'Cinzel', serif; letter-spacing: .12em; text-transform: uppercase; }
.gallery-series-card strong { overflow: hidden; color: #efd09b; font: 500 clamp(13px, 1.8vw, 20px)/1.05 'Cinzel', serif; letter-spacing: .04em; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.gallery-series-card em { color: #e5c48a; font: normal 14px/1 'EB Garamond', serif; }
.gallery-series-card__play { position: absolute; z-index: 3; left: 17px; bottom: 17px; width: 46px; height: 46px; display: grid; place-items: center; padding-left: 3px; border: 1px solid #f1c56f; border-radius: 50%; color: #ffe2a9; background: rgba(4, 4, 3, .68); font-size: 18px; }
.gallery-series-card--film .gallery-series-card__caption { left: 78px !important; }
.gallery-series-card:disabled { cursor: default; opacity: .72; }
.gallery-series-page .gallery-series-purchase {
    min-height: 92px;
    margin-top: 12px;
    padding: 12px 26px !important;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) minmax(180px, 290px);
    align-items: center;
    gap: 16px;
    border: 1px solid #9e631f;
    background: radial-gradient(circle at 25% 0, rgba(111, 43, 15, .42), transparent 42%), #100b07;
}
.gallery-series-purchase__mark { font-size: 48px; color: #d7a34c; text-align: center; }
.gallery-series-purchase strong { color: #efcf94; font: 500 clamp(18px, 2.2vw, 29px)/1.12 'Cinzel', serif; letter-spacing: .06em; text-transform: uppercase; }
.gallery-series-purchase a { min-height: 45px; }
.gallery-series-page .gallery-series-empty { padding: 70px 20px !important; text-align: center; }
.gallery-series-empty h2 { color: #efc77e; font: 500 24px 'Cinzel', serif; }
.gallery-series-empty p { color: #d3b987; font: 18px 'EB Garamond', serif; }
.gallery-series-modal { position: fixed; z-index: 10000; inset: 0; padding: 24px; display: grid; place-items: center; background: rgba(0, 0, 0, .92); }
.gallery-series-modal[hidden] { display: none; }
.gallery-series-modal__dialog { position: relative; width: min(100%, 1050px); max-height: 92vh; padding: 14px; border: 1px solid #a76a23; background: #080604; box-shadow: 0 0 55px rgba(0, 0, 0, .9); }
.gallery-series-modal__dialog h2 { margin: 0 46px 10px 0; color: #edc77f; font: 500 17px 'Cinzel', serif; text-transform: uppercase; }
.gallery-series-modal__close { position: absolute; z-index: 2; top: 8px; right: 8px; width: 36px; height: 36px; border: 1px solid #b97b2b; color: #f4d396; background: #1b0c05; font-size: 25px; cursor: pointer; }
.gallery-series-modal__media { display: grid; place-items: center; min-height: 220px; }
.gallery-series-modal__media img,
.gallery-series-modal__media video,
.gallery-series-modal__media iframe { display: block; width: 100%; max-height: calc(92vh - 80px); aspect-ratio: 16 / 9; object-fit: contain; border: 0; background: #000; }
body.gallery-series-modal-open { overflow: hidden; }

@media (max-width: 700px) {
    .gallery-series-page { width: calc(100% - 8px); margin-top: 4px; padding: 5px; }
    .gallery-series-hero { min-height: 320px; background-image: linear-gradient(90deg, rgba(5, 4, 3, .98) 0%, rgba(6, 4, 3, .9) 38%, rgba(6, 4, 3, .12) 76%), var(--gallery-series-cover); background-position: center, 62% center; }
    .gallery-series-hero__copy { width: 72%; padding: 20px 16px; }
    .gallery-series-hero__copy > p { font-size: 10px; }
    .gallery-series-hero__copy h1 { margin-top: 7px; font-size: clamp(28px, 8vw, 46px); }
    .gallery-series-hero__copy h2 { margin-bottom: 10px; font-size: 11px; }
    .gallery-series-hero__copy > div { font-size: 16px; }
    .gallery-series-hero__actions { gap: 6px; margin-top: 14px; }
    .gallery-series-hero__actions a { min-height: 36px; padding: 6px; font-size: 9px; }
    .gallery-series-section { margin-top: 9px; }
    .gallery-series-section > h2 { margin-left: 4px; font-size: 12px; }
    .gallery-series-grid { gap: 5px; }
    .gallery-series-card { aspect-ratio: 2.05 / 1; }
    .gallery-series-card > span:not(.gallery-series-card__play) { left: 9px; right: 6px; bottom: 7px; }
    .gallery-series-card small { font-size: 8px; }
    .gallery-series-card strong { font-size: clamp(9px, 3.1vw, 14px); }
    .gallery-series-card em { font-size: 10px; }
    .gallery-series-card__play { left: 9px; bottom: 10px; width: 35px; height: 35px; font-size: 13px; }
    .gallery-series-card--film .gallery-series-card__caption { left: 52px !important; }
    .gallery-series-page .gallery-series-purchase { min-height: 66px; grid-template-columns: 38px minmax(0, 1fr) 140px; gap: 8px; padding: 8px 10px !important; }
    .gallery-series-purchase__mark { font-size: 31px; }
    .gallery-series-purchase strong { font-size: 12px; }
    .gallery-series-purchase a { min-height: 35px; font-size: 8px; }
    .gallery-series-modal { padding: 8px; }
}

@media (max-width: 420px) {
    .gallery-series-hero { min-height: 285px; }
    .gallery-series-hero__copy { width: 78%; padding: 16px 11px; }
    .gallery-series-hero__copy h1 { font-size: 26px; }
    .gallery-series-hero__copy > div { font-size: 14px; }
    .gallery-series-page .gallery-series-purchase { grid-template-columns: 30px minmax(0, 1fr) 112px; }
    .gallery-series-purchase strong { font-size: 10px; }
}

/* Curated archive: legible captions and restrained framing. */
.court-subpage .gallery-hero {
    background-image: linear-gradient(90deg, rgba(0,0,0,.44), transparent 80%), var(--gallery-hero-image);
}
.court-subpage .gallery-hero__content { padding: 22px; position: relative; z-index: 1; text-shadow: 0 2px 8px #000, 0 0 20px #000; }
.court-subpage .gallery-hero small { display: block; color: #f7d18a; font-weight: 600; letter-spacing: .16em; line-height: 1.6; }
.court-subpage .gallery-hero h1 { white-space: normal; }
.court-subpage .gallery-series-nav a.active { outline: 1px solid #f6d397; outline-offset: 2px; }
.court-subpage .gallery-masonry__item span,
.court-subpage .gallery-masonry__item::before { opacity: 1; }
.court-subpage .gallery-masonry__item::before { background: linear-gradient(transparent 25%, rgba(0,0,0,.88)); }
.gallery-listing-title { margin: 16px 0 10px; color: #e9bf78; font: 500 20px/1.3 'Cinzel',serif; letter-spacing: .1em; }
.gallery-series-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 2px 9px; color: #d9ac69; font: 11px 'Cinzel',serif; }
.gallery-series-breadcrumb a { color: inherit; text-decoration: none; }
.gallery-series-hero { min-height: 365px; }
.gallery-series-hero__copy { padding: 32px; }
.gallery-series-hero__copy h1 { font-size: clamp(32px,4.4vw,58px); }
.gallery-series-hero__copy > div { font-size: clamp(17px,1.8vw,22px); }
.gallery-series-editorial { margin-top: 14px; border: 1px solid #80551f; }
.gallery-series-editorial details + details { border-top: 1px solid #5f421e; }
.gallery-series-editorial summary { padding: 15px; cursor: pointer; color: #edca8c; font: 14px 'Cinzel',serif; }
.gallery-series-editorial details > div { padding: 0 20px 20px; color: #ead6b3; font: 19px/1.6 'EB Garamond',serif; }
.gallery-series-editorial a { display: block; color: #efca87; margin-bottom: 8px; }
.gallery-series-purchase__mark { display: block; width: 54px; height: 54px; object-fit: contain; }
.gallery-series-modal { padding: 0; background: rgba(0,0,0,.98); }
.gallery-series-modal__dialog { width: 100%; height: 100%; max-height: 100dvh; overflow-y: auto; border: 0; padding: 14px clamp(10px,3vw,42px); display: flex; flex-direction: column; background: #030303; }
.gallery-series-modal__toolbar { display: flex; align-items: center; gap: 10px; min-height: 44px; flex-shrink: 0; }
.gallery-series-modal__dialog h2 { flex: 1; margin: 0; font-size: 16px; }
.gallery-series-modal__close, .gallery-series-modal__fullscreen { position: static; width: 38px; height: 38px; border: 1px solid #90622e; color: #edca8c; background: #0e0905; font-size: 25px; cursor: pointer; }
.gallery-series-modal__media { flex: 1; min-height: 0; margin: 10px 0; }
.gallery-series-modal__media img, .gallery-series-modal__media video, .gallery-series-modal__media iframe { width: 100%; height: min(64dvh,calc(100dvh - 210px)); max-height: none; object-fit: contain; }
.gallery-series-modal.is-photo .gallery-series-modal__media img { height: calc(100dvh - 160px); }
.gallery-series-modal__controls { display: flex; align-items: center; justify-content: center; gap: 15px; flex-wrap: wrap; color: #d9bb83; font: 14px 'EB Garamond',serif; }
.gallery-series-modal__controls button { padding: 8px 14px; border: 1px solid #8c632c; color: #edd29d; background: #100c07; cursor: pointer; }
.gallery-series-modal__controls button:disabled { opacity: .35; cursor: default; }
.gallery-series-modal__controls label { display: flex; align-items: center; gap: 5px; }
.gallery-series-modal [hidden] { display: none !important; }
[data-gallery-description] { text-align: center; color: #e1cda7; margin: 8px 0; }
.gallery-series-playlist { display: flex; gap: 9px; overflow-x: auto; padding: 10px 0; min-height: 90px; flex-shrink: 0; }
.gallery-series-playlist button { flex: 0 0 140px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 7px; padding: 4px; border: 1px solid #584120; color: #e7c38b; background: #100b06; text-align: left; cursor: pointer; }
.gallery-series-playlist button.active { border-color: #eac47f; }
.gallery-series-playlist img { width: 48px; height: 50px; object-fit: cover; }
.gallery-series-player-status { color: #e9c998; font: 15px 'EB Garamond',serif; text-align: center; margin: 4px 0; }
.gallery-series-player-status:empty { display: none; }
.gallery-series-youtube-link { align-self: center; display: block; padding: 8px 14px; border: 1px solid #8c632c; color: #edd29d; background: #100c07; text-align: center; text-decoration: none; }
@media (max-width:700px) {
    .gallery-series-hero { min-height: 280px; background-position: center, center; }
    .gallery-series-hero__copy { width: 100%; padding: 20px 16px; }
    .gallery-series-hero__copy h1 { max-width: 78%; font-size: clamp(26px,6.4vw,37px); }
    .gallery-series-hero__copy h2 { max-width: 80%; }
    .gallery-series-hero__copy > div { max-width: 66%; font-size: clamp(14px,3.4vw,18px); }
    .gallery-series-hero__actions { margin-top: 15px; }
    .gallery-series-hero__actions a { min-height: 34px; font-size: 10px; }
    .gallery-series-card__play { width: 31px; height: 31px; left: 8px; bottom: 9px; }
    .gallery-series-card--film .gallery-series-card__caption { left: 47px !important; }
    .gallery-series-card strong { font-size: clamp(10px,2.7vw,14px); }
    .gallery-series-purchase__mark { width: 32px; height: 32px; }
    .gallery-series-modal__controls { gap: 8px; font-size: 13px; }
    .gallery-series-modal__controls button { padding: 8px; }
    .court-subpage .gallery-hero { background-image: linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,.05)),var(--gallery-hero-image); }
    .court-subpage .gallery-hero__content { width: 90%; }
    .court-subpage .gallery-hero small { font-size: 10px; }
    .court-subpage .gallery-featured__image { min-height: 190px; aspect-ratio: 2/1; }
}
.court-subpage .gallery-featured__image { background-repeat: no-repeat; }

.gallery-series-meta { margin-top: 10px; color: #d7b67b; font: 10px/1.4 Cinzel,serif; letter-spacing: .04em; }
