/* Page Builder blocks (craft/templates/_includes/blocks/) */

.page-blocks {
    margin-top: 24px;
}

.page-block {
    margin-bottom: 40px;
}

.page-block-meta,
.page-block-caption {
    color: #888;
    font-size: 13px;
    line-height: 20px;
}

.page-block-meta {
    margin-left: 12px;
}

.page-block-caption {
    margin-top: 10px;
}

/* Text: the theme zeroes every margin and sets li { font-size: 0 },
   so Redactor content needs its own type scale */
/* The theme also gives headings 20px of bottom padding */
.page-block-text h2,
.page-block-text h3 {
    padding-bottom: 0;
}

.page-block-text h2 {
    margin: 48px 0 14px;
    font-size: 30px;
    line-height: 38px;
}

.page-block-text h3 {
    margin: 28px 0 8px;
    font-size: 20px;
    line-height: 28px;
}

.page-block-text h2:first-child,
.page-block-text h3:first-child {
    margin-top: 0;
}

.page-block-text p {
    margin: 0 0 16px;
}

.page-block-text ul,
.page-block-text ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.page-block-text ul {
    list-style: disc;
}

.page-block-text ol {
    list-style: decimal;
}

.page-block-text li {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 26px;
}

.page-block-text a {
    text-decoration: underline;
}

.page-block-text > .text > :last-child {
    margin-bottom: 0;
}

/* Text in a card layout: each <h3> section becomes a card */
.page-block-text .text {
    max-width: none;
}

.page-block-text .text > p,
.page-block-text .text > ul,
.page-block-text .text > ol {
    max-width: 820px;
}

.page-block-cards {
    display: flex;
    flex-wrap: wrap;
    margin: 8px -12px 0;
}

.page-block-card {
    margin: 0 12px 24px;
    padding: 24px 24px 8px;
    border: 1px solid #e3e3e3;
    border-top: 3px solid #F94031;
    box-sizing: border-box;
}

.page-block-cards-2 .page-block-card {
    width: calc(50% - 24px);
}

.page-block-cards-3 .page-block-card {
    width: calc(33.333% - 24px);
}

/* Cards hold their own spacing; the first heading sits at the top */
.page-block-text .page-block-card h3 {
    margin-top: 0;
}

.page-block-text .page-block-card li {
    font-size: 15px;
    line-height: 23px;
}

@media only screen and (max-width: 768px) {
    .page-block-cards-3 .page-block-card {
        width: calc(50% - 24px);
    }
}

@media only screen and (max-width: 580px) {
    .page-block-cards .page-block-card {
        width: 100%;
    }
}

/* Photo gallery */
.page-block-gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
    padding: 0;
    list-style: none;
}

.page-block-gallery li {
    width: 33.333%;
    padding: 0 8px 16px;
    box-sizing: border-box;
}

.page-block-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

@media only screen and (max-width: 768px) {
    .page-block-gallery li {
        width: 50%;
    }
}

@media only screen and (max-width: 479px) {
    .page-block-gallery li {
        width: 100%;
    }
}

/* Video: 16:9 responsive embed */
.page-block-embed {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #000;
}

.page-block-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-block-video-file {
    display: block;
    width: 100%;
    max-height: 80vh;
    background: #000;
}

/* Design Awards winners grid (awardWinners / awardWinner).
   Cards already carry 32px of bottom padding, so levels need less on top. */
.award-level {
    margin-top: 16px;
}

.award-level:first-child {
    margin-top: 0;
}

.award-winners {
    display: flex;
    flex-wrap: wrap;
    margin: 16px -12px 0;
    padding: 0;
    list-style: none;
}

/* Undo the theme's li { font-size: 0 } */
.award-winners li {
    width: 33.333%;
    padding: 0 12px 32px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 26px;
}

.award-winner-reel {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
    background: #000;
}

/* contain, so the portrait Stroud reel is letterboxed instead of cropped */
.award-winner-reel video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.award-winner h3 {
    margin: 12px 0 0;
    font-size: 20px;
    line-height: 28px;
}

.award-winner-firm {
    margin: 2px 0 0;
    font-family: 'architype bold', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
}

.award-winner-credits {
    margin: 6px 0 0;
    color: #888;
    font-size: 13px;
    line-height: 20px;
}

/* Set by awardWinners when three columns would leave one card alone */
.award-winners-two li {
    width: 50%;
}

@media only screen and (max-width: 768px) {
    .award-winners li {
        width: 50%;
    }
}

@media only screen and (max-width: 479px) {
    .page-block-text h2 {
        font-size: 24px;
        line-height: 30px;
    }

    .award-winners li {
        width: 100%;
    }
}

/* Sponsors page: a single combined logo graphic, shown large (sponsors/index.html) */
.sponsors-feature {
    margin-top: 16px;
}

.sponsors-feature img {
    display: block;
    width: 100%;
    max-width: 1050px;
    height: auto;
}
