:root {
    --bgc-1 : #fff;
    --bgc-2: #d4d4d4;
    --primary-color: #e4e4e4;
    --secondary-color: #b4b4b4;
    --primary-digital-green: #00A35E;
    --secondary-digital-green: #DDFFF0;
    --terciary-digital-green: #193428;
    --primary-digital-green-50: #00A35E78;
    --secondary-digital-green-50: #DDFFF078;
    --terciary-digital-green-50: #19342878;
}
html {
    margin-top: 0 !important;
    color: var(--terciary-digital-green);
}
.wp-site-blocks {
    display: grid;
    width: calc(100% - 48px);
    margin: 0;
    padding: 0;
    height: 100%;
    grid-template-columns: calc(100% / 8) calc(100% / 2) calc(100% / 4) calc(100% / 8);
    grid-template-rows: auto;
    row-gap: 16px;
    column-gap: 16px;
    background-color: #ffffff;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
}

nav#main, main, article, .asides, footer {
    border-radius: 4px;
    background-color: #fff;
}

main, .asides, footer {
    border: 1px solid var(--primary-color);
}

.wp-site-blocks > * + * {
    margin-block-start: 0;
}

nav#main {
    grid-row: 1/2;
    grid-column: 2/5;
    height: 80px;
    display: flex;
    align-items: center;
    border: none;
    border-bottom: 1px solid var(--primary-color);
    border-radius: unset;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 1000000001;
}

nav#nav-formats {
    grid-row: 1/5;
    grid-column: 1/2;
    position: sticky;
    top: 0;
    height: 100vh;
    background-color: var(--bgc-1);
    border-right: 4px double var(--secondary-color);
}

@media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3), only screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3),(max-width: 767px) {
    nav#nav-formats {
        grid-row: 1/2;
        grid-column: 4/5;
        position: sticky;
        height: unset;
        top: 0;
        right: 0;
        z-index: 1000000001;
    }
}

nav#main #logo-wrapper {
    display: flex;
    flex-flow: row;
    align-items: center;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--terciary-digital-green);
    font-weight: 800;
    font-size: 28px;
}

nav#main .digitalgreen-logo {
    max-height: 60px;
    max-width: 160px;
    padding: 0 16px 0 0;
}


@media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3), only screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3),(max-width: 767px) {

    nav .digitalgreen-logo {
    max-width: 80px;
    margin: 8px auto;
    }
}

nav#main ul {
    list-style-type: none;
    padding: 0;
    display: flex;
}
@media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3), only screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3),(max-width: 767px) {
    nav#main {
        flex-wrap: wrap;
        grid-row: 1/2;
        grid-column: 1/5;
        height: 80px;
        display: flex;
        align-items: center;
        border: none;
        border-bottom: 1px solid var(--primary-color);
        border-radius: unset;
        justify-content: space-between;
        padding: 0 16px;
        position: sticky;
        top: 0;
        z-index: 1000000000;
    }
}

button#drp-btn {
    display: none;
}
h2#formats-title {
 padding-left: 24px;
 color: var(--terciary-digital-green);
}
ul#format {
    padding-left: 0px;
}

