.capped-width {
    margin: 0px 80px;
}


/** 
 * main_category grid 
 */


/** 
 * swiper of main_category 
 */
 .swiper-tag--main_category {
     padding:80px;
 }
 
.tag--main_category {
    width: auto;
    border: 1px solid var(--theme--blue);
    border-radius: 5px;
    padding:20px;
    color:var(--theme--blue);
    text-decoration:none;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
.tag--main_category.is-active-category {
    background: var(--theme--blue);
    color:white;
}

.tag--main_category:hover {
    color:white;
    background-color:var(--theme--blue);
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.tag--main_category.is-active-category:hover {
    background-color:#ffffff;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
    color:var(--theme--blue);
}

/* FILTRES AVANT DÉPLACEMENT FICHIER CORRESPONDANT */

.assets-filters__title {
    padding:30px 80px 0px 80px;
    font-size:22px;
    font-weight:400;
    margin:0;
}

.assets-filters {
    display:flex;
    flex-direction:row;
    max-width:100%;
    margin:30px 80px 45px 80px;
    box-shadow: 0px 4px 9px 0px rgba(0, 0, 0, 0.1);
    padding:0px;
}

.assets-filters .wpgb-facet:empty {
    display: none;
}

.assets-filters.overflow-stopper > .wpgb-facet > fieldset {
     opacity: 0 !important;
     margin:55px;
}

.assets-filters.overflow-stopper > .wpgb-facet::before {
    content: "";
    width: 30px;
    height: 30px;
    position: absolute;
    left:46%;
    top:33px;
    border-radius: 20px;
    z-index: 1000;
    border: 3px solid white;
    border-top: 3px solid var(--theme--red);
    box-sizing: border-box;
    animation: 600ms linear 0s loading-circle infinite forwards normal running;
}
@keyframes loading-circle {
    from {
        transform: rotateZ(0deg);
    }
    to {
        transform: rotateZ(360deg);
    }
}

.assets-filters .assets-filters__img {
    height:25px;
}

.assets-filters__img-container {
    max-width:96px;
    width:96px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-right:1px solid #D9D9D9;
}

.assets-filters .wpgb-facet {
    flex-grow:1;
}

.assets-filters .wpgb-select {
    border:none;
    border-radius:0px;
    padding:30px;
}

.assets-filters .wpgb-facet:not(:last-child) {
    border-right:1px solid #D9D9D9;
}

.assets-filters .wpgb-select-toggle svg path,
.assets-filters .wpgb-select-clear svg path {
    fill:var(--theme--corail);
}

.assets-filters .wpgb-select-search input::placeholder {
    font-weight:300;
    color: #000;
    font-size: 18px;
}

.assets-filters .wpgb-select-separator {
    display:none;
}

.assets-filters .wpgb-select-search input[type='text'] {
    padding:0;
    margin:0;
}

.wpgb-select-dropdown {
    margin:0 !important;
    max-height:none !important;
    box-shadow: 0px 4px 9px 0px rgba(0, 0, 0, 0.1) !important;
}

.wpgb-select-dropdown ul {
    padding:0;
}

.wpgb-select-dropdown .wpgb-select-item {
    padding:30px;
    text-transform: none;
}

.wpgb-select-dropdown .wpgb-select-item:not(:last-child) {
    border-bottom: 1px solid #D9D9D9;
}

.wpgb-select-dropdown .wpgb-select-item::before,
.wpgb-select-dropdown .wpgb-select-item::after {
    opacity:0;
}

.assets-filters .wpgb-select-value {
    display:none !important;
}

.wpgb-facet .wpgb-button[aria-pressed="true"] {
    background-color:var(--theme--red) !important;
    border-color:var(--theme--red) !important;
}

.wpgb-inline-list {
    margin:0px 80px 40px 80px!important;
}

.wpgb-select-placeholder .wpgb-select-values>div+.wpgb-select-search input {
    width:100% !important;
}

.assets-filters .wpgb-select-remove svg path {
    color:white;
}

.category-swiper-button-prev {
    display:flex;
    align-items:center;
    transition: background-color 0.4s ease-in-out;
    z-index:4;
    /*padding:0px 45px;*/
}

.category-swiper-button-next {
    display:flex;
    justify-content:end;
    align-items:center;
    transition: background-color 0.4s ease-in-out;
    z-index:4;
    /*padding:0px 45px;*/
}

.category-swiper-button {
    pointer-events: none;
}

.category-swiper-button .category-swiper-button-layout {
    border:1px solid var(--theme--blue);
    cursor:pointer;
}

.category-swiper-button:hover .category-swiper-button-layout {
    background-color:#ffffff;
    transition: background-color 0.4s ease-in-out;
}

.category-swiper-button:hover .category-swiper-svg .category-swiper-svg-path {
    stroke:var(--theme--blue);
}

.category-swiper-button-layout {
    pointer-events:all;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    height:30px;
    width:30px;
    background-color:var(--theme--blue);
    border:1px solid var(--theme--blue);
    transition: background-color 0.4s ease-in-out;
}

.category-swiper-button-prev {
    position:absolute;
    left:0px;
    top:50%;
    transform:translateY(-50%);
    background: rgb(255,255,255);
    background: linear-gradient(90deg, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
}

.category-swiper-button-next {
    position:absolute;
    right:0px;
    top:50%;
    transform:translateY(-50%);
    background: rgb(255,255,255);
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 50%);
}

.swiper-button-disabled {
    display:none;
}

.category-swiper-button {
    height:80px;
    width:100px;
    justify-content:center;
}

.category-swiper-button-prev .category-swiper-button-layout-prev-svg {
    margin-right:2px;
}

.category-swiper-button-next .category-swiper-button-layout-next-svg {
    margin-left:2px;
}

/* === POP-IN === */

.pop-in-asset__background {
    width:100%;
    height:100vh;
    position:fixed;
    /*display:flex;*/
    align-items:center;
    justify-content:center;
    z-index:10;
    top:0;
    background-color:rgba(0, 0, 0, 0.4);
}
.pop-in-asset__background[data-visible="false"] {
    display: none;
}
.pop-in-asset__background[data-visible="true"] {
    display: flex;
}

.pop-in-asset__container {
    position:relative;
    background-color:#fff;
    width:80%;
    height:70%;
    display:flex;
    flex-direction:row;
    justify-content:space-between;
    gap:70px;
    border-radius:10px;
    padding:75px 90px;
}

.pop-in-asset__button-prev {
    position:fixed;
    top:50%;
    left:calc(10% + 30px);
    transform: translateY(-50%);
    transform-origin:top;
    transition: transform 0.4s ease-in-out;
    cursor:pointer;
    height:30px;
    width:30px;
}

.pop-in-asset__button-next {
    position:fixed;
    top:50%;
    right:calc(10% + 30px);
    transform: translateY(-50%);
    transform-origin:top;
    transition: transform 0.4s ease-in-out;
    cursor:pointer;
    height:30px;
    width:30px;
}
[data-prev-id="undefined"] [data-popin-prev],
[data-next-id="undefined"] [data-popin-next] {
    display: none;
}

.pop-in-asset__button-close {
    position:fixed;
    right:calc(10% + 30px);
    top:calc(15% + 35px);
    transition: transform 0.4s ease-in-out;
    cursor:pointer;
    height:30px;
    width:30px;
}

.pop-in-asset__button-next:hover,
.pop-in-asset__button-prev:hover {
    transform: scale(1.3) translateY(-50%) ;
    transition: transform 0.4s ease-in-out;
}

.pop-in-asset__button-close:hover {
    transform: scale(1.3) ;
    transform-origin: center;
    transition: transform 0.4s ease-in-out;
}

.pop-in-asset__text-content-container {
    display:flex;
    flex-direction:column;
    gap:20px;
    justify-content:space-between;
    width:50%;
}

.pop-in-asset__text-content-title {
    font-weight:700;
    font-size:22px;
    margin-bottom:30px;
}
.pop-in-asset__text-content-title:not([data-popin-filename]) {
    text-align: center;
    margin-bottom: 26px;
}

.pop-in-asset__text-content-desc {
    font-size:13px;
    font-weight:700;
    margin-bottom:10px;
}

.pop-in-asset__text-content-desc-content {
    font-size:13px;
    font-weight:400;
    max-height:80px;
    overflow:auto;
}

.pop-in-asset__text-content-container .shrink-0 {
    flex-shrink:0;
}

.pop-in-asset__container .reset_pop-in_button {
    background-color:unset;
    border:none;
}

.pop-in-asset__img-content {
    display:flex;
    flex-direction:column;
    width:50%;
    background-color:#dddddd;
    box-shadow: 0px 4px 9px 0px rgba(0, 0, 0, 0.1);
    border-radius:5px;
}

[data-popin-img] {
    flex: 1;
    display: flex;
    height: 100%;
}

.pop-in-asset__img-content .file-card__preview-img {
    display: block;
    width: 100%;
    height:100%;
    object-fit:contain;
}

.pop-in-asset__img-content-informations {
    display:flex;
    gap:20px;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    padding:10px 20px;
    background-color:white;
    border-radius:0px 0px 5px 5px;
}

.pop-in-asset__img-content-informations .pop-in-asset__img-text {
    font-weight:400;
}

.pop-in-asset__img-title {
    font-weight:600;
}


.pop-in-asset__img-content-buttons-layout {
    display:flex;
    gap:10px;
    align-items:center;
}

.pop-in-asset__img-content-buttons-layout .pop-in-asset__img-content-download {
    width:22px;
    object-fit:contain;
    transition: stroke 0.4s ease-in-out;
    stroke:#000;
    cursor:pointer;
}

.pop-in-asset__img-content-buttons-layout a:not([href=""]):hover .pop-in-asset__img-content-download .pop-in-asset-svg-path {
    stroke:var(--theme--red);
    transition: stroke 0.4s ease-in-out;
}

/** 
 * CPT asset elements grid 
 */
.wpgb-content.wpgb-grid-atlantic_assets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    /*grid-template-rows: 350px;*/
    grid-gap: 20px;
    margin-bottom:40px;
}

.wpgb-content.wpgb-grid-atlantic_assets p {
    grid-column-start:1;
    grid-column-end:-1;
    text-align:center;
}

.file-card {
    display: flex;
    flex-flow: column nowrap;
    
    position: relative;
    
    
    border-radius: 34px 34px 0px 34px;
    /* overflow: hidden; */
    box-shadow: 0px 4px 9px 0px rgba(0, 0, 0, 0.05);
    cursor:pointer;
}
.file-card > .file-card__preview {
    aspect-ratio: 298 / 274;
}
.file-card:hover > .picto-card__name {
    opacity: 1;
}
.file-card__preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    background-color: var(--theme--grey);
    
    width: 100%;
    
    
    border-radius: 34px 34px 0px 0px;
    overflow-hidden;
}
.file-card__preview::after {
    content: "";
    position: absolute;
    inset: 33% 0px 0px;
    
    display: block;
    background-image: linear-gradient(to top, black, rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.2s ease 0s;
}
.file-card__preview:empty {
    display: flex;
    justify-content: center;
    align-items: center;
}
.file-card__preview:empty::before {
    width: 62%;
    content: attr(data-fileformat);
    background: var(--theme--red);
    
    
    font-family: 'Gilroy';
    font-weight: 600;
    font-size: 44px;
    line-height: 1em;
    color: var(--theme--white);
    text-transform: uppercase;
    padding: 0.15em 0px;
    text-align: center;
    border-radius: 5px;
}
.file-card__preview[data-fileformat="ai"]::before,
.file-card__preview[data-fileformat="psd"]::before {
    content: "";
    height: 62%;
    background-color: unset;
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    max-width: 80px;
}
.file-card__preview[data-fileformat="ai"]::before {
    background-image: url("../images/fileformats/ai.png");
}
.file-card__preview[data-fileformat="psd"]::before {
    background-image: url("../images/fileformats/psd.png");
}
[data-popin-fileformat="pptx"]::before { content: ""; }
[data-popin-fileformat="indd"]::before { content: "Adobe InDesign"; }
[data-popin-fileformat="jpeg"]::before { content: "Image JPEG"; }
[data-popin-fileformat="ai"]::before { content: "Adobe Illustrator"; }
[data-popin-fileformat="png"]::before { content: "Image PNG"; }
[data-popin-fileformat="pdf"]::before { content: "Adobe InDesign"; }
[data-popin-fileformat="zip"]::before { content: "Archive ZIP"; }
[data-popin-fileformat="psd"]::before { content: "Adobe Photoshop"; }
[data-popin-fileformat="mp4"]::before { content: "Vidéo MP4"; }
[data-popin-fileformat="ttf"]::before { content: ""; }

[data-popin-download-btn] {
    /*width: 29px;*/
    /*height: 29px;*/
    display: flex;
    justify-content: center;
    align-items: center;
    /*cursor: pointer;*/
    /*border-radius: 5px;*/
    
}
[data-popin-download-btn] > svg {
    pointer-events: none;
}
.file-card__input--download-btn[href=""],
[data-popin-download-btn][href=""] {
    background-color: var(--theme--grey-darker);
    opacity: 0.3;
    pointer-events: none;
}
[data-popin-download-btn][href=""] + [data-popin-checkbox] {
    display: none;
}
[data-popin-finish] {
    display: none;
}
[data-popin-finish][style="display: block;"] + .pop-in-asset__text-content {
    display: none;
}

[data-popin-filesize] {
    white-space: nowrap;
}
.guide-link {
    display: block;
    font-size: 13px;
    margin-bottom: 7px;
    padding: 8px 0px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #D9D9D9;
}


.file-card__preview-img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-height: 80%;
    max-width: 80%;
    pointer-events: none;
}
.file-card__preview--svg {
    object-fit: contain;
    padding: 16%;
    background-color: var(--theme--grey);
}
.file-card__actions {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    
    padding: 24px;
}
.file-card__name {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    
    font-size: 18px;
}
.file-card__input {
    accent-color: var(--theme--corail);
    width: 29px;
    height: 29px;
    
    flex: none;
}


