/* acf/centered-text — ΜΟΝΟ layout/positioning. Typography/colors (λευκά, glass bg, 18/25) → style.css του theme (§CENTERED TEXT).
   Figma 1920 (THE HOTEL «A HEAVEN…», HOME «THE HOTEL»/«PLAN YOUR STAY», BEACHES 2 στήλες — μετρημένα):
   panel 1024 ψηλό, περιεχόμενο κάθετα κεντραρισμένο· τίτλος 45/45 → 55 → γραμμή 374 (ή 596) → 64 → κείμενο 587 (2 στήλες: 587+80+587) → 51 → text-link.
   60px κάτω από το προηγούμενο section.
   E3 (--has-bg): sticky φωτό 100svh ΠΙΣΩ, panel min-height 100svh από κάτω → το glass «καλύπτει» τη φωτό με το scroll. Pure CSS.
   ΚΑΝΕΝΑ overflow/height στο root ή σε ancestor (σπάει το sticky).
   Επιλογές → classes: .acf-ctext--has-bg | --no-bg · --rule-md | --rule-lg | --no-rule · --cols · --has-link */
.acf-ctext {
    --h: 53.3333vw;          /* 1024 @1920 — ίδιο ratio με το full-bleed media */
    --rule-w: 374px;
    --text-w: 587px;
    --cols-gap: 80px;
    position: relative;
    margin: 60px 0 0;
    isolation: isolate;
}
.acf-ctext--rule-lg {
    --rule-w: 596px;
}

/* E3 sticky background. Με bg η φωτό είναι full-bleed media μετά από split → όπως ο slider: 24 (+60 split = 84 Figma THE HOTEL/HOME· verify 2026-11-06: ήταν 120) */
.acf-ctext--has-bg {
    --h: 100svh;
    margin-top: 24px;
}
.acf-ctext__bg {
    position: sticky;
    top: 0;
    z-index: 0;
    height: 100svh;
    overflow: hidden;        /* μόνο στο ίδιο το sticky στοιχείο — όχι σε ancestor */
}
.acf-ctext__bg-img,
.acf-ctext__bg-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* glass panel */
.acf-ctext__panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--h);
    padding: 60px var(--gutter, 56px);
    text-align: center;
}
.acf-ctext__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: var(--text-w);
}
.acf-ctext--cols .acf-ctext__inner {
    max-width: calc(2 * var(--text-w) + var(--cols-gap));
}
.acf-ctext__title {
    margin: 0;
}
.acf-ctext__title .line {
    display: block;
}
.acf-ctext__rule {
    display: block;
    width: var(--rule-w);
    max-width: calc(100vw - 2 * var(--gutter, 56px));
    flex-shrink: 0;          /* --rule-lg (596) > inner (587): η γραμμή βγαίνει συμμετρικά έξω από το inner (verify: έκοβε στα 587) */
    height: 1px;
    margin-top: 55px;
}
.acf-ctext__text {
    width: 100%;
    margin-top: 64px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 var(--cols-gap);
}
.acf-ctext--no-rule .acf-ctext__text {
    margin-top: 55px;
}
.acf-ctext--cols .acf-ctext__text {
    grid-template-columns: 1fr 1fr;
}
.acf-ctext__col > :first-child {
    margin-top: 0;
}
.acf-ctext__col > :last-child {
    margin-bottom: 0;
}
.acf-ctext__col ul,
.acf-ctext__col ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
.acf-ctext__link {
    margin-top: 51px;
}

/* tablet */
@media (max-width: 1024px) {
    .acf-ctext {
        margin-top: 40px;
        --cols-gap: 40px;
    }
    .acf-ctext--has-bg {
        margin-top: 20px;
    }
    .acf-ctext__panel {
        padding: 50px var(--gutter, 30px);
    }
    .acf-ctext__rule {
        margin-top: 40px;
    }
    .acf-ctext__text {
        margin-top: 48px;
    }
    .acf-ctext__link {
        margin-top: 40px;
    }
}

/* mobile (frame 360: panel 694 ≈ 100svh, τίτλος → 29 → γραμμή 183 → 46 → κείμενο 270 wide, 1 στήλη) */
@media (max-width: 640px) {
    .acf-ctext {
        --h: 100svh;
        --rule-w: 183px;
        margin-top: 20px;
    }
    .acf-ctext--has-bg {
        margin-top: 10px;        /* mobile frame: split κείμενο → φωτό 60 (split padding 50 + 10) */
    }
    .acf-ctext__panel {
        padding: 40px 45px;
    }
    .acf-ctext__rule {
        margin-top: 29px;
    }
    .acf-ctext__text,
    .acf-ctext--no-rule .acf-ctext__text {
        margin-top: 46px;
    }
    .acf-ctext--cols .acf-ctext__text {
        grid-template-columns: 1fr;
        row-gap: 25px;
    }
    .acf-ctext__link {
        margin-top: 40px;
    }
}
