.vintario-sheet[hidden] {
    display: none;
}

.vintario-sheet {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.vintario-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(10 23 36 / 56%);
}

.vintario-sheet__frame {
    position: relative;
    width: min(100%, 620px);
}

.vintario-sheet__panel {
    width: 100%;
    max-height: min(760px, calc(100vh - 104px));
    overflow: auto;
    box-sizing: border-box;
    border: 1px solid rgb(16 42 63 / 18%);
    border-radius: 8px;
    padding: 34px 40px 36px;
    background: #fff;
    color: #172033;
    box-shadow: 0 20px 55px rgb(7 21 34 / 28%);
}

.vintario-sheet__content:not(.vintario-sheet__content--project) > h2 {
    margin: 0 0 18px;
    font-size: 1.55rem;
    line-height: 1.24;
}

.vintario-sheet__content--project {
    display: block;
    min-height: 0;
    background: transparent;
}

.vintario-sheet__content--project > :is(h2, h3) {
    margin-right: 0;
}

.vintario-sheet__content > :first-child {
    margin-top: 0;
}

.vintario-sheet__content > :last-child {
    margin-bottom: 0;
}

.vintario-sheet__close {
    position: absolute;
    top: -18px;
    right: -18px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    appearance: none;
    -webkit-appearance: none;
    background: #c7352b;
    color: #fff;
    font-size: 0;
    line-height: 1;
    outline: none;
    box-shadow: none;
    cursor: pointer;
}

.vintario-sheet__close::before,
.vintario-sheet__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
}

.vintario-sheet__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.vintario-sheet__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.vintario-sheet__close:hover,
.vintario-sheet__close:focus-visible {
    background: #a92720;
    color: #fff;
    outline: none;
    box-shadow: none;
}

body.vintario-sheet-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .vintario-sheet {
        padding: 16px;
    }

    .vintario-sheet__panel {
        max-height: calc(100vh - 94px);
        padding: 30px 24px 28px;
    }
}
