/* ===================================================================
   Sunscope Vimeo Grid — dark cinematic styling
   Responsive: 1 col on phones, 2 on tablets, --svg-cols on desktop.
   =================================================================== */

.svg-grid {
    display: grid;
    grid-template-columns: 1fr;          /* phones */
    gap: 1.25rem;
    width: 100%;
    margin: 1.5rem 0;
}
@media (min-width: 600px) {
    .svg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .svg-grid { grid-template-columns: repeat(var(--svg-cols, 3), minmax(0, 1fr)); }
}

/* ---- Card ---- */
.svg-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: #14151b;
    overflow: hidden;
    cursor: pointer;
    color: inherit;
    font: inherit;
    transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease;
}
.svg-card:hover,
.svg-card:focus-visible {
    border-color: rgba(255,255,255,.2);
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(0,0,0,.5);
    outline: none;
}

/* ---- Thumbnail ---- */
.svg-card__thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #22242f;
    overflow: hidden;
}
.svg-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.svg-card:hover .svg-card__thumb img {
    transform: scale(1.05);
}

/* Play button overlay */
.svg-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0,0,0,.25);
    opacity: .9;
    transition: opacity .2s ease, background .2s ease;
}
.svg-card__play svg {
    background: rgba(192,57,43,.92);   /* matches theme red */
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,.5);
    transition: transform .2s ease;
}
.svg-card:hover .svg-card__play { background: rgba(0,0,0,.1); }
.svg-card:hover .svg-card__play svg { transform: scale(1.08); }

/* Duration badge */
.svg-card__duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,.8);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: .15em .5em;
    border-radius: 4px;
    letter-spacing: .02em;
}

/* ---- Body ---- */
.svg-card__body {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .85rem 1rem 1rem;
}
.svg-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    color: #f0efec;
}
.svg-card__desc {
    font-size: .85rem;
    line-height: 1.5;
    color: rgba(240,239,236,.62);
}

/* ===================================================================
   Lightbox
   =================================================================== */
.svg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
}
.svg-lightbox.is-open {
    display: flex;
}
.svg-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(4px);
}
.svg-lightbox__inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
    z-index: 1;
}
.svg-lightbox__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.7);
}
.svg-lightbox__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.svg-lightbox__close {
    position: absolute;
    top: -3rem;
    right: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
    transition: opacity .2s ease;
}
.svg-lightbox__close:hover { opacity: 1; }

@media (max-width: 600px) {
    .svg-lightbox__close { top: -2.6rem; right: .25rem; }
}
