.kpop-container { display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0; justify-content: center; align-items: center; z-index: 1000; pointer-events: none; } .kpop-container > * { pointer-events: auto; } .kpop-modal { position: relative; overflow: hidden; display: grid; grid-template-areas: "title-bar" "header" "content" "footer"; grid-template-rows: auto auto 1fr auto; border: 1px solid black; border-radius: 0.5rem; background-color: white; min-width: 35rem; max-width: 52rem; min-height: 0; max-height: 80vh; } .kpop-modal .kpop-title-bar { grid-area: title-bar; display: flex; background: #344055; color: white; } .kpop-modal .kpop-title-bar .kpop-title { padding: 1rem 1.5rem; flex-grow: 1; } .kpop-modal .kpop-title-bar .kpop-close { background: none; border: none; color: white; cursor: pointer; display: block; font-size: 2rem; font-weight: bold; padding: 0 0.75rem; text-decoration: none; } .kpop-modal .kpop-header { grid-area: header; } .kpop-modal .kpop-content { grid-area: content; display: flex; flex-direction: column; overflow: auto; } .kpop-modal .kpop-footer { grid-area: footer; background: white; border-top: 1px solid black; padding: 1rem 1.5rem; } .kpop-modal .kpop-buttons { display: flex; gap: 0.5rem; justify-content: space-between; } .kpop-modal.iframe .kpop-content { overflow: unset; } .kpop-modal.iframe iframe { height: 80vh; width: 52rem; flex-grow: 1; overflow: scroll; } @media (max-width: 600px), (max-height: 600px) { .kpop-modal { max-width: unset; min-width: unset; width: 100%; height: 100%; max-height: 100vh; border-radius: 0; border: none; } .kpop-modal.iframe iframe { width: 100%; height: 100%; } .kpop-buttons { flex-direction: column-reverse; text-align: center; } } .scrim { position: fixed; top: 0; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.6); z-index: -1; transition: opacity 0.2s ease-in-out, z-index 0.2s step-end; opacity: 0; } .scrim[data-scrim-open-value=true] { opacity: 1; transition: opacity 0.2s ease-in-out, z-index 0.2s step-start; }