/* Lock body scroll when modal is open */
body.atty-modal-open {
    overflow: hidden;
}

/* Modal wrapper */
.atty-modal {
    display: none;           /* shown via JS */
    position: fixed;
    inset: 0;
    z-index: 9999!important;
}

/* Dark overlay */
.atty-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* Dialog box */
.atty-modal-dialog {
    position: relative;
    margin: 60px auto;
    max-width: 960px;
    max-height: 90vh;
    z-index: 99999;
    background: #ffffff;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Close button (top right) */
.atty-modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

/* Inner layout */
.atty-modal-inner {
    display: flex;
    z-index: 9999999;
    flex-direction: column;
}

/* Big image at top */
.atty-modal-photo img {
    display: block;
    width: 40%;
    height: auto;
    margin-top: 20px;
    justify-self: center;
}

/* Content area */
.atty-modal-body {
    padding: 40px 40px 35px;
    line-height: 1.6; /* better readability */
}

/* Paragraph spacing */
.atty-modal-body p {
    margin: 0 0 1.1em; /* space between paragraphs */
}

/* Intro paragraph spacing */
.atty-intro p:first-child {
    margin-top: 0.4em;
}
.atty-intro p:last-child {
    margin-bottom: 18px;
}

/* Two-column layout like your design */
.atty-modal-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

/* Heading spacing */
.atty-modal-body h2 {
    margin-top: 0;
    margin-bottom: 0.6em;
}

.atty-modal-body h3 {
    margin-top: 1.8em;
    margin-bottom: 0.4em;
}

.atty-modal-col h2 {
    margin-top: 0;
}

/* Section + list spacing */
.atty-section + .atty-section {
    margin-top: 16px;
}

.atty-section ul,
.atty-modal-body ul {
    margin: 0 0 1.1em 1.3em;
    padding-left: 0; /* rely on margin for indent */
}

.atty-modal-body ul li + li {
    margin-top: 0.25em;
}

/* Responsive: stack columns on mobile */
@media (max-width: 768px) {
    .atty-modal-dialog {
        margin: 20px;
        max-height: 95vh;
    }
        .atty-modal-photo img {
            width:90%
        }
    .atty-modal-body {
        padding: 20px 20px 25px;
    }

    .atty-modal-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
