/*
 * Additions to the original Capital Prosthodontics stylesheets (global.min.css and local.css, kept as they were).
 * They cover only what the original site did with its icon font and jQuery plugins.
 */

/* Icons: inline drawings sized and coloured like the icon font they replace. */
.site-icon {
    display: inline-block;
    height: 1em;
    width: auto;
    overflow: visible;
    vertical-align: -0.125em;
    fill: currentColor;
}

/* Rich text puts each list item's words in a paragraph; the original lists had none, so those paragraphs take on the item's own look. */
.text-content li > p {
    margin: 0;
    padding: 0;
    font: inherit;
    line-height: inherit;
    color: inherit;
    letter-spacing: inherit;
}

/* Slideshows: the slides stack and fade into one another, as the Cycle2 plugin made them. */
.cycle-slideshow {
    position: relative;
}

.cycle-slideshow > .cycle-slide {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    z-index: 98;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

.cycle-slideshow > .cycle-slide.cycle-slide-active {
    opacity: 1;
    visibility: visible;
    z-index: 99;
    transition: opacity 0.5s ease, visibility 0s;
}

/* The sentinel is an invisible copy of the first slide that gives the slideshow its height. */
.cycle-slideshow > .cycle-sentinel {
    position: static;
    display: block;
    visibility: hidden;
}

/* The before-and-after slides were centred across the slideshow's width. */
.office_tour.cycle-slideshow > div.cycle-slide,
.office_tour.cycle-slideshow > div.cycle-sentinel {
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .cycle-slideshow > .cycle-slide,
    .cycle-slideshow > .cycle-slide.cycle-slide-active {
        transition: none;
    }
}

/* Form messages: problems beside a question, and the thanks shown once a request is sent. */
#main-content form .field-error {
    display: block;
    color: #c0392b;
    font-size: 0.85em;
}

#main-content .form-message {
    margin: 1em 0;
    padding: 1em;
    border: 1px solid #0776bc;
    border-radius: 4px;
}

#main-content .form-message.is-error {
    border-color: #c0392b;
    color: #c0392b;
}

/* A field only bots fill in. People never see it. */
.form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
