@import "glide.css";

@media (min-width: 1030px) {
    body article.realisations > .is-layout-flex {
        flex-direction: row;
    }
}

/** Header SVG fill **/

@media (min-width: 1030px) {
    .postid-1 header[role="banner"] .logo,
    .postid-1 #menu-toggle,
    .postid-1307 header[role="banner"] .logo,
    .postid-1307 #menu-toggle,
    .postid-1456 header[role="banner"] .logo,
    .postid-1456 #menu-toggle,
    .postid-12475 header[role="banner"] .logo,
    .postid-12475 #menu-toggle,
    .postid-11450 header[role="banner"] .logo,
    .postid-11450 #menu-toggle,
    .postid-9801 header[role="banner"] .logo,
    .postid-9801 #menu-toggle,
    .postid-9600 #menu-toggle,
    .postid-9887 header[role="banner"] .logo,
    .postid-9887 #menu-toggle,
    .postid-9546 header[role="banner"] .logo,
    .postid-1565 header[role="banner"] .logo,
    .postid-1565 #menu-toggle,
    .postid-10459 header[role="banner"] .logo,
    .postid-10314 header[role="banner"] .logo,
    .postid-10314 #menu-toggle,
    .postid-10394 header[role="banner"] .logo,
    .postid-10394 #menu-toggle,
    .postid-10019 header[role="banner"] .logo,
    .postid-10019 #menu-toggle,
    .postid-10250 header[role="banner"] .logo,
    .postid-10250 #menu-toggle,
    .postid-9480 header[role="banner"] .logo,
    .postid-9480 #menu-toggle,
    .postid-9935 header[role="banner"] .logo,
    .postid-9935 #menu-toggle,
    .postid-9838 header[role="banner"] .logo,
    .postid-9838 #menu-toggle,
    .postid-9787 header[role="banner"] .logo,
    .postid-15161 #menu-toggle,
    .postid-15161 header[role="banner"] .logo {
        fill: white;
    }
}

header[role="banner"] .wp-post-image {
    width: 100%;
    height: auto;
    margin-top: 40px;
}

main {
    display: flex;
    flex-direction: column;
}

article.realisations {
    padding: 0;
    order: 1;
    margin-bottom: 40px;
}

p.title {
    font-size: 32px;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
    padding: 0 20px;
    color: var(--z-global-color-text);
}

article.realisations section:not(.boxed) {
    padding: 0;
    background-color: var(--z-global-color-bg1);
}

article.realisations section.bg-white {
    background-color: white;
}

article.realisations section#intro {
    background-color: white;
}

section#intro .wp-block-columns {
    gap: 20px;
}

section#intro .wp-block-columns > .wp-block-column:first-child,
section#intro .wp-block-columns .wp-block-column:last-child {
    padding: 20px;
}

section#intro img,
section#intro video {
    max-width: 100%;
}

section#intro h1,
#scr h1 {
    font-size: 32px;
    text-transform: none;
    font-weight: 500;
    margin: 0;
    text-align: left;
}

section#intro:not(.center) h1 {
    text-align: left;
}

section.is-layout-grid .wp-block-image {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

article section#portfolio img {
    height: 100%;
    object-fit: cover;
}

section.is-layout-grid .wp-block-group {
    padding: 8%;
    display: flex;
    align-items: center;
}

section#portfolio .grid1 {
    background-color: var(--z-global-color-primary);
    color: white;
}

section#portfolio .grid1 a {
    color: white;
}

section#portfolio .grid1 .wp-block-buttons {
    justify-content: flex-start;
}

section.is-layout-grid .wp-block-group .wp-block-buttons {
    margin-top: 40px;
}

section.is-layout-grid .wp-block-button__link {
    font-size: 22px;
    padding: 12px 24px;
}

section#portfolio .grid1 .wp-block-button__link {
    color: white;
    border-color: white;
}

.wp-block-button__link svg {
    fill: var(--z-global-color-primary);
    margin-left: 10px;
}

section#portfolio .grid1 .wp-block-button__link svg,
.wp-block-button__link:hover svg {
    fill: white;
}

