/* Reserve the original image proportions before the gallery images load. */
#home-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

/* Text determines card height; images stay in normal flow without cropping. */
.treatments .treatment-media {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.treatments .treatment-media img {
    width: auto;
    max-width: 100%;
    max-height: 24rem;
    height: auto;
    align-self: center;
}

.treatments .treatment-content {
    min-width: 0;
    width: 100%;
}

.treatments .btn {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.service-consultation,
.whatsapp-selector .btn {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.service-details {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 1rem;
    padding: 1rem;
    min-width: 0;
}

.service-details summary {
    cursor: pointer;
    color: var(--bs-heading-color, inherit);
}

.service-details summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.treatments section[id] {
    scroll-margin-top: 6rem;
}

.whatsapp-selector {
    width: min(30rem, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: 1.5rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, white);
    color: var(--bs-body-color, #222);
}

.whatsapp-selector::backdrop {
    background: rgb(0 0 0 / 50%);
}

.circuit-stage {
    min-width: 0;
    flex: 1 1 8rem;
}

.circuit-stage .stage-icon {
    width: 50px;
    height: 50px;
}
