/* Scoped to the video gallery so the theme menu keeps its own appearance. */
body.ap-videos-page #main .content-wrapper{padding-top:0;padding-bottom:0;width:calc(100% - 32px);max-width:1240px;margin-left:auto;margin-right:auto}
body.ap-videos-page .entry-title,body.ap-videos-page .wp-block-post-title{display:none}
.ap-videos,.ap-videos *{box-sizing:border-box}
.ap-videos{width:100%;max-width:1240px;margin:0 auto;background:#fff2c4;color:#25201e;text-align:left;font:16px/1.55 Arial,Helvetica,sans-serif;overflow:hidden}
.ap-videos .ap-videos-hero{position:relative;display:block;padding:50px 44px 44px;margin:0;background:#211b19;border:0;color:#fff8ee}
.ap-videos .ap-videos-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:14px;background:#ed0c15;border:1px solid #171312;box-shadow:inset 0 0 0 2px #fff,inset 0 0 0 3px #171312}
.ap-videos .ap-videos-kicker{margin:0 0 14px;color:#f2b6a4;font:700 11px/1.4 Arial,sans-serif;letter-spacing:3px;text-transform:uppercase}
.ap-videos .ap-videos-hero h1{margin:0 0 14px;padding:0;color:#fff8ee;font:900 clamp(48px,6vw,78px)/1.05 Impact,"Arial Narrow",Arial,sans-serif;letter-spacing:0;text-transform:uppercase}
.ap-videos .ap-videos-total{display:inline-block;padding:6px 12px;background:#b62230;border-radius:4px;color:#fff;font-size:13px;font-weight:700}
.ap-videos .ap-videos-body{padding:30px 32px 38px}
.ap-videos .ap-videos-filter{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;margin:0 0 28px}
.ap-videos .ap-videos-filter>div:first-child{flex:1 1 310px}
.ap-videos .ap-videos-filter>div{flex:0 1 220px;min-width:0}
.ap-videos .ap-videos-filter label{display:block;margin:0 0 7px;color:#57473f;font:700 12px/1.4 Arial,sans-serif}
.ap-videos .ap-videos-filter input[type="search"]{display:block;width:100%;min-width:0;height:48px;margin:0;padding:10px 12px;background:#fffdf7;border:1px solid #cdb888;border-radius:5px;color:#25201e;font:16px/1.4 Arial,sans-serif;text-transform:none;box-shadow:none}
.ap-videos .ap-videos-filter input::placeholder{color:#746659;opacity:1}
.ap-videos .ap-videos-filter button{display:flex;align-items:center;justify-content:center;gap:15px;min-height:48px;margin:0;padding:10px 20px;border:1px solid #851b24;border-radius:5px;background:#b62230;color:#fff;font:700 14px/1.4 Arial,sans-serif;text-transform:none;cursor:pointer;box-shadow:none}
.ap-videos .ap-videos-filter button:hover{background:#941a27}
.ap-videos .ap-videos-clear{padding:12px 0;color:#7a3653;font-size:14px;font-weight:700;text-decoration:underline}
.ap-videos .ap-videos-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.ap-videos .ap-video-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;margin:0;padding:0;background:#fffaf0;border:1px solid #ddcd9c;border-radius:8px;box-shadow:0 4px 14px #211b1908}
.ap-videos .ap-video-stage{position:relative;aspect-ratio:16/9;overflow:hidden;background:#211b19}
.ap-videos .ap-video-play{position:relative;display:block;width:100%;height:100%;margin:0;padding:0;overflow:hidden;border:0;border-radius:0;background:linear-gradient(135deg,#362328,#211b19);color:#fff;cursor:pointer;box-shadow:none}
.ap-videos .ap-video-play img,.ap-videos .ap-video-unavailable img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;opacity:.84;transition:opacity .15s}
.ap-videos .ap-video-play:hover img{opacity:1}
.ap-videos .ap-video-play-symbol{position:absolute;top:50%;left:50%;display:grid;place-items:center;width:62px;height:62px;padding-left:4px;background:#b62230;border:2px solid #fff;border-radius:50%;color:#fff;font:700 26px/1 Arial,sans-serif;transform:translate(-50%,-50%);box-shadow:0 4px 18px #0005}
.ap-videos .ap-video-play-label{position:absolute;right:0;bottom:0;left:0;padding:17px 8px 9px;background:linear-gradient(transparent,#000c);color:#fff;text-align:center;font:700 12px/1.3 Arial,sans-serif;letter-spacing:.3px;text-transform:none}
.ap-videos .ap-video-stage iframe,.ap-videos .ap-video-stage video{position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;background:#000}
.ap-videos .ap-video-unavailable{position:relative;height:100%;color:#fff}
.ap-videos .ap-video-unavailable span{position:absolute;inset:0;display:grid;place-items:center;padding:20px;text-align:center;background:#211b1980;font-size:14px}
.ap-videos .ap-video-details{display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:18px}
.ap-videos .ap-video-category{margin:0 0 8px;color:#7a3653;font:700 10px/1.4 Arial,sans-serif;letter-spacing:1px;text-transform:uppercase}
.ap-videos .ap-video-details h2{display:block;margin:0 0 16px;padding:0;color:#25201e;font:800 19px/1.35 Arial,sans-serif;letter-spacing:-.2px;text-transform:none;overflow-wrap:anywhere}
.ap-videos .ap-video-excerpt{margin:0 0 15px;color:#66584d;font:400 14px/1.6 Arial,sans-serif}
.ap-videos .ap-video-external{display:inline-flex;justify-content:space-between;align-items:center;gap:15px;width:100%;margin-top:auto;padding-top:12px;border-top:1px solid #e8dab6;color:#7a3653;font:700 12px/1.5 Arial,sans-serif;text-decoration:none}
.ap-videos .ap-video-external:hover{color:#941a27;text-decoration:underline}
.ap-videos .ap-videos-empty{margin:0;padding:30px;background:#fffaf0;border:1px solid #ddcd9c;border-radius:6px;color:#66584d;font-size:16px}
.ap-videos .ap-videos-pagination{display:block;margin:30px 0 0;padding:0;border:0;background:none}
.ap-videos .ap-videos-pagination ul{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.ap-videos .ap-videos-pagination li{margin:0;padding:0;list-style:none}
/* Decibel forces white page-number text with !important; keep these overrides scoped to this gallery. */
body.ap-videos-page .ap-videos .ap-videos-pagination a.page-numbers,body.ap-videos-page .ap-videos .ap-videos-pagination span.page-numbers{display:block;width:auto;height:auto;min-width:39px;white-space:nowrap;padding:8px 12px;background:#fffaf0!important;border:1px solid #7a3653!important;border-radius:4px;color:#7a3653!important;text-align:center;font:700 13px/1.5 Arial,sans-serif;text-decoration:none}
body.ap-videos-page .ap-videos .ap-videos-pagination .page-numbers.current,body.ap-videos-page .ap-videos .ap-videos-pagination a.page-numbers:hover,body.ap-videos-page .ap-videos .ap-videos-pagination a.page-numbers:focus-visible{background:#b62230!important;border-color:#b62230!important;color:#fff!important}
.ap-videos button:focus-visible,.ap-videos a:focus-visible,.ap-videos input:focus-visible,.ap-videos select:focus-visible,.ap-videos iframe:focus-visible{outline:3px solid #7a3653;outline-offset:3px}
@media(max-width:1000px){.ap-videos .ap-videos-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ap-videos .ap-videos-hero{padding:38px 30px}.ap-videos .ap-videos-body{padding:24px}}
@media(max-width:600px){.ap-videos .ap-videos-grid{grid-template-columns:minmax(0,1fr);gap:20px}.ap-videos .ap-videos-hero{padding:30px 22px 34px}.ap-videos .ap-videos-body{padding:22px 16px 28px}.ap-videos .ap-videos-filter{gap:12px}.ap-videos .ap-videos-filter>div,.ap-videos .ap-videos-filter>div:first-child{flex:1 1 100%}.ap-videos .ap-videos-filter button{width:100%}.ap-videos .ap-video-details{padding:17px}.ap-videos .ap-video-details h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.ap-videos .ap-video-play img{transition:none}}

/* Group films by their year, using the logo's divider style. */
.ap-videos .ap-video-year{margin:0 0 34px;padding:0;border:0;background:none}
.ap-videos .ap-video-year:last-child{margin-bottom:0}
.ap-videos .ap-video-year-heading{position:relative;display:block;margin:0 0 22px;padding:0 0 25px;color:#b62230;font:900 40px/1.15 Impact,"Arial Narrow",Arial,sans-serif;letter-spacing:0;text-transform:none;scroll-margin-top:120px}
.ap-videos .ap-video-year-heading::after{content:"";position:absolute;left:0;right:0;bottom:0;height:12px;background:#ed0c15;border:1px solid #171312;box-shadow:inset 0 0 0 2px #fff,inset 0 0 0 3px #171312}

/* Keep the supplied two-line logo to the right, centered on the Filmklipp heading. */
.ap-videos .ap-videos-heading-row{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 16px}
.ap-videos .ap-videos-heading-row h1{min-width:0;margin:0}
.ap-videos .ap-videos-heading-logo{display:block;flex:0 0 auto;width:180px;max-width:35%;height:auto;margin:0;object-fit:contain;border:0;border-radius:0;box-shadow:none}
@media(max-width:600px){.ap-videos .ap-videos-heading-row{gap:12px}.ap-videos .ap-videos-heading-row h1{font-size:clamp(32px,10vw,48px)}.ap-videos .ap-videos-heading-logo{width:clamp(80px,25vw,104px);max-width:36%}}

/* Visible category links below the search, starting with the oldest year. */
.ap-videos .ap-videos-filter:has(+ .ap-video-categories){margin-bottom:16px}
.ap-videos .ap-video-categories{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 30px;padding:0;border:0;background:none}
body.ap-videos-page .ap-videos .ap-video-categories a.ap-video-category-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin:0;padding:8px 12px;border:1px solid #b999a2;border-radius:5px;background:#fffaf0;color:#7a3653!important;font:700 13px/1.4 Arial,sans-serif;letter-spacing:0;text-transform:none;text-decoration:none;white-space:nowrap;box-shadow:none}
body.ap-videos-page .ap-videos .ap-video-categories a.ap-video-category-link:hover,body.ap-videos-page .ap-videos .ap-video-categories a.ap-video-category-link:focus-visible,body.ap-videos-page .ap-videos .ap-video-categories a.ap-video-category-link.is-active{border-color:#b62230;background:#b62230;color:#fff!important}
.ap-videos .ap-video-categories a.ap-video-category-link::before,.ap-videos .ap-video-categories a.ap-video-category-link::after{content:none}
@media(max-width:600px){.ap-videos .ap-video-categories{gap:7px;margin-bottom:26px}.ap-videos .ap-video-categories a.ap-video-category-link{min-height:42px;padding:8px 10px}}

/* Decorative logo on every video preview; it leaves with the preview button on playback. */
body.ap-videos-page .ap-videos .ap-video-play::before,
body.ap-videos-page .ap-videos .ap-video-unavailable::before{content:"";position:absolute;display:block;top:10px;left:10px;right:auto;bottom:auto;z-index:2;width:38%;max-width:150px;height:auto;aspect-ratio:2166/726;margin:0;padding:0;border:0;border-radius:0;background:url("assets/allsangsproffsen-logo.png") center/contain no-repeat;opacity:.78;filter:drop-shadow(0 1px 3px #000b);transform:none;box-shadow:none;pointer-events:none}
@media(max-width:600px){body.ap-videos-page .ap-videos .ap-video-play::before,body.ap-videos-page .ap-videos .ap-video-unavailable::before{top:8px;left:8px;width:36%;max-width:120px}}

/* Tombolan uses the channel's own logo as its preview watermark. */
body.ap-videos-page .ap-videos.ap-tombolan .ap-video-play::before,
body.ap-videos-page .ap-videos.ap-tombolan .ap-video-unavailable::before{background-image:url("assets/tombolan-logo.jpg");background-size:cover;aspect-ratio:4/1;mix-blend-mode:screen;opacity:.82}