.file-card__input--checkbox {
    position: absolute;
    bottom: 90px;
    right: 15px;
    
    opacity: 0;
    transition: opacity 0.2s ease 0s;
    
    /**/
    
    border: 1px solid var(--theme--corail);
    background: white;
    cursor: pointer;
    line-height: 0;
    outline: 0;
    padding: 0 !important;
    vertical-align: text-top;
    height: 25px;
    width: 25px;
    -webkit-appearance: none;
    opacity: .5;
    --primary: var(--theme--corail);
}

.file-card__input--checkbox-2 {
    position:relative;
    bottom:unset;
    right:unset;
}

.file-card__input--checkbox:checked {
    background-color: var(--theme--corail);
    opacity: 1;
}

.file-card__input--checkbox:before {
    content: '';
    position: absolute;
    right: 50%;
    top: 50%;
    width: 4px;
    height: 10px;
    border: solid #FFF;
    border-width: 0 2px 2px 0;
    margin: -1px -1px 0 -1px;
    transform: rotate(45deg) translate(-50%, -50%);
    z-index: 2;
}

.file-card__input--download-btn {
    background-color: var(--theme--corail);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 15px;
    border-radius: 5px;
}

.file-card:hover .file-card__preview::after,
.file-card.checked .file-card__preview::after {
    opacity: 0.4;
}
.file-card:hover .file-card__input--checkbox,
.file-card.checked .file-card__input--checkbox {
    opacity: 1;
}