section#portfolio .grid1 .wp-block-button__link:hover {
    color: var(--z-global-color-primary);
    background-color: white;
}

section#portfolio .grid1 .wp-block-button__link:hover svg {
    fill: var(--z-global-color-primary);
}

#slider {
    order: 2;
}

#slider > p {
    font-size: 28px;
    font-weight: 500;
    text-align: center;
}

.post-navigation {
    width: 100%;
    order: 3;
}

.play-ytb {
    display: flex;
}

@media (min-width: 1030px) {
    header[role="banner"] {
        height: calc(100vh - 255px);
    }
    header[role="banner"] .wp-post-image {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        margin-top: 0;
    }
    article.realisations {
        padding: 0;
    }
    p.title {
        font-size: 50px;
        padding: 0 calc((100vw - 1030px) / 2);
    }
    section#intro .wp-block-columns {
        gap: 80px;
    }
    section#intro .wp-block-columns > .wp-block-column:first-child {
        flex-basis: 40%;
    }
    section#intro .wp-block-columns > .wp-block-column:last-child {
        flex-basis: 60%;
    }
    section#intro img,
    section#intro video {
        width: 100%;
        height: 450px;
        object-fit: cover;
        object-position: center center;
    }
    section#intro .logo img,
    article section#portfolio .logo img,
    .logo img {
        object-fit: contain;
        max-height: 250px;
    }
    section#intro .play-ytb img {
        height: auto;
    }
    section.is-layout-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
        grid-auto-rows: max-content;
    }
    article section.is-layout-grid img {
        width: 100%;
    }
    section#portfolio .wp-block-image {
        height: 100%;
    }
    section.is-layout-grid .grid1 {
        grid-column: span 2 / span 2;
        grid-row: span 2 / span 2;
    }
    section#portfolio .grid1 .wp-block-buttons {
        margin-top: 80px;
    }
    .grid-3-images .grid2,
    .grid-4-images .grid2 {
        grid-column-start: 3;
    }
    .grid-2-images .grid2 {
        grid-column: span 2 / span 2;
        grid-column-start: 3;
    }
    .grid-1-image .grid2 {
        grid-column: span 2 / span 2;
        grid-row: span 2 / span 2;
        grid-column-start: 3;
    }
    .grid-3-images .grid3,
    .grid-4-images .grid3 {
        grid-column-start: 4;
    }
    .grid-2-images .grid3 {
        grid-column: span 2 / span 2;
        grid-column-start: 3;
        grid-row-start: 2;
    }
    .grid-3-images .grid4 {
        grid-column: span 2 / span 2;
        grid-column-start: 3;
        grid-row-start: 2;
    }
    .grid-4-images .grid4 {
        grid-column-start: 3;
        grid-row-start: 2;
    }
    .grid-4-images .grid5 {
        grid-column-start: 4;
        grid-row-start: 2;
    }
    .glide__track {
        padding: 20px 0;
    }
}

@media (min-width: 1480px) {
    section#intro {
        padding: 80px calc((100vw - 1420px) / 2) 80px;
    }
}

@media (min-width: 1920px) {
    section#intro .wp-block-columns > .wp-block-column:first-child {
        padding: 0;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    position: relative;
    background: #000;
    padding: 0;
    max-width: 90%;
    max-height: 90%;
}

.modal iframe {
    width: 1200px;
    height: 815px;
    border: none;
}

.close-modal {
    position: absolute;
    top: 0;
    right: 30px;
    color: #fff;
    background: none;
    border: none;
    font-size: 60px;
    cursor: pointer;
}

.play-btn {
    fill: #fff;
}

.play-ytb::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 1;
}

.play-video::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 5px);
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 1200px) {
    .modal iframe {
        width: 100vw;
        height: 56vw;
    }
}

#gallery {
    width: 100%;
    padding: 0;
}

#gallery .wp-block-image {
    width: 33%;
    padding: 10px;
}

/** Custom layouts **/

/* Grids */

