/* Small overrides for Laravel integration (keep vendor CSS intact). */

/* Work card “Open project” pill: desktop/tablet hover only; hidden on narrow viewports */
.sg-card-open-pill {
    opacity: 0;
    transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
    a:hover .sg-card-open-pill,
    a:focus-visible .sg-card-open-pill {
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .sg-card-open-pill {
        display: none !important;
    }
}

/* Works: extra bottom breathing room + safe area on phones */
@media (max-width: 767px) {
    .card-work-title {
        padding-bottom: 0.75rem;
    }

    c-view-switcher.works {
        /* Extra space so the last card title can scroll fully into view above the safe area */
        padding-bottom: max(2.5rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
    }
}

/* List view: slightly smaller category label on narrow screens */
@media (max-width: 767px) {
    .works-list-category {
        font-size: 0.625rem;
        line-height: 1.15;
    }
}

/* Text wordmark (header): same display font as Artefakt headings, two-line lockup */
.header-logo.sg-wordmark {
    width: auto;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.header-logo.sg-wordmark .sg-wordmark-line {
    text-transform: none;
    line-height: 0.95;
}

/* Prevent layout shift when modal/menu open */
html.sg-scroll-locked,
body.sg-scroll-locked {
    overflow: hidden !important;
}

/* Mobile menu overlay (artefakt-like) */
.sg-mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .sg-mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.75rem;
        letter-spacing: 0.14em;
        padding: 0.75rem 0.5rem;
        cursor: pointer;
    }
}

.sg-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
}

.sg-mobile-menu.is-open {
    display: block;
}

.sg-mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.sg-mobile-menu__panel {
    position: relative;
    height: 100%;
    width: 100%;
    padding: 1.25rem 1rem 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.sg-mobile-menu__top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.25rem;
}

.sg-mobile-menu__close {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
}

.sg-mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sg-mobile-menu__list a {
    color: #fff;
    text-decoration: none;
    font-size: 1.125rem;
}

/* Video modal */
.sg-video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4500;
}

.sg-video-modal.is-open {
    display: block;
}

.sg-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.sg-video-modal__dialog {
    position: relative;
    width: calc(100% - 2rem);
    max-width: 58rem;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.sg-video-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1;
    width: 2.375rem;
    height: 2.375rem;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sg-video-modal__frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.sg-video-modal__frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}