@media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3), only screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3),(max-width: 767px) {
    ul#format {
        position: relative;
        display: block;
        padding: 18px;
        display: none;
    }
    nav#main {
        flex-wrap: wrap;
        height: auto;
        padding: 16px;
        
    }
    ul#format.active {
        display: block;
        position: absolute;
        width: calc(100vw - 32px);
        top: 0;
        left: calc(-100vw - -48px);
        background-color: var(--bgc-1);
        margin-top: 0;
        padding: 16px;
        border-bottom: 1px solid var(--primary-digital-green);
        z-index: 1;
        padding-top: 80px;
    }
    ul#format.active li {
        display: block;
        width: 100%;
    }
    button#drp-btn {
        display: block;
        padding: 8px 16px;
        background-color: var(--primary-digital-green);
        background-size: 100% 9px;
        border: none;
        position: absolute;
        top: 8px;
        right: 8px;
        z-index: 2;
        color: var(--secondary-digital-green);
        font-weight: 600;
        border: none;
        border-radius: 4px;

    }
    button#drp-btn.close {
        position: absolute;
        height: 32px;
        width: 32px;
        top: 24px;
        right: 24px;
        z-index: 2;
        background:
        /* red */
        linear-gradient(135deg, rgb(255, 255, 255) 40%, transparent 40%) 0 100% no-repeat, 
        linear-gradient(45deg, rgb(255, 255, 255) 40%, transparent 40.1%) 0 0 no-repeat, 
        linear-gradient(45deg, var(--primary-digital-green-50) 50%, transparent 40.1%) 0 0 no-repeat, 
        linear-gradient(135deg, var(--primary-digital-green-50) 50%, transparent 40%) 0 100% no-repeat, 
        /*yellow */
        linear-gradient(225deg, rgb(255, 255, 255) 40%, transparent 40%) 0 0 no-repeat, 
        linear-gradient(135deg, rgb(255, 255, 255) 40%, transparent 40.1%) 100% 0% no-repeat, 
        linear-gradient(135deg, var(--primary-digital-green-50) 50%, transparent 40.1%) 100% 0% no-repeat, 
        linear-gradient(225deg, var(--primary-digital-green-50) 50%, transparent 40%) 0 0 no-repeat, 
        /* blue */
        linear-gradient(225deg, rgb(255, 255, 255) 40%, transparent 40.1%) 100% 100% no-repeat, 
        linear-gradient(-45deg, rgb(255, 255, 255) 40%, transparent 40.1%) 100% 0% no-repeat,
        linear-gradient(225deg, var(--primary-digital-green-50) 50%, transparent 40.1%) 100% 100% no-repeat, 
        linear-gradient(-45deg, var(--primary-digital-green-50) 50%, transparent 40.1%) 100% 0% no-repeat,
        /* green */
        linear-gradient(315deg, rgb(255, 255, 255) 40%, transparent 40.1%) 0% 100% no-repeat, 
        linear-gradient(45deg, rgb(255, 255, 255) 40%, transparent 40.1%) 100% 100% no-repeat,
        linear-gradient(315deg, var(--primary-digital-green-50) 50%, transparent 40.1%) 0% 100% no-repeat, 
        linear-gradient(45deg, var(--primary-digital-green-50) 50%, transparent 40.1%) 100% 100% no-repeat;
        background-size: 50% 50%
    }

h2#formats-title {
    display: none;
   }
}

ul li {
    display: inline-block;
    width: 100%;
}

ul li:not(.submenu) {
    margin-bottom: 16px;
}

ul li#display {
    padding-top: 16px;
    padding-left: 24px;
    width: calc(100% - 24px);
}

ul li#fifa,
ul li#in-image,
ul li#socialWall {
    padding-top: 16px;
    padding-left: 24px;
    width: calc(100% - 24px);
    border-top: 1px solid var(--primary-digital-green-50);
}

ul#format > li > ul {
    padding-left: 24px;
    padding-top: 8px;
}

li.submenu > span {
    display: inline-block;
    padding: 8px 8px;
    width: calc(100% - 16px);
    background: var(--secondary-digital-green-50);
    margin-left: 0;
}

ul > li.submenu,
ul > li#display {
    border-top: 1px solid var(--primary-digital-green-50);
}

.submenu ul li {
    display: block;
    width: max-content;
    padding: 0;
}

ul li#display:hover,
.submenu ul li:hover {
    color: var(--primary-digital-green);
}

li:not(.submenu) {
    font-size: 16px;
    font-weight: 600;
    display: block;
    cursor: pointer;
}

li:not(.submenu, #display) {}

@media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3), only screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3),(max-width: 767px) {

    li.submenu {
        position: relative;
    }

    .submenu ul {
        display: block;
    }

    .submenu:hover ul {
        position: static;
        top: unset;
        border: none;
    }

    .submenu ul li {
        display: block;
        width: 100%;
    }

    .submenu ul li:hover {
        color: var(--primary-digital-green);
    }
}

main {
    grid-row: 3/4;
    grid-column: 2/3;
    padding: 16px;
}
@media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3), only screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3),(max-width: 767px) {
    main {
        grid-row: auto;
        grid-column: 1/5;
    }
}

main .title {
    min-height: 42px;
    color: var(--primary-digital-green);
    margin-top: 0;
    font-size: 36px;
    margin-bottom: 16px;
    font-weight: bolder;
}

main .title.fake {
    height: 40px;
    background-color: var(--secondary-color);
    margin-top: 0;
    border-radius: 4px;
}

article {
    display: block;
    width: 100%;
}

p.fake {
    background-image: linear-gradient(to bottom, var(--primary-color), var(--primary-color) 50%, transparent 50%, transparent);
    background-size: 100% 24px;
    background-repeat: repeat;
}

div.thumbnail {
    aspect-ratio: 16/9;
    margin-bottom: 16px;
}
@media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3), only screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3),(max-width: 767px) {
    div.thumbnail {}
}

div.fake-img {
    background-color: var(--secondary-digital-green-50);
    border-radius: 4px;
}

main p {
    margin: 0 0 24px 0;
}

main p.small {
    height: 134px;
}

main p.large {
    height: 614px;
}

main p:first-child {
    margin-top: 0;
} 
main p:last-child {
    margin-bottom: 0;
}

main article img {
    width: 100%;
    border-radius: 4px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border: 1px solid var(--primary-color);
}