/**
 * picto cards 
 */

.picto-card {
    position: relative;
    aspect-ratio: 1;
}
.picto-card .file-card__preview {
    height: 100%;
    
    border-radius: 35px 35px 0px 35px;
    overflow: hidden;
}
.picto-card .file-card__preview:empty::before {
    font-size: 1em;
}
.picto-card__preview-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.picto-card__name {
    font-size: 12px;
    font-weight: 600;
    line-height: auto;
    position: absolute;
    top: 0px;
    translate: -8px -50%;
    width: calc(100% + 16px);
    left: 0;
    background: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
}
.picto-card__actions {
    bottom: 10px;
    right: 10px;
    position: absolute;
    display: flex;
    flex-flow: row nowrap;
    column-gap: 10px;
}
.picto-card__name,
.picto-card__actions {
    opacity: 0;
    transition: opacity 0.2s ease 0s;
}

.picto-card:hover .picto-card__actions,
.picto-card:hover .picto-card__name,
.picto-card.checked .picto-card__actions {
    opacity: 1;
}

.picto-card:hover .picto-card__actions .file-card__input--checkbox {
    opacity:1;
}

.picto-card .picto-card__actions .file-card__input--checkbox {
    margin-top:2px;
}

.picto-card__name {
    pointer-events: none;
}
.picto-card:hover .picto-card__name {
    pointer-events: all;
}

