/* V41 — Homepage-only typography and photo-card alignment.
 * Applied to the same original markup and images in all five languages.
 * No changes to other pages, menus, content, prices, bookings or SEO.
 */

/* Calm, readable homepage headlines; the original fonts, colors and decorative serif remain. */
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] :is(.section-title h2,.split-copy h2,.feature-content h2,.story-band h2,.editorial-grid h2,.bottom-cta h2,.isc-detail-heading h2) {
    font-size: clamp(30px, 3.15vw, 49px) !important;
    font-weight: 720 !important;
    line-height: 1.14 !important;
    letter-spacing: -.042em !important;
    text-wrap: balance;
    overflow-wrap: normal;
}
/* Homepage chapter headlines with an editorial serif still retain their italic emphasis. */
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .section-title h2 :is(.serif,em),
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .story-band h2 :is(.serif,em) {
    font-weight: 400 !important;
}
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .section-title {
    max-width: 820px;
}
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .headline-row {
    gap: clamp(15px,2.2vw,28px);
    margin-bottom: clamp(22px,3vw,34px);
}
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .section-title h2 {
    margin-bottom: 15px !important;
}
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .section-title .script {
    font-size: clamp(22px,2vw,28px);
    margin-bottom: 12px;
}
/* Keep the requested handwritten Amatic SC only for the lead photo H1, but more compact. */
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] section.hero .hero-inner h1 {
    font-size: clamp(55px,6.25vw,88px) !important;
    line-height: 1.025 !important;
    max-width: 920px;
    margin-bottom: 22px;
}
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] section.hero .hero-inner h1 em {
    font-size: inherit !important;
    font-weight: inherit !important;
    font-family: inherit !important;
}

/* Package + activity photo cards: one 16:10 frame, independent of original image dimensions. */
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .cards-three {
    align-items: stretch;
}
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .cards-three > .card-photo {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .cards-three > .card-photo > .photo-wrap {
    aspect-ratio: 16 / 10;
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
    background: #dbe7e5;
}
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .cards-three > .card-photo > .photo-wrap > img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: cover !important;
    object-position: center center;
}
/* Crop intentionally around the subjects rather than distortion. */
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .cards-three img[src*="rooftop-yoga"] { object-position: 50% 48%; }
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .cards-three img[src*="coaching-v40"] { object-position: 50% 45%; }
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .cards-three img[src*="longboard"] { object-position: 50% 55%; }
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .cards-three img[src*="cooking-class"] { object-position: 50% 38%; }

/* The card text remains the same, with consistent lower actions and comfortable spacing. */
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .cards-three > .card-photo > .card-photo-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 9px;
    padding: clamp(20px,2vw,27px);
    min-width: 0;
}
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .cards-three .card-photo h3 {
    font-size: clamp(20px,1.75vw,25px) !important;
    line-height: 1.22 !important;
    font-weight: 750 !important;
    letter-spacing: -.035em;
    margin: 0 0 3px;
}
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .cards-three .card-photo-body > p {
    min-height: 0 !important;
    margin: 0 0 13px;
    font-size: 14px;
    line-height: 1.6;
}
body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .cards-three .card-bottom {
    margin-top: auto;
    min-width: 0;
    gap: 12px;
    flex-wrap: wrap;
}

@media(max-width: 980px) {
    body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] :is(.section-title h2,.split-copy h2,.feature-content h2,.story-band h2,.editorial-grid h2,.bottom-cta h2,.isc-detail-heading h2) {
        font-size: clamp(30px,4.7vw,42px) !important;
        line-height: 1.16 !important;
    }
}
@media(max-width: 767px) {
    body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] :is(.section-title h2,.split-copy h2,.feature-content h2,.story-band h2,.editorial-grid h2,.bottom-cta h2,.isc-detail-heading h2) {
        font-size: clamp(27px,7.2vw,37px) !important;
        line-height: 1.17 !important;
        letter-spacing: -.035em !important;
    }
    body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] section.hero .hero-inner h1 {
        font-size: clamp(45px,10vw,63px) !important;
        line-height: 1.05 !important;
        max-width: 100%;
    }
    body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .cards-three > .card-photo > .card-photo-body {
        padding: 20px;
    }
    body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .cards-three .card-photo h3 {
        font-size: 21px !important;
    }
}
@media(max-width: 400px) {
    body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] .headline-row {
        margin-bottom: 22px;
    }
    body.gm-wordpress-theme .gm-main .isc-site[data-isc-page="index"] section.hero .hero-inner h1 {
        font-size: clamp(42px,10vw,52px) !important;
    }
}
