/* Koraalboom - Beneath an ever-changing sky */

.day-night-stage {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
}

.day-night-stage > img:first-child {
    display: block;
    width: 100%;
}

.day-night-stage .day-night-layer {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    pointer-events: none;
    margin: 0 !important;
    transform: none !important;
}

.day-night-controls {
    max-width: 440px;
    margin: 16px auto 8px;
    padding: 0 14px;
    text-align: center;
    font-family: Georgia, serif;
    color: #59432d;
}

.day-night-caption {
    font-size: 15px;
    font-style: italic;
    line-height: 1.5;
    margin: 0 0 12px;
    color: #59432d;
}

.day-night-slider-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.day-night-symbol {
    font-size: 24px;
    line-height: 1;
    color: #59432d;
}

.day-night-slider {
    appearance: none;
    -webkit-appearance: none;
    flex: 1;
    min-width: 0;
    height: 5px;
    border-radius: 8px;
    background: linear-gradient(
        to right,
        #448bc9 0%,
        #e6a255 25%,
        #e94b19 50%,
        #8574a6 75%,
        #172747 100%
    );
    cursor: pointer;
}

.day-night-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #f5f0e4;
    border: 2px solid #59432d;
    border-radius: 50%;
    box-shadow: 0 1px 4px #0003;
}

.day-night-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #f5f0e4;
    border: 2px solid #59432d;
    border-radius: 50%;
}

.day-night-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.day-night-label {
    font-size: 13px;
    font-style: italic;
    color: #59432d;
}

.day-night-toggle {
    font-family: Georgia, serif;
    font-size: 12px;
    padding: 6px 14px;
    border: 1px solid #36502b !important;
    border-radius: 3px;
    background: #f5f0e4 !important;
    color: #36502b !important;
    cursor: pointer;
}

.day-night-toggle:hover {
    background: #36502b !important;
    color: #ffffff !important;
}

@media (max-width: 760px) {
    .day-night-controls {
        max-width: 300px;
        margin-top: 12px;
    }

    .day-night-caption {
        font-size: 12px;
    }

    .day-night-symbol {
        font-size: 20px;
    }

    .day-night-label {
        font-size: 11px;
    }
}
/* Compact mobile day-night controls */
@media (max-width: 760px) {

    .day-night-controls {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        column-gap: 12px;
        row-gap: 4px;
        max-width: 220px;
        margin: 10px auto 8px;
        padding: 0;
    }

    .day-night-caption {
        grid-column: 1 / -1;
        grid-row: 3;
        font-size: 11px !important;
        line-height: 1.4;
        margin: 4px 0 0;
        text-align: center;
    }

    .day-night-slider-row {
        grid-column: 1;
        grid-row: 1;
        gap: 8px;
    }

    .day-night-symbol {
        font-size: 15px !important;
    }

    .day-night-slider {
        height: 3px !important;
        margin: 0;
    }

    .day-night-slider::-webkit-slider-thumb {
        width: 11px;
        height: 11px;
        border-width: 1px;
    }

    .day-night-slider::-moz-range-thumb {
        width: 10px;
        height: 10px;
        border-width: 1px;
    }

    .day-night-bottom {
        display: contents;
    }

    .day-night-label {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: center;
        font-size: 11px !important;
        line-height: 1.3;
    }

    .day-night-toggle {
        grid-column: 2;
        grid-row: 1;
        position: relative;
        font-size: 0 !important;
        width: 32px;
        height: 32px;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        color: #59432d !important;
    }

    .day-night-toggle::after {
        content: "\275A\275A";
        font-size: 12px;
    }

    .day-night-toggle[data-paused="true"]::after {
        content: "\25B6";
    }
}

/* Gallery inscription above coral tree painting */

.day-night-caption.day-night-inscription {
    display: block;
    font-family: Georgia, serif;
    font-size: 17px !important;
    font-weight: 400;
    font-style: italic;
    color: #59432d;
    text-align: center;
    letter-spacing: 0.3px;
    line-height: 1.5;
    margin: 12px auto 16px !important;
    padding: 0 12px;
}

@media (max-width: 760px) {
    .day-night-caption.day-night-inscription {
        font-size: 12px !important;
        letter-spacing: 0.1px;
        margin: 8px auto 10px !important;
    }
}