@media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3), only screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3),(max-width: 767px) {
    main article img {}
}

aside {
    grid-row: 3/4;
    grid-column: 3/4;
}
@media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3), only screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3),(max-width: 767px) {
    aside {
        grid-row: auto;
        grid-column: 1/5;
    }
}

aside .asides {
    padding: 16px;
    margin-bottom: 16px;
}

aside .asides .aside-titles {
    height: 30px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    margin: 0;
}

aside .asides p {
    height: 120px;
    margin-bottom: 0;
}

aside .asides div.fake-img img {
    margin-top: 16px;
    width: 100%;
    border-radius: 4px;
    display: block;
    border: 1px solid var(--primary-color);
}
footer {
    grid-row: auto;
    grid-column: 1/5;
    height: 120px;
    border: none;
    border-top: 1px solid var(--primary-color);
    border-radius: unset;
}

/* Publicidad START */
.display .display-slot#top-1 {
    grid-column: 2/4;
    grid-row: 2/3;
    height: 250px;
    width: 100%;
    background: center / 80px no-repeat url(https://digitalgreen.es/wp-content/uploads/2018/11/isologo-80x80.png), var(--secondary-digital-green-50);
    border: 1px solid var(--primary-digital-green);
}

@media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3), only screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3),(max-width: 767px) {
    .display .display-slot#top-1 {
        grid-column: 1 / 5;
        width: calc(100% - 2px);
        height: 120px;
    }
}

.display .display-slot.skies {
    grid-column: 2/4;
    grid-row: 2/3;
    position: sticky;
    top: 90px;
}
.display .display-slot.skies .sky  {
    position: absolute;
    height: 800px;
    width: 120px;
    background: center / 80px no-repeat url(https://digitalgreen.es/wp-content/uploads/2018/11/isologo-80x80.png), var(--secondary-digital-green-50);
    border: 1px solid var(--primary-digital-green);
}
.display .display-slot.skies #sky-left {
    top:0;
    left: -138px;
    display: none;
}
.display .display-slot.skies #sky-right {
    top: 0;
    right: -138px;
}

@media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3), only screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3),(max-width: 1260px) {
    .display .display-slot.skies,
    .display .display-slot.skies .sky {
        display: none;
    }
}

.display .display-slot#bottom {
    grid-column: 2/4;
    grid-row: auto;
    height: 250px;
    width: 100%;
    background: center / 80px no-repeat url(https://digitalgreen.es/wp-content/uploads/2018/11/isologo-80x80.png), var(--secondary-digital-green-50);
    border: 1px solid var(--primary-digital-green);
}

@media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3), only screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3),(max-width: 767px) {  
    .display .display-slot#bottom {
        grid-column: 1 / 5;
        width: calc(100% - 2px);
        height: 120px;
    }
}

.display main article .display-slot,
.display aside .display-slot {
    position: relative;
    min-height: 600px;
    display: block;
    margin: 0 auto 16px;
}
.display main article .display-slot > .slot,
.display aside .display-slot > .slot {
    background: center / 80px no-repeat url(https://digitalgreen.es/wp-content/uploads/2018/11/isologo-80x80.png), var(--secondary-digital-green-50);
    border: 1px solid var(--primary-digital-green);
    width: 300px;
    margin: 0 auto;
}
.display aside .display-slot #right-2 {
    height: 600px;
}
.display aside .display-slot #right-1,
.display aside .display-slot #right-3 {
    position: sticky;
    top: 90px;
    height: 300px;
    width: 300px;
}

@media only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3), only screen and (device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3),(max-width: 767px) {
    .display main article .display-slot #right-2 {
        height: 600px;
    }
    .display main article .display-slot #right-1,
    .display main article .display-slot #right-3 {
        position: sticky;
        top: 90px;
        height: 300px;
        width: 300px;
    }
}

#videoIntextPlacement + .digitalgreen,
.videoNews-es .thumbnail.mainImage ,
.videoNews-es-latam .thumbnail.mainImage ,
.videoNews-en .thumbnail.mainImage {
    box-shadow: var(--primary-digital-green) 0 0 16px 0px;
}
/* Publicidad END */
/* In image Start */

.in-image div.thumbnail {
    position: relative;
}
.in-image .in-image-slot {
    position: absolute;
    display: block;
    margin: 0 auto 16px;
    height: 100%;
    width: calc(100% / 3);
    top: 2px;
    right: 2px;
}
.in-image .in-image-slot > .slot {
    background: center / 80px no-repeat url(https://digitalgreen.es/wp-content/uploads/2018/11/isologo-80x80.png), var(--secondary-digital-green-50);
    border: 1px solid var(--primary-digital-green);
    width: 100%;
    margin: 0 auto;
    height: calc(100% - 10px);
}
/* In image End */