.picto-card:hover .file-card__preview::after,
.picto-card.checked .file-card__preview::after {
    opacity: 0.25;
}

.picto-elements .wpgb-content.wpgb-grid-atlantic_assets {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 100px), 1fr));
}

label[for="file-card__input"] {
    font-size: 11px;
    font-weight: 700;
}


@media screen and (max-width:1100px) {
    
    [data-popin-img] > .file-card__preview {
		min-height: 250px;
	}
    
    /* === CPT asset elements grid === */
    
    .capped-width {
        margin:0px 30px;
    }
    
    /* === Swiper tag === */
    
    .swiper-tag--main_category {
        padding:30px 30px 30px 30px;
    }
    
    /* === Filters === */
    
    .assets-filters__title {
        padding:30px 30px 0px 30px;
    }
    .assets-filters__img-container {
        /*padding:30px;
        width:unset;
        max-width:unset;*/
        display:none;
    }
    .assets-filters {
        margin:30px;
        flex-direction:column;
    }
    .assets-filters .wpgb-facet:not(:last-child) {
        border-bottom:1px solid #D9D9D9;
        border-right:none;
    }
    .wpgb-inline-list {
        margin:30px !important;
    }
    .category-swiper-button {
        width:100px;
        padding:0px;
        justify-content:center;
    }
    .category-swiper-button-layout-next {
        margin-left:0px;
    }
    .category-swiper-button-layout-prev {
        margin-right:0px;
    }
    
    /* === POP-IN === */
    
    .pop-in-asset__container {
        padding:50px;
        flex-direction:column;
        gap:20px;
        height:80%;
        width:85%;
        justify-content:unset;
        overflow:auto;
    } 
    .pop-in-asset__img-content,
    .pop-in-asset__text-content-container {
        width:100%;
    }
    .pop-in-asset__text-content-container {
        height:calc(100% + 70px);
    }
    [data-popin-img] > .file-card__preview  {
        max-height:300px;
    }
    .pop-in-asset__text-content-title {
        font-size:16px;
        margin-bottom:15px;
    }
    .pop-in-asset__text-content-desc-content,
    .pop-in-asset__text-content-desc {
        font-size:11px;
    }
    .pop-in-asset__text-content-desc-content {
        max-height:unset !important;
    }
    .pop-in-asset__button-next {
        right:calc(7.5% + 10px);
    }
    .pop-in-asset__button-prev {
        left:calc(7.5% + 10px);
    }
    .pop-in-asset__button-close {
        right:calc(7.5% + 10px);
        top:calc(10% + 15px);
    }
}

@media (min-height:730px) and (max-height:860px) {
    .pop-in-asset__text-content-desc-content {
        max-height:140px;
    }
}

@media (min-height:861px) and (max-height:1015px) {
    .pop-in-asset__text-content-desc-content {
        max-height:230px;
    }
}

@media (min-height:1016px) and (max-height:1170px) {
    .pop-in-asset__text-content-desc-content {
        max-height:330px;
    }
}

@media screen and (min-height:1170px) {
    .pop-in-asset__text-content-desc-content {
        max-height:450px;
    }
}