@media (min-width: 1030px) {
    .postid-11450 .grid1,
    .postid-11832 .grid1,
    .postid-10314 .grid1,
    .postid-10250 .grid1 {
        grid-column: span 2 / span 2;
        grid-row: span 2 / span 2;
    }

    .postid-11450 .grid2,
    .postid-11832 .grid2,
    .postid-10314 .grid2,
    .postid-10250 .grid2 {
        grid-column-start: 3;
    }

    .postid-11450 .grid3,
    .postid-11832 .grid3,
    .postid-10314 .grid3,
    .postid-10250 .grid3 {
        grid-column-start: 3;
        grid-row-start: 2;
    }

    .postid-11450 .grid4,
    .postid-11832 .grid4,
    .postid-10314 .grid4,
    .postid-10250 .grid4 {
        grid-row: span 2 / span 2;
        grid-column-start: 4;
        grid-row-start: 1;
    }
}

/* Sections */

.postid-1 #intro p {
    text-align: left;
    width: 100%;
}

.postid-1 .wp-element-caption {
    padding: 20px;
    text-align: center;
    font-size: 35px;
}

.postid-1 #social img {
    position: absolute;
}

.postid-1 .wp-block-buttons {
    margin-bottom: 0;
}

.postid-1 #print .wp-block-heading::after {
    content: "";
    display: block;
    height: 2px;
    width: 100px;
    margin: 15px auto 0;
    background-color: var(--z-global-color-secondary);
}

.postid-1 #campaign .grid1.wp-block-gallery {
    flex-direction: column;
}

.postid-1 #campaign .grid2 .wp-block-gallery {
    gap: 20px;
}

.postid-1 #campaign .grid2 p.strong::before {
    content: "➔";
    margin-right: 10px;
}

.postid-1 #campaign .grid2 li {
    margin-bottom: 10px;
}

@media (min-width: 1030px) {
    .postid-1 section#intro {
        padding: 0 calc((100vw - 935px) / 2) 80px;
    }
    .postid-1 #social {
        grid-template-columns: repeat(5, 1fr);
    }

    .postid-1 #social .grid1 {
        grid-column: span 2 / span 2;
    }

    .postid-1 #social .grid2 {
        grid-column: span 3 / span 3;
        grid-column-start: 3;
    }
    .postid-1 #campaign .grid2 .wp-block-gallery img {
        max-height: 230px;
        object-fit: cover;
    }
}

.postid-1307 #social {
    background-color: white;
    text-align: center;
}

.postid-1307 #social img {
    aspect-ratio: 1;
    object-fit: cover;
}

.postid-1307 section#intro.bg-global-color-bg1 {
    background-color: var(--z-global-color-bg1);
}

@media (min-width: 1030px) {
    .postid-1307 #social {
        padding: 80px calc((100vw - 1140px) / 2);
    }
}

.postid-1307 .center .wp-block-list,
.postid-1456 .center .wp-block-list {
    text-align: left;
    max-width: 800px;
}

.postid-1565 #testimonials .play-ytb img,
.postid-1456 #video .play-ytb img,
.postid-10019 #intro .play-ytb img {
    object-fit: cover;
}

.postid-1565 #testimonials .play-ytb img {
    aspect-ratio: 1;
}

.postid-1456 #video .play-ytb img {
    aspect-ratio: 16/9;
}

.postid-1565 #testimonials .wp-block-heading,
.postid-1456 #video .wp-block-heading {
    margin-bottom: 0;
}

.postid-1456 #print .grid1 {
    background-color: #c3cdd5;
}

.postid-10019 #intro .play-ytb img {
    aspect-ratio: 4/3;
}

@media (min-width: 1030px) {
    .postid-1456 #web img {
        max-height: 600px;
        object-fit: cover;
    }

    .postid-1456 #print .grid1 img {
        position: absolute;
        height: 100%;
        width: auto;
        left: 33%;
    }
}

.postid-1660 #video .wp-block-heading {
    margin: 0;
}

.postid-1660 #print .grid1 img {
    max-width: 480px;
}

.postid-9824 #print #gallery {
    width: 100vw;
}

.postid-10531 section#intro .wp-block-columns {
    justify-content: center;
}

.postid-10531 section#intro h1 {
    text-align: center;
}
