/* Podcast pages.
   The episode list reuses the article rows of the site (columns-10, text-block-18 / 19 / 20, downloadbutton);
   this file adds the cover image, and the page of a single episode with its large player. */

/* ---- Cover image with a play mark (episode list and "More episodes") ---- */

.podcast-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 56.25%;
    background-color: #1d1d1d;
    overflow: hidden;
}

.podcast-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4vw;
    height: 4vw;
    min-width: 40px;
    min-height: 40px;
    margin: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%);
    transition: background-color 0.2s ease;
}

.podcast-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    border-style: solid;
    border-width: 0.7em 0 0.7em 1.15em;
    border-color: transparent transparent transparent #fff;
    font-size: 12px;
    transform: translate(-50%, -50%);
}

a:hover .podcast-play,
a:focus-visible .podcast-play {
    background-color: #b23427;
}

/* ---- Episode list ---- */

.podcast-title-link {
    display: block;
    color: #000;
    text-decoration: none;
}

.podcast-title-link:hover {
    color: #b23427;
}

.podcast-guest {
    margin-top: 0.6vw;
    font-family: 'Source Sans Pro', sans-serif;
    color: #6f6f6f;
    font-size: 1vw;
    line-height: 1.6vw;
}

.podcast-guest-name {
    color: #000;
    font-weight: 700;
}

/* The list shows the first lines only; the whole description is on the episode page.
   Line breaks typed in the description are kept here too. */
.podcast-teaser {
    line-height: 1.6;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

/* A preview text written for the list is shown in full. */
.podcast-teaser-full {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* The heading above the articles. Its text style is the site's page title (teamtoph1),
   so it matches the "Podcast" title; this only adds the separating line. */
.podcast-section-title {
    padding-top: 1vw;
    border-top: 1px solid #e2e2e2;
}

/* ---- Episode page ---- */

.podcast-watch {
    margin-top: 2vw;
    margin-bottom: 4vw;
}

.podcast-back {
    display: inline-block;
    margin-bottom: 1.2vw;
    font-family: 'Source Sans Pro', sans-serif;
    color: #6f6f6f;
    font-size: 0.9vw;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
}

.podcast-back:hover {
    color: #b23427;
}

/* Keeps the player at 16:9, whatever size the platform's own embed code asks for. */
.podcast-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
}

.podcast-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.podcast-watch-body {
    display: flex;
    align-items: flex-start;
    margin-top: 2vw;
}

.podcast-watch-main {
    flex: 1 1 0;
    min-width: 0;
}

.podcast-watch-title {
    margin: 0.5vw 0 0;
    font-family: 'Cormorant Garamond', sans-serif;
    color: #000;
    font-size: 2.6vw;
    line-height: 3.2vw;
    font-weight: 500;
}

/* The description written in the rich text editor. Its spacing is relative to the text size,
   so a line height set in the editor behaves the same on every screen. */
.podcast-rich {
    max-width: 48vw;
    margin-top: 1.4vw;
    line-height: 1.6;
}

.podcast-rich p,
.podcast-rich ul,
.podcast-rich ol,
.podcast-rich blockquote {
    margin: 0 0 0.7em;
}

.podcast-rich ul,
.podcast-rich ol {
    padding-left: 1.4em;
}

.podcast-rich h3 {
    margin: 0.9em 0 0.4em;
    font-family: 'Cormorant Garamond', sans-serif;
    color: #000;
    font-size: 1.5em;
    line-height: 1.3;
    font-weight: 500;
}

.podcast-rich h4 {
    margin: 0.9em 0 0.3em;
    color: #000;
    font-size: 1.05em;
    line-height: 1.4;
    font-weight: 700;
}

.podcast-rich blockquote {
    padding: 0 0 0 1em;
    border-left: 3px solid #e2e2e2;
    font-size: inherit;
    line-height: inherit;
}

.podcast-rich a {
    color: #b23427;
}

.podcast-rich > :first-child {
    margin-top: 0;
}

.podcast-rich > :last-child {
    margin-bottom: 0;
}

.podcast-more {
    flex: 0 0 30%;
    max-width: 30%;
    margin-left: 4vw;
}

.podcast-more-title {
    margin: 0 0 1.2vw;
    font-family: 'Source Sans Pro', sans-serif;
    color: #6f6f6f;
    font-size: 0.8vw;
    line-height: 1.4vw;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.podcast-more-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2vw;
    color: #000;
    text-decoration: none;
}

.podcast-more-item .podcast-thumb {
    flex: 0 0 42%;
    width: 42%;
    padding-top: 23.625%;
}

.podcast-more-item .podcast-play {
    width: 2.2vw;
    height: 2.2vw;
    min-width: 28px;
    min-height: 28px;
}

.podcast-more-item .podcast-play::after {
    font-size: 8px;
}

.podcast-more-text {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 1vw;
}

.podcast-more-name {
    display: block;
    font-family: 'Cormorant Garamond', sans-serif;
    font-size: 1.2vw;
    line-height: 1.5vw;
    font-weight: 500;
}

.podcast-more-item:hover .podcast-more-name {
    color: #b23427;
}

.podcast-more-date {
    display: block;
    margin-top: 0.3vw;
    font-family: 'Source Sans Pro', sans-serif;
    color: #6f6f6f;
    font-size: 0.8vw;
    line-height: 1.3vw;
}

/* ---- Tablet and below: everything in one column ---- */

@media screen and (max-width: 991px) {
    .podcast-guest {
        margin-top: 1vw;
        font-size: 2vw;
        line-height: 3vw;
    }

    .podcast-section-title {
        padding-top: 3vw;
    }

    .podcast-watch {
        margin-top: 3vw;
        margin-bottom: 8vw;
    }

    .podcast-back {
        margin-bottom: 2.4vw;
        font-size: 1.8vw;
    }

    .podcast-watch-body {
        display: block;
        margin-top: 3vw;
    }

    .podcast-watch-title {
        margin-top: 1.2vw;
        font-size: 5vw;
        line-height: 6vw;
    }

    .podcast-rich {
        max-width: none;
        margin-top: 2.4vw;
    }

    .podcast-more {
        max-width: none;
        margin-top: 6vw;
        margin-left: 0;
        padding-top: 4vw;
        border-top: 1px solid #e2e2e2;
    }

    .podcast-more-title {
        margin-bottom: 3vw;
        font-size: 2vw;
        line-height: 3vw;
    }

    .podcast-more-item {
        margin-bottom: 3vw;
    }

    .podcast-more-text {
        padding-left: 3vw;
    }

    .podcast-more-name {
        font-size: 3.2vw;
        line-height: 4vw;
    }

    .podcast-more-date {
        margin-top: 0.8vw;
        font-size: 2vw;
        line-height: 3vw;
    }
}

@media screen and (max-width: 479px) {
    .podcast-guest {
        margin-top: 1.5vw;
        font-size: 3vw;
        line-height: 4vw;
    }

    .podcast-back {
        margin-bottom: 3vw;
        font-size: 2.8vw;
    }

    .podcast-watch-title {
        margin-top: 2vw;
        font-size: 7vw;
        line-height: 8.4vw;
    }

    .podcast-rich {
        margin-top: 3vw;
    }

    .podcast-more-title {
        font-size: 3vw;
        line-height: 4vw;
    }

    .podcast-more-name {
        font-size: 4.4vw;
        line-height: 5.4vw;
    }

    .podcast-more-date {
        font-size: 3vw;
        line-height: 4vw;
    }
}
