/* AtSea — Fotocredit op de afbeelding */

.atsea-fc {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    vertical-align: top;
}

.atsea-fc > img {
    max-width: 100%;
    height: auto;
    display: block;
}

.atsea-fc__tekst {
    position: absolute;
    z-index: 2;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: .01em;
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

/* ── Positie ── */
.atsea-fc--rechtsonder .atsea-fc__tekst {
    right: 10px;
    bottom: 10px;
}

.atsea-fc--linksonder .atsea-fc__tekst {
    left: 10px;
    bottom: 10px;
}

.atsea-fc--rechtsboven .atsea-fc__tekst {
    right: 10px;
    top: 10px;
}

.atsea-fc--linksboven .atsea-fc__tekst {
    left: 10px;
    top: 10px;
}

/* ── Stijl: klein pilletje ── */
.atsea-fc--pil .atsea-fc__tekst {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.atsea-fc--pil.atsea-fc--licht .atsea-fc__tekst {
    background: rgba(255, 255, 255, .82);
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

/* ── Stijl: zacht verloop over de onderrand ── */
.atsea-fc--verloop .atsea-fc__tekst {
    padding: 4px 2px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.atsea-fc--verloop::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 1;
}

.atsea-fc--verloop.atsea-fc--rechtsboven::after,
.atsea-fc--verloop.atsea-fc--linksboven::after {
    bottom: auto;
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}

/* ── Stijl: alleen tekst met schaduw ── */
.atsea-fc--tekst .atsea-fc__tekst {
    padding: 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7), 0 0 2px rgba(0, 0, 0, .5);
}

.atsea-fc--tekst.atsea-fc--licht .atsea-fc__tekst {
    color: #1a1a1a;
    text-shadow: 0 1px 3px rgba(255, 255, 255, .8);
}

/* ── Achtergrondafbeeldingen (Elementor-secties en containers) ──
   Daar is geen afbeelding om in te pakken, dus komt de tekst uit een
   data-attribuut op het element zelf. */
.atsea-fc-bg {
    position: relative;
}

/* Hoge specificiteit met !important op de kernregels: secties en kolommen van
   Elementor gebruiken ::after zelf ook (clearfix), en die stylesheet laadt vaak
   ná de onze. Zonder dit zou hun "content: ''" de onze overschrijven. */
.atsea-fc-bg[data-atsea-fc-tekst]::after,
.elementor-element.atsea-fc-bg[data-atsea-fc-tekst]::after {
    content: attr(data-atsea-fc-tekst) !important;
    position: absolute !important;
    display: inline-block !important;
    clear: none !important;
    width: auto !important;
    height: auto !important;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    z-index: 3;
    -webkit-user-select: none;
    user-select: none;
}

.atsea-fc-bg.atsea-fc--rechtsonder::after { right: 14px; bottom: 12px; }
.atsea-fc-bg.atsea-fc--linksonder::after  { left: 14px; bottom: 12px; }
.atsea-fc-bg.atsea-fc--rechtsboven::after { right: 14px; top: 12px; }
.atsea-fc-bg.atsea-fc--linksboven::after  { left: 14px; top: 12px; }

.atsea-fc-bg.atsea-fc--pil::after {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.atsea-fc-bg.atsea-fc--pil.atsea-fc--licht::after {
    background: rgba(255, 255, 255, .82);
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.atsea-fc-bg.atsea-fc--tekst::after,
.atsea-fc-bg.atsea-fc--verloop::after {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7), 0 0 2px rgba(0, 0, 0, .5);
}

.atsea-fc-bg.atsea-fc--tekst.atsea-fc--licht::after,
.atsea-fc-bg.atsea-fc--verloop.atsea-fc--licht::after {
    color: #1a1a1a;
    text-shadow: 0 1px 3px rgba(255, 255, 255, .8);
}

.atsea-fc-bg.atsea-fc--hover::after { opacity: 0; transition: opacity .18s ease-in-out; }
.atsea-fc-bg.atsea-fc--hover:hover::after { opacity: 1; }

@media (hover: none) {
    .atsea-fc-bg.atsea-fc--hover::after { opacity: 1; }
}

/* ── Alleen bij hover ── */
.atsea-fc--hover .atsea-fc__tekst,
.atsea-fc--hover::after {
    opacity: 0;
    transition: opacity .18s ease-in-out;
}

.atsea-fc--hover:hover .atsea-fc__tekst,
.atsea-fc--hover:focus-within .atsea-fc__tekst,
.atsea-fc--hover:hover::after,
.atsea-fc--hover:focus-within::after {
    opacity: 1;
}

/* Op aanraakschermen bestaat hover niet: dan altijd tonen. */
@media (hover: none) {
    .atsea-fc--hover .atsea-fc__tekst,
    .atsea-fc--hover::after {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atsea-fc--hover .atsea-fc__tekst,
    .atsea-fc--hover::after {
        transition: none;
    }
}

/* Kleine schermen: iets compacter */
@media (max-width: 480px) {
    .atsea-fc__tekst {
        font-size: 10px;
    }

    .atsea-fc--rechtsonder .atsea-fc__tekst,
    .atsea-fc--linksonder .atsea-fc__tekst {
        bottom: 6px;
    }

    .atsea-fc--rechtsonder .atsea-fc__tekst,
    .atsea-fc--rechtsboven .atsea-fc__tekst {
        right: 6px;
    }

    .atsea-fc--linksonder .atsea-fc__tekst,
    .atsea-fc--linksboven .atsea-fc__tekst {
        left: 6px;
    }
}

@media print {
    .atsea-fc__tekst {
        color: #000;
        background: none;
        text-shadow: none;
    }

    .atsea-fc--verloop::after {
        display: none;
    }
}
