:root {
    --ia-brand: #0b6b63;
    --ia-bg: #fff;
    --ia-radius: 10px;
    --ia-shadow: 0 28px 90px rgba(0, 0, 0, .35);
    --ia-backdrop: rgba(0, 0, 0, .65);
    --ia-cta: #e53935;
    --ia-cta-text: #fff;
    /* modal max width; bump this if you want it larger on desktop */
    --ia-modal-max-w: min(92vw, 720px);
}

.ia-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: var(--ia-backdrop);
    backdrop-filter: blur(1.5px)
}

.ia-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center
}

.ia-modal[hidden],
.ia-modal-backdrop[hidden] {
    display: none !important
}

body.ia-no-scroll {
    overflow: hidden
}

/* Card */
.ia-modal-body {
    width: var(--ia-modal-max-w);
    border-radius: var(--ia-radius);
    box-shadow: var(--ia-shadow);
    overflow: hidden;
    /* clips image to rounded corners */
    transform: translateY(8px) scale(.985);
    opacity: 0;
    transition: transform .28s cubic-bezier(.2, .7, .2, 1), opacity .28s ease;
    background: var(--ia-bg);
}

.ia-modal.is-open .ia-modal-body {
    transform: none;
    opacity: 1
}

/* === HERO ===
   Make the hero exactly the image: no background, no padding, no crop */
.ia-modal-hero {
    position: relative;
    background: transparent !important;
    padding: 0 !important;
    display: block;
}

.ia-modal-img {
    display: block;
    width: 100%;
    /* fill the card width */
    height: auto !important;
    /* no fixed height => no crop */
    object-fit: contain;
    /* safety if a height ever gets applied */
    border-radius: 0;
    /* card's overflow gives rounded top corners */
    box-shadow: none;
    /* remove inner shadow around the image */
}

/* Close button overlays the image */
.ia-modal-close {
    position: absolute;
    top: 0px;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: none;
    /* transparent bg */
    background: rgba(0, 0, 0, 0);
    color: #ffffff;
    font-size: 52px;
    line-height: 1;
    font-weight: 200;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.ia-modal-close:hover {
    filter: brightness(1.05)
}

/* CONTENT */
.ia-modal-content {
    background: #fff;
    padding: 22px 24px 28px;
    text-align: center;
}

.ia-modal-title {
    margin: 0 0 12px;
    color: #111;
    font-weight: 600;
    font-style: Inter, sans-serif;
    font-size: 1.6rem;
    line-height: 1.25;
}

.ia-modal-copy {
    margin: 0 0 18px;
    color: #3a3a3a;
    font-size: 1rem;
    line-height: 1.5;
}

/* CTA pill */
.ia-modal-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    background: var(--ia-cta);
    color: var(--ia-cta-text);
    font-weight: 800;
    font-size: 1rem;
}

.ia-modal-btn:hover {
    filter: brightness(1.04)
}

.ia-modal-btn:focus-visible {
    outline: 3px solid rgba(229, 57, 53, .35);
    outline-offset: 3px
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
    :root {
        --ia-modal-max-w: min(94vw, 720px);
    }

    /* a hair wider on small screens */
}

@media (min-width: 768px) {
    .ia-modal-title {
        font-size: 2rem;
    }

    .ia-modal-copy {
        font-size: 1.05rem;
    }

    .ia-modal-btn {
        font-size: 1.05rem;
        padding: 16px 34px;
    }
}