/* Homepage YouTube collection. Scoped to avoid the previous blog carousel styles. */
#videos .section-head { margin-bottom: 30px; }
#videos .section-head p { max-width: 430px; }
#videos .video-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; align-items: stretch; }
#videos .video-card { min-width: 0; background: #fff; border: 1px solid #e2e9e5; border-radius: 12px; overflow: hidden; }
#videos .video-thumb { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; background: #eaf0ec; }
#videos .video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
#videos .video-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent,rgba(0,0,0,.18)); pointer-events: none; }
#videos .video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 55px; height: 55px; border-radius: 50%; background: #087a55; color: #fff; z-index: 1; box-shadow: 0 4px 18px rgba(0,0,0,.14); }
#videos .video-play svg { margin-left: 3px; }
#videos .video-body { padding: 21px 23px 24px; }
#videos .video-body > span { display: block; color: #8b3f2f; font-size: .75rem; letter-spacing: .04em; margin-bottom: 9px; }
#videos .video-body h3 { margin: 0; font-size: 1.15rem; color: #064438; line-height: 1.45; overflow-wrap: anywhere; }
#videos .video-carousel.is-ready .video-grid { grid-template-columns: repeat(var(--video-columns,3),minmax(0,1fr)); }
#videos .video-carousel.is-ready .video-card { grid-row: 1; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px); transition: opacity .5s ease,transform .5s ease,visibility .5s; }
#videos .video-carousel.is-ready .video-card.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
#videos .video-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 24px; }
#videos [hidden] { display: none !important; }
#videos .video-dots { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; }
#videos .video-dot { display: grid; place-items: center; width: 30px; height: 32px; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
#videos .video-dot::before { content: ''; width: 7px; height: 7px; border-radius: 8px; background: #c9d8d0; transition: width .2s ease; }
#videos .video-dot[aria-current="true"]::before { width: 20px; background: #087a55; }
#videos .video-pause { font: inherit; font-size: .8rem; color: #526b62; background: transparent; border: 0; padding: 8px; cursor: pointer; }
#videos a:focus-visible,#videos button:focus-visible { outline: 2px solid #087a55; outline-offset: 4px; }
#videos .video-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#videos .video-modal { position: fixed; inset: 0; box-sizing: border-box; width: min(920px,calc(100% - 28px)); max-width: none; max-height: 90dvh; margin: auto; padding: 18px; border: 0; border-radius: 12px; background: #fff; color: #064438; overflow: auto; }
#videos .video-modal::backdrop { background: rgba(0,0,0,.72); }
#videos .video-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
#videos .video-modal-head h2 { margin: 0; font-size: 1.05rem; line-height: 1.4; overflow-wrap: anywhere; }
#videos .video-modal-head button { font: inherit; font-size: 1.7rem; line-height: 1; width: 38px; height: 38px; flex: none; border: 0; background: transparent; color: #064438; cursor: pointer; }
#videos .video-player { aspect-ratio: 16/9; min-height: 200px; background: #111; }
#videos .video-player iframe { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; }
#videos .video-youtube-link { display: inline-block; margin-top: 13px; font-size: .85rem; color: #087a55; }
#videos .video-empty { color: #5f7368; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) { #videos .video-thumb:hover img { transform: scale(1.035); } }
@media(max-width:950px) { #videos .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { #videos .video-grid { grid-template-columns: 1fr; } #videos .video-modal { padding: 12px; } }
@media(prefers-reduced-motion:reduce) { #videos .video-thumb img,#videos .video-carousel.is-ready .video-card,#videos .video-dot::before { transition: none; transform: none; } }
