/*                            */
/* Pina styles for Save Mode. */
/*                            */

@import 'variables';
@import 'typography_default.css';

// Pina Felxmodules Article image and Article Text 
.pina-image-wrapper {
    img {width: 100%}
    figure {
        margin: 0;
    }
    figcaption {
        font-size: 0.8em;
        opacity: 0.8;
        padding: 3px;
        text-align: left;
    }
}
.pina-image-left {
    float: left;
    margin: 0 1.3rem 0.5rem 0;
    max-width: $pina-fleximage-width;
    margin-left: -2.5rem; // 40px
}
.pina-image-right {
    float: right;
    margin: 0 0 0.5rem 1.3rem;
    max-width: $pina-fleximage-width;
    margin-right: -2.5rem; //40px
}
.pina-image-center {
    text-align: center;
    margin: 1em auto;
    max-width: $pina-fleximage-centered-width;
}


// Clear float after text and before image
.pina-text:after,
.clear-float {
    content: '';
    display: table;
    height: 1px;
    clear: both;
    width: 100%;
}
@media screen and (max-width: 767px) {
    .pina-image-left, .pina-image-right {
        margin: 10px auto;
        float: none;
        display: block;
    }
}
@media screen and (max-width: 300px) {
    .pina-image-left, .pina-image-right {
        max-width: 100%;
    }
}

// Pina Quote
.pina-quote {
    background-image: url("../images/quote.svg");
    background-repeat: no-repeat;
    background-position-x: left;
    background-position-y: top;
    font-size: 1.5rem;
    font-weight: bold;
    font-style: italic;
    padding: 2rem;

    .pina-quote-originator {
        display: block;
        font-weight: normal;
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
}

.pina-quote-left {
    float: left;
    margin: 0 1.3rem 0.5rem 0;
    max-width: $pina-fleximage-width;
    margin-left: -2.5rem; // 40px
}
.pina-quote-right {
    float: right;
    margin: 0 0 0.5rem 1.3rem;
    max-width: $pina-fleximage-width;
    margin-right: -2.5rem; //40px
}
.pina-quote-center {
    text-align: left;
    margin: 1em auto;
    max-width: $pina-fleximage-centered-width;

    .pina-quote {
        background-position-y: center;
        background-size: 20%;
        margin-left: 1rem;
        padding: 2rem 1rem 2rem 12rem;
    }
}


// Clear float after text and before quote
.pina-quote:after,
.clear-float {
    content: '';
    display: table;
    height: 1px;
    clear: both;
    width: 100%;
}
@media screen and (max-width: 767px) {
    .pina-quote-left, .pina-quote-right {
        margin: 10px auto;
        float: none;
        display: block;
    }
}
@media screen and (max-width: 300px) {
    .pina-quote-left, .pina-quote-right {
        max-width: 100%;
    }
}



// Pina Table of Contents
$toc-indent: 10px;
.pina-toc-output {
    a {
        display: block;
        // Indent for H3 to H6
        @for $i from 3 through 6 {
            &.toc_level_H#{$i} {
                padding-left: $toc-indent * $i; 
            }
        }
    }
}

// Video
iframe.big_16_9, iframe.small_16_9 {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
}
iframe.big_4_3, iframe.small_4_3 {
    aspect-ratio: 4 / 3 !important;
    width: 100% !important;
}

//Bootstrap 4 carousel

// center images into carousel frame
.carousel-item {
    text-align: center;
    background: #ccc;
    img {
        margin: auto;
    }
}

@media screen and (min-width: 1400px) {
    .carousel {
        margin-left: 50px;
        margin-right: 50px;
    }
}

@media screen and (max-width: 992px) {
    .carousel .carousel-item img {
        width: 100%;
    }
}