﻿/*https://colorhunt.co/palette/1c658c398ab9d8d2cbeeeeee*/
:root {
    --container-width: 700px;
    --toggle-height: 30px;
}

* {
    box-sizing: border-box;
}

body {
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-family: 'Staatliches', sans-serif;
    color: #0e4052;
    align-self: center;
}


p {
    font-family: 'Montserrat', sans-serif;
    list-style-type: none;
    line-height: 160%;
    font-size: 15px;
    margin: 0 auto;
    color: #0e4052;
}

a {
    color: #0e4052;
    text-decoration: underline;

}

body {
    background-color: #eee;
}

hr {
    width: 100%;
    border: none;
    border-top: 1px solid #cdcdcd;
    margin: 30px 0;
    /*border: none;*/
}

.photo {
    border-radius: 8px;
    width: 200px;
    align-self: center;
}

.container {
    margin: 0 auto;
    max-width: var(--container-width);
    padding: 30px 10px;
}

.hero {
    display: flex;

    /*flex-flow: wrap;*/
    margin: 0 auto;
    padding: 0 30px;
    padding-bottom: 0
}

.hero-info {
    align-self: center;
    margin-left: 20px;
}


.links {
    display: flex;
    justify-content: space-evenly;
    flex-flow: wrap;
    margin: -15px 0;
}

.links a {

    text-decoration: none;
}

.link {
    text-align: center;
    align-self: end;
    white-space: nowrap;
    margin: 15px 0;
}

.link p {
    font-size: 11px;
    text-transform: uppercase;
}

.link .fas, .link .fab {
    font-size: 28px;
    margin-bottom: 5px;
}

.cards {
    display: flex;
    flex-wrap: wrap;

    justify-content: space-between;
    margin: 0 auto;
    max-width: 910px;
    column-gap: 10px;
    row-gap: 30px;
}

.card {
    width: 330px;
}

.card-gallery {
    z-index: 0;
    position: relative;
}
.card-gallery-highlight {
    z-index: 1;
}

.card-gallery img {
    border-radius: 8px;
    max-width: 100%;
}

.tags {
    text-align: left;
    left: 0;
    right: 0;
    bottom: 0;
    height: 33px;
    padding: 0 5px;
    position: absolute;
}

.tag {
    cursor: default;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #0a0a0a;
    background-color: rgba(238, 238, 238, .9);
    display: inline-block;
    border-radius: 4px;
    padding: 0 12px;
    line-height: 24px;
}

.card-info {
    padding: 10px;
    max-height: 150px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #D8D2CB;
    position: relative;
}

.card-info:after {
    content: "";
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: var(--toggle-height);
    left: 0;
    background: linear-gradient(0deg, #D8D2CB 0%, transparent 40%);
}

.card-info p {
    font-size: 13px;
}


.card-info h3 {
    text-align: center;
    margin-bottom: 5px;
}

.card-info hr {
    border-top: 1px solid #979797;
    margin: 10px 0;
}

.card-gallery {
    position: relative;
}

.info-summary {
    font-style: italic;
}

.card-info-toggle {
    position: absolute;
    display: flex;
    justify-content: center;
    font-size: 18px;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--toggle-height);
    background: #D8D2CB;
    cursor: pointer;
}

.card-info-toggle i {
    align-self: center;
}

.card-info-open {
    z-index: 1;
    max-height: none;
    position: absolute;
    width: 340px;
    box-shadow: 0px 0px 3px 0px rgba(51, 51, 51, 0.5);
    margin: -5px;
    margin-top: 0;
}

.card-info-open .card-info-text {
    padding-top: 5px;
    padding-right: 5px;
    padding-left: 5px;
}

.card-info-toggle-close {
    display: none;
}

.card-info-open .card-info-toggle-open {
    display: none;
}

.card-info-open .card-info-toggle-close {
    display: block;
}

.card-info-text {
    padding-bottom: var(--toggle-height);
}

.card-actions {
    margin-top: 15px;
    text-align: center;
}
.card-actions a {
    text-decoration: none;
    font-size: 13px;
    color: #eee;
    background-color: #398AB9;
    display: inline-block;
    border-radius: 4px;
    padding: 0 12px;
    line-height: 24px;
}

.card-info-open:after {
    background: none;
}

.overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background-color 300ms;
}

.overlay-visible {
    background-color: rgba(0, 0, 0, .7);
}

.spacer {
    height: 250px;
}

.business-info {
    text-align: center;
}

@media only screen and (max-width: 833px) {
    .hero {
        display: block;
        text-align: center;
    }

    .hero-info {
        margin: 0 auto;
        max-width: 400px;
    }

    .photo-wrapper {
        margin-bottom: 30px;
    }
}

@media only screen and (max-width: 600px) {
    .link {
        width: 100%;
    }
}


@media only screen and (max-width: 700px) {
    .cards {
        justify-content: center;
    }
    .card {
        /*width: 100%;*/
        margin: 0 30px;
    }
}