/* =========================================================
   Guests
   ========================================================= */

.rsce-guests {
    margin-block: 3rem;
}

.rsce-guests__headline {
    margin: 0 0 2rem;
    text-align: center;
}

.rsce-guests__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.rsce-guest-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    /* border-radius: 0.75rem;
    box-shadow: 0 0.3rem 1.2rem rgba(0, 0, 0, 0.08); */
}

.rsce-guest-card__image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f3f3f3;
}

.rsce-guest-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rsce-guest-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
}

.rsce-guest-card__name {
    margin: 0 0 0.85rem;
    font-size: 1.25rem;
    line-height: 1.25;
}

.rsce-guest-card__email {
    margin: 0 0 0.75rem;
    overflow-wrap: anywhere;
}

.rsce-guest-card__label {
    font-weight: 600;
}

.rsce-guest-card__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.8rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.rsce-guest-card__socials a {
    text-decoration: none;
}

.rsce-guest-card__socials a:hover,
.rsce-guest-card__socials a:focus-visible {
    text-decoration: underline;
}

.rsce-guest-card__more {
    margin-top: auto;
    padding: 0.65rem 1rem;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    background: #d79f00;
    border: 0;
    /* border-radius: 0.3rem; */
}

.rsce-guest-card__more:hover,
.rsce-guest-card__more:focus-visible {
    filter: brightness(0.92);
}

/* Modal */

.rsce-guest-dialog {
    width: min(48rem, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    overflow: auto;
    color: inherit;
    background: #fff;
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.3);
}

.rsce-guest-dialog::backdrop {
    background: rgba(0, 0, 0, 0.65);
}

.rsce-guest-dialog__panel {
    position: relative;
    padding: 2rem;
}

.rsce-guest-dialog__close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: inherit;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 50%;
}

.rsce-guest-dialog__close:hover,
.rsce-guest-dialog__close:focus-visible {
    background: rgba(0, 0, 0, 0.08);
}

.rsce-guest-dialog__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: start;
}

.rsce-guest-dialog__title {
    margin: 0 2.5rem 1.25rem 0;
}

.rsce-guest-dialog__resume > :first-child {
    margin-top: 0;
}

.rsce-guest-dialog__resume > :last-child {
    margin-bottom: 0;
}

.rsce-guest-dialog__qr {
    width: 10rem;
}

.rsce-guest-dialog__qr img {
    display: block;
    width: 100%;
    height: auto;
}

.rsce-guest-card__specialization {
    margin: -0.45rem 0 1rem;
    color: #777;
    font-size: 0.95rem;
    line-height: 1.35;
}

.rsce-guest-dialog__specialization {
    margin: -0.85rem 0 1.5rem;
    color: #777;
    font-size: 1.05rem;
    line-height: 1.4;
}

.rsce-guest-card__more {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    margin-top: auto;
    min-height: 3.4rem;
    padding: .65rem 1rem;

    line-height: 1.15;
    text-align: center;

    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    background: #d79f00;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
}

.rsce-guest-card__button-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
}

.rsce-guest-card__button-name {
    display: block;
    font-size: .92rem;
    font-weight: 700;
}

/* Responsive */

@media (max-width: 1100px) {
    .rsce-guests__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .rsce-guests__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .rsce-guests__grid {
        grid-template-columns: 1fr;
    }

    .rsce-guest-dialog__panel {
        padding: 1.5rem;
    }

    .rsce-guest-dialog__content {
        grid-template-columns: 1fr;
    }

    .rsce-guest-dialog__qr {
        width: min(10rem, 100%);
    }

    .rsce-guest-card__more {
        display: flex;
        width: 100%;
        min-height: auto;
    }

    .rsce-guest-card__button-label,
    .rsce-guest-card__button-name {
        display: inline;
        font-size: inherit;
        font-weight: inherit;
    }

    .rsce-guest-card__button-label::after {
        content: " ";
    }
}


