/**
 * @package Golden_Retriever
 */

/*
Widget Styles
*/
.GoldenRetriever-all {
    display: inline-block;
}
.GoldenRetriever-all:after{
    content: '';
    background: url('https://gabarit-adaptatif.uqam.ca/statique/images/icones/svg/fleche_bleu_uqam.svg') left center no-repeat;
    background-size: 6px;
    margin-left: 0.35rem;
    padding: 0.25rem;
}
.GoldenRetriever-container{
    width: 100%;
}
.GoldenRetriever-img {
    max-width: inherit;
    width: 100%;
}
.GoldenRetriever-titre{
    margin-top: 0.625rem;
}
.GoldenRetriever-extrait{
    margin-top: 0.625rem;
}
.GoldenRetriever-date {
    font-size: 0.875em;
    margin-top: 0.625rem;
}
@media only screen and (max-width : 567px){
    .GoldenRetriever-img {
        margin-bottom: 1.25rem;
    }
}
@media only screen and (min-width : 568px) and (max-width : 767px) {
    .GoldenRetriever-img{
        display: block;
        float: left;
        width: 30%;
        margin-right: 2rem;
    }
    .GoldenRetriever-content:after {
        content: '';
        display: table;
        clear: both;
    }
    @supports (display: grid) {
        .GoldenRetriever-wrapper.images .GoldenRetriever-item {
            display: grid;
            grid-template-columns: 1fr 2fr;
            grid-gap: 2em;
        }
        .GoldenRetriever-img{
            float: none;
            width: inherit;
            margin-right: inherit;
            max-width: 100%;
        }
    }
}
@media only screen and (max-width : 767px) {
    .GoldenRetriever-all{
        text-align: right;
    }
    .GoldenRetriever-container {
        width: 100%;
        margin: 0 0 1.25rem;
    }
    .GoldenRetriever-item {
        width: 100%;
        margin: 0 0 1.25rem;
        padding: 0 0 1.375rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    }
    .GoldenRetriever-aImg {
        display: block;
    }
    .GoldenRetriever-titre {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
}
@media only screen and (min-width : 768px) {
    .GoldenRetriever .widget-title {
        margin-bottom: 1.875rem;
        display: inline-block;
        padding-right: 2rem;
        border-right: 1px solid rgba(0, 0, 0, 0.15);
        line-height: 2.25rem;
    }
    .GoldenRetriever-all{
        font-size: 1.125rem;
        margin-left: 2rem;
    }
    .GoldenRetriever-container {
        border-top: none;
        padding-top: 0;
    }
    .GoldenRetriever-container:after {
        content: '';
        display: table;
        clear: both;
    }
    .GoldenRetriever-item {
        display: block;
        float: left;
        margin-right: 2rem;
        width: calc(33.3% - 2rem);
    }
    @supports (display: grid) {
        .GoldenRetriever-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            grid-gap: 1.875em;
            width: 100%;
            margin: 0 0 1.25rem;
            padding: 0 0 1.375rem;
        }
        .GoldenRetriever-item {
            display: block;
            float: none;
            width: inherit;
            margin-right: inherit;
        }
    }
    .GoldenRetriever-aImg {
        display: block;
        margin-bottom: 1.875rem;
    }
    .GoldenRetriever-titre {
        font-size: 1.5rem;
        font-weight: normal;
        line-height: 2rem;
    }
}
/*
TODO Styles pour uqam.tv
Décider si :
-On insère la classe sur item (ex: .GoldenRetriever-item.uqamtv)
-On détecte l'url et si c'est tv.uqam.ca, et on rajoute la classe sur l'image (ex: .GoldenRetriever-img.uqamtv)
*/

/*
Admin Widget Styles
*/
div[id*="_golden_retriever"] details {
    margin-bottom: 1rem;
}
div[id*="_golden_retriever"] details p {
    margin-bottom: 0.25rem;
}
div[id*="_golden_retriever"] details[open] summary {
    margin-bottom: 1rem;
}