/* Gig detail iframe modal (GIGS page) — matches EPK+ modal chrome */

body.mg-gig-modal-open {
    overflow: hidden;
}

.mg-gig-modal[hidden] {
    display: none;
}

.mg-gig-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4.75rem 1rem 1rem;
}

.mg-gig-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.mg-gig-modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(100%, 72rem);
    height: min(88svh, 56rem);
    background: #0e0e0e;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.mg-gig-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    padding: 0 1rem 0 0;
    border-bottom: 1px solid var(--line);
    background: #121212;
}

.mg-gig-modal-brand {
    margin: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 0 0 1rem;
    min-height: 3.75rem;
    font-family: var(--font-display);
    font-size: 1.65rem;
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--ink);
}

.mg-gig-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.mg-gig-modal-external {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
}

.mg-gig-modal-external:hover,
.mg-gig-modal-external:focus-visible {
    color: var(--ink);
    outline: none;
}

.mg-gig-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--brand-grey);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mg-gig-modal-close:hover,
.mg-gig-modal-close:focus-visible {
    color: var(--ink);
    border-color: var(--brand-grey);
    background: #1a1a1a;
    outline: none;
}

.mg-gig-modal-body {
    flex: 1;
    min-height: 0;
    background: #0b0b0b;
}

.mg-gig-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #0b0b0b;
}

@media (max-width: 480px) {
    .mg-gig-modal {
        padding: 0;
    }

    .mg-gig-modal-dialog {
        width: 100%;
        height: 100%;
        max-height: none;
    }
}
