.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: .75rem 1.25rem;
    color: inherit;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
}

.modal.edit .add-only, .modal.add .edit-only {
    display: none;
}

/* Reduce hero height on contact page, these 2 numbers must match */
.hero-wrap.hero-wrap-2 {
    height: 400px;
}

.hero-wrap.hero-wrap-2 .slider-text {
    height: 400px;
}

.hero-wrap.hero-wrap-small,
.hero-wrap.hero-wrap-small .slider-text {
    height: 200px;
}

.top-header {
    background: #222222;
    color: #fff;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    font-size: 80%;
    border-bottom: 1px solid #c5a880;
    opacity: 0.8;
}

.top-header a {
    color: #fff;
}

.top-header a:hover {
    text-decoration: underline;
}

.top-header .item {
    margin: 0 1em;
}

@media (min-width: 576px) {
    .top-header .phone {
        text-align: right;
    }

    .top-header .email {
        text-align: left;
    }
}

.ftco-navbar-light {
    padding-top: 40px;
}

@media (max-width: 576px) {
    .ftco-navbar-light {
        padding-top: 50px;
    }
    .top-header .item:last-of-type {
        display: block;
    }
    .top-header .sep:nth-last-child(2) {
        display: none;
    }
}

/* See https://stackoverflow.com/a/63698785, which explains that this
targets the same browsers where background-attachment doesn't work
*/
@supports (-webkit-overflow-scrolling: touch) {
     .hero-wrap {
        background-attachment: scroll !important;
     }
}

.article img.background {
    display: none;
}

.article > p > img {
    max-width: 100%;
    height: auto;
}

.article figure {
    max-width: 100%;
    height: auto;
}

.article figure img {
    max-width: 100%;
    height: auto;
}

.article figcaption {
    font-size: 0.7em;
    text-align: center;
}

.article figure.center {
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.article figure.center, .article figure.left, .article figure.right {
    padding: 3px 3px 0;
    border: 1px solid #ccc;
}

.article figure.left, .article figure.right {
    max-width: 50%;
}

.article .clear {
    clear: both;
    padding: 1em;
}

.article figure.left {
    float: left;
    margin-right: 1em;
    clear: both;
}

.article figure.right {
    float: right;
    margin-left: 1em;
    clear: both;
}

.alert.hidden {
    display: none;
}

.contactForm.validated .form-control:invalid {
    border-color: #721c24;
}

figcaption h4, figcaption p {
    margin-bottom: 0 !important;
}
