/*
Theme Name: Urbanophil 2020/2023
Theme URI: https://urbanophil.net
Author: Ulrike Uhlig
Author URI: https://curlybracket.net
Version: 2.0
*/

@charset "UTF-8";

:root {
  --light: #fff;
  --dark: #000;
  --hilight: rgb(0,186,186);
  --extra: rgb(255, 102, 153);
  --extra2: rgba(255, 102, 153, 0.92);
  --grid: 17%;
  --gridm: 8%;
  --gridx: 2%;
  --mobilegrid: 34%;
  --title: 2.45em;
  --titleh: 1.15em;
}

/********************************
 * Fonts
 * *****************************/

@font-face {
    font-family: "LabGrotesqueRegular";
    src: url("fonts/LabGrotesque-Regular.woff"),
        url("fonts/LabGrotesque-Regular.woff2");
}

@font-face {
    font-family: "LabGrotesqueBold";
    src: url("fonts/LabGrotesque-Bold.woff"),
        url("fonts/LabGrotesque-Bold.woff2");
}

body {
    font-family: "LabGrotesqueRegular", Helvetica, Arial, sans-serif;
}

.section-teaser, .post-title, .menu-primary, .item-title,
h1, h2, h3, h4, h5, b, strong, input[type="submit"] {
    font-family: "LabGrotesqueBold", Helvetica, Arial, sans-serif;
    font-weight: normal;
}

@font-face {
  font-family: 'awesome';
  src: url('fonts/awesome.eot?11710073');
  src: url('fonts/awesome.eot?11710073#iefix') format('embedded-opentype'),
       url('fonts/awesome.woff2?11710073') format('woff2'),
       url('fonts/awesome.woff?11710073') format('woff'),
       url('fonts/awesome.ttf?11710073') format('truetype'),
       url('fonts/awesome.svg?11710073#awesome') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "awesome";
  font-style: normal;
  font-weight: normal;
  speak: never;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-right-big:before { content: '\2192'; }
.icon-search:before { content: 'Search'; }
.icon-left-open-mini:before { content: '\e761'; }
.icon-right-open-mini:before { content: '\e762'; }
.icon-left-open-big:before { content: '\e765'; }
.icon-right-open-big:before { content: '\e766'; }

/********************************
 * Resets etc
 * ******************************/

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 2em 2em 0;
    text-align: left;
    background-color: var(--light);
    color: var(--dark);

    font-size: 100%;
    line-height: 137%;

    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    -ms-font-smoothing: antialiased;
    -o-font-smoothing: antialiased;
    font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--dark);
    /*transition: all .2s ease-in-out;*/
}

a:hover {
    color: var(--hilight);
}

img {
    max-width: 100%;
    height: auto;
}

/*******************************
  FORMS
*******************************/

.screen-reader-text {
    display: none;
}

input:focus {
    outline: none;
}

input[type="submit"],
input[type="email"],
input[type="password"],
input[type="text"],
input[type="search"],
textarea {
    color: var(--dark);
    padding: 5px 25px;
    border: none;
    border-bottom: 1px solid var(--hilight);
    background: rgba(0, 186, 186, 0.1);
    vertical-align: middle;
    box-sizing: border-box;
    max-width: 100%;
    margin: auto auto 1em;
    font-size: 1em;
    font-family: inherit;
}

input[type="submit"],
.submit {
    cursor: pointer;
    background: var(--hilight);
    color: var(--light);
    border: 1px solid var(--hilight);
    transition: all 0.2s ease-in-out;
}

input[type="submit"]:hover,
.submit:hover {
    background: var(--light);
    color: var(--hilight);
    font-weight: bold;
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: var(--hilight);
}
::-moz-placeholder { /* Firefox 19+ */
    color: var(--hilight);
}
:-ms-input-placeholder { /* IE 10+ */
    color: var(--hilight);
}
:-moz-placeholder { /* Firefox 18- */
    color: var(--hilight);
}

.wpcf7-form {
    margin-top: 3em;
}

.search-form-container {
    display: none;
}

form.search-form {
    display: grid !important;
    grid-template-columns: 2fr 1fr;
    grid-row-gap: 0;
    width: 16px;
}

form.search-form .search-field {
    width: 150px;
}

form.search-form span {
    position: relative;
}

form.search-form input.search-submit {
    position: absolute;
    text-indent: -50000px;
    opacity: 0;
    border-top: none;
}

form.search-form input.search-submit:hover {
    opacity: 0.5;
    background: var(--hilight);
}

form.search-form span i {
    padding: 6px 20px 4px;
    box-sizing: border-box;
    margin-left: 0;
    display: block;
}

/*************************************
  Menus
*************************************/

.menu li {
    list-style: none;
}

.menu-primary {
    background: var(--extra2);
    position: fixed;
    height: 100%;
    width: 100%;
    right: -100%;
    padding: 10em 3em 2em;
    top: 0;
    box-sizing: border-box;
    transition: right 1s ease-in-out;
}

.menu-primary a {
    text-decoration: none;
    color: var(--light);
    font-size: 1.8em;
    line-height: 1.6em;
    display: block;
}

.menu-primary a:hover,
.menu-primary .current-menu-item a,
.menu-primary .current-page-ancestor a {
    color: var(--dark);
}

.menu-secondary {
    margin-bottom: 2em;
}

.menu-secondary li {
    margin-bottom: .5em;
}

.menu-secondary a {
    text-decoration: none;
    color: var(--dark);
}

.menu-secondary a:hover,
.menu-secondary .current-menu-item a,
.menu-secondary .current-page-ancestor a {
    color: var(--extra);
}

/*************************************
  Hamburger menu
*************************************/

.mobile-menu-toggle {
    z-index: 11;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.toggler {
    z-index: 13;
    position: fixed;
    right: 2em;
    width: 28px;
    height: 30px;
}

.mobile-menu-toggle input {
    z-index: 14;
    display: block;
    cursor: pointer;
    opacity: 0;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--dark);
    transform-origin: 4px 0px;
    transition: transform 0.7s cubic-bezier(0.78,0.2,0.05,1.0),
                background 0.7s cubic-bezier(0.78,0.2,0.05,1.0),
                opacity 0.55s ease;
}

.mobile-menu-toggle span:first-child {
    transform-origin: 0% 0%;
}

.mobile-menu-toggle .toggler span:nth-child(2) {
    margin-top: 8px;
}

.mobile-menu-toggle .toggler span:last-child {
    transform-origin: 0% 100%;
    margin-top: 16px;
}

/* activation */
.mobile-menu-toggle input:checked ~ .toggler span {
    opacity: 1;
    transform: rotate(45deg) translate(-10px, -10px);
}
.mobile-menu-toggle input:checked ~ .toggler span:nth-last-child(2) {
    transform: rotate(-45deg) translate(-10px, 8px);
}
.mobile-menu-toggle input:checked ~ .toggler span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

/* main menu animation */
.mobile-menu-toggle input:checked ~ .menu-primary {
    right: 0;
}

/*************************************
  Common Layout all levels
*************************************/

blockquote {
    padding-left: 1em;
    border-left: 2px solid;
}

.wp-block-image .alignleft {
    float: none !important;
    margin-right: 0 !important;
}

.wp-block-image .alignright {
    float: none !important;
    margin-left: 0 !important;
}

.section {
    margin-bottom: 4vw;
}

.home .section {
    margin-top: 8vw;
    margin-bottom: 0;
}

.home .section-more {
    margin-top: -2em;
    margin-bottom: 2em;
}

#section-home {
    margin-top: 4vw;
}

#header {
    padding-bottom: 10vh;
}

.site-title {
    position: fixed;
}

.site-title a {
    background: url(images/urbanophil-logo.svg) top left no-repeat;
    background-size: contain;
    width: calc(var(--grid));
    color: transparent;
    overflow: hidden;
    display: inline-block;
    width: 250px;
    height: 30px;
    float: left;
    margin-top: -4px;
}

#footer {
    padding-top: 7vw;
    padding-bottom: 4vw;
}

.navigation {
    overflow: hidden;
    padding-top: 4em;
}

.navigation a {
   color: var(--hilight);
}

.navigation a:hover {
   color: var(--extra);
}

.navigation .previous {
   float: left;
}

.navigation .next {
   float: right;
}

.navigation li {
    display: inline;
    margin-right: 0.9em;
}

.navigation li.active a {
    color: (var(--extra));
}

/*************************************
  Level 2: Textual information
*************************************/

.section-title {
    color: var(--hilight);
}

.section-teaser {
    margin-top: 1em;
    margin-bottom: 2.2em;
    font-size: 1.5em;
    line-height: var(--titleh);
    display: inline-block;
}

a.section-more {
    vertical-align: text-bottom;
    display: inline-block;
    text-decoration: none;
    font-size: 1.3em;
    border: 2px solid;
    border-radius: 50%;
    padding: .4em .4em;
    color: var(--hilight) !important;
    width: 1em;
    line-height: 1em;
    transition: width .1s ease-in-out !important;
    white-space: nowrap;
}

a.section-more i {
    margin-left: 1px;
}

a.section-more span {
    transform: translateX(-20px);
    transition: all .1s ease-in-out;
    white-space: nowrap;
    display: inline-block;
    opacity: 0;
    visibility: hidden;
    padding-right: 0.4em;
}

a.section-more:hover {
    width: auto;
    border-radius: 30px;
    color: var(--extra) !important;
    border-color: var(--extra) !important;
}

a.section-more:hover span {
    transform: translateX(0px);
    opacity: 1;
    visibility: visible;
}

figcaption {
    color: var(--hilight);
}

/*************************************
  Specific layouts
*************************************/

.section-slides {
    margin-bottom: 3em;
}

.section-slides .wp-block-eedee-block-gutenslider {
    margin-bottom: 1em;
}

/*************************************
  Level 2: Item grids
*************************************/

.item {
    margin-bottom: 3em;
}

.home .item {
    margin-bottom: 1em;
}

.item .item-title {
    font-size: 1em;
    margin-bottom: 1em;
}

.item .item-thumbnail {
    margin-bottom: 1em;
}

.item a {
    text-decoration: none;
    color: var(--dark);
    transition: all .2s ease-in-out;
}

.item a:hover .item-title {
    color: var(--hilight);
}

.item.related .item-thumbnail {
    opacity: 0.4;
    transition: all .2s ease-in-out;
}

.item.related:hover .item-thumbnail {
    opacity: 1;
}

/* homepage blog item uses this scheme to make all images the same height. */

.thumb-as-background {
    height: 220px;
    display: block;
    background-size: cover;
    width: 100%;
    background-position: center center;
}

/*************************************
  Level 2: Blog post list
*************************************/

.post-list .post {
    overflow: hidden;
    border-bottom: 1px solid var(--dark);
    padding: 3em 0;
}

.post-list .post:first-child {
    padding-top: 0;
}

.post-list .post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-list .post .post-content {
    overflow: hidden;
}

.post-list .post .post-title {
    margin-top: 1em;
    margin-bottom: 1em;
    line-height: 1.3em;
}

.post-list .post .post-title a {
    color: (var(--dark));
}

.post-list .post:hover .post-title a {
    color: var(--hilight);
}

/*************************************
  Level 3: Single Posts & Pages
*************************************/

.author .post .post-title,
.page-template-default .post .post-title,
.single .post .post-title {
    font-size: 1.8em;
    line-height: var(--titleh);
}

.author .post-content, .page .post-content,
.single .post-content, .page .post-content {
    margin-top: 2em;
}

.post-content div.wp-caption {
    width: auto !important;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content blockquote,
.post-content .wp-block-image {
     margin-bottom: 2em;
}

.post-content ul:not(.blocks-gallery-grid),
.post-content ol {
    margin-left: 1.2em;
}

.post-content h1,
.post-content h2 {
    line-height: 1.3em;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5 {
    margin-top: 2em;
    margin-bottom: 1em;
}

.post-content h4 {
    font-size: 1.1em;
}

.post-content h5 {
    font-size: 1em;
}
.post-content a {
    color: var(--hilight);
}

.post-content a:hover {
    color: var(--extra);
}

.post .post-meta {
    margin-top: 1em;
}

.single .post .post-meta {
    margin-bottom: 3em;
}

.post .post-meta,
.post .post-meta a {
    color: var(--hilight);
}

.author .post .post-content {
    overflow: hidden;
}

.author .post .post-content,
.author .post .post-meta {
    padding-right: 1em;
    box-sizing: border-box;
}

.author .author-thumbnail {
    margin-bottom: 1em;
    padding-top: 9px;
}

.author .author-thumbnail img {
    width: 100%;
}

.author .author-thumbnail .subtitle {
    margin: 1em 0;
    font-size: 1em;
}
.author .author-thumbnail .shortlink {
    display: block;
    margin-bottom: 0.5em;
    padding-right: 0.5em;
}

.author .author-thumbnail a.shortlink {
    color: var(--hilight);
}

.author .author-thumbnail a.shortlink:hover {
    color: var(--extra);
}

.author .back {
    grid-column-start: 3;
}

.simple-list {
    margin-left: 0 !important;
}

.simple-list li {
    list-style: none;
    margin-bottom: 0.5em;
}

/************************************
 * Level 2: Display of images
 * *********************************/

.page-template-default #main > .thumbnail {
    margin-bottom: 2em;
}

body:not(.safari) .section-content .wp-block-image,
body:not(.safari) .item .item-thumbnail,
body:not(.safari) .post-list .post .thumbnail {
    overflow: hidden; /* zoom inside */
/*    display: flex; */
}

.item:hover .item-thumbnail img,
.post-list .post:hover .thumbnail img,
.item:hover .thumb-as-background {
    transform: scale(1.05);
    transition: all .4s ease-in-out;
}

/************************************
 * Media queries
 * *********************************/
@media all and (max-width: 480px) {
    .section-slides {
        position: relative;
    }

    .section-slides > .wp-block-image:first-child {
        width: 48%;
	float: left;
    }

    .section-slides > .wp-block-image:last-child {
        width: 48%;
	position: absolute;
	top: 0;
	right: 0;
    }

    .section-slides > .wp-block-eedee-block-gutenslider {
        clear: both;
    }
}

@media all and (min-width: 481px) and (max-width: 860px) {
    .toggler {
        right: 7vh;
    }

    .menu-secondary {
        margin-bottom: 0;
    }
    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: calc(var(--gridx));
    }

    .navigation,
    .section,
    .section-teaser,
    .post-list {
        grid-column-start: 1;
        grid-column-end: 3;
    }

    .thumb-as-background {
        height: 170px;
    }

    .section-slides {
        position: relative;
    }

    .section-slides > .wp-block-image:first-child {
        width: 48%;
	float: left;
    }

    .section-slides > .wp-block-image:last-child {
        width: 48%;
	position: absolute;
	top: 0;
	right: 0;
    }
    
    .section-slides > .wp-block-eedee-block-gutenslider {
        clear: both;
    }
}

@media all and (min-width: 635px) and (max-width: 860px) {
    .thumb-as-background {
        height: 200px;
    }
}

@media all and (min-width: 861px) {
    body {
        margin: 7vh 0 0 7vh;
    }
    .toggler {
        right: 7vh;
    }
    .menu-primary {
        top: 10em;
        width: calc(50vw - 7vw - 4%);
        right: calc(-50vw + 7vw + 4%);
        padding: 5vw 1em 5vw 7vw;
        height: auto;
    }
    .menu-secondary {
        margin-bottom: 0;
    }
    .navigation {
        grid-column-start: 3;
        grid-column-end: 6;
    }
    .navigation#nav-single {
        grid-column-start: 2;
        grid-column-end: 6;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-column-gap: calc(var(--gridx));
    }

    .section-teaser,
    .menu-primary a {
        font-size: var(--title);
    }

    .section {
        grid-column-start: 2;
        grid-column-end: 6;
    }

    .section-slides {
        display: grid;
        grid-template-columns: 23% 48.8% 23%;
        grid-column-gap: calc(var(--gridx) + 6px);
    }

    .section-slides .wp-block-eedee-block-gutenslider {
        margin-bottom: 0;
    }

    .home .section-more {
        margin-top: 0;
        margin-bottom: 0;
	margin-left: 1em;
    }


    /*************************************
      Level 2+3: Textual information
    *************************************/
    .section-teaser {
        width: calc(3*var(--grid) + 3*var(--gridm));
    }

    .author .post .post-title,
    .author .post .post-meta,
    .single .post .post-title {
        width: calc(3*var(--grid) + 2*var(--gridm));
    }

    .section-content.post-content {
            margin-left: calc(var(--grid) + var(--gridm) + 5px);
            margin-right: calc(var(--grid) + var(--gridm));
    }

    /*************************************
      Level 2: Item grids
    *************************************/

    .home .item-0,
    .home .item-4,
    .home .item-8,
    .home .item-12 {
        grid-column-start: 2;
    }

    .page-template-page_authors .grid + .item,
    .item.author:nth-child(4n+2),
    .page-template-page_level2 .item:first-child,
    .page-template-page_level2 .item:nth-child(4n+2),
    .page-template-page_urbanofilms .item:first-child,
    .page-template-page_urbanofilms .item:nth-child(4n+2) {
        grid-column-start: 2;
    }

    .single .section + .item.related {
        grid-column-start: 3;
    }

    .item.related .section-more {
        margin-top: 25%;
        margin-left: 25%;
    }

    .thumb-as-background {
        height: 170px;
    }

    /*************************************
      Level 2: Blog post list
    *************************************/

    .post-list {
        grid-column-start: 2;
        grid-column-end: 6;
    }

    .post-list .post .post-title {
        margin-top: -0.2em;
        font-size: 1.35em;
    }

    .post-list .post .thumbnail,
    .post-list .post .post-content {
        width: 47%;
        box-sizing: border-box;
    }

    .post-list .post:nth-child(odd) .thumbnail,
    .post-list .post:nth-child(even) .post-content {
        margin-right: 6%;
    }

    .post-list .post:nth-child(even) .thumbnail,
    .post-list .post:nth-child(odd) .post-content {
        margin-left: 6%;
    }

    .post-list .post:nth-child(even) .thumbnail {
        float: right;
	text-align: right;
    }
    .post-list .post:nth-child(odd) .thumbnail {
        float: left;
        text-align: left;
    }

    /***************************************
     * Level 3: Blog, Unterseiten
     * ************************************/

    .post .wp-block-eedee-block-gutenslider {
        width: 153%;
    }

    .single .thumbnail.extra-thumbnail {
        grid-column-start: 1;
        grid-column-end: 3;
	margin-top: 7px;
    }

    .single .thumbnail.extra-thumbnail img {
        width: 100%;
    }

    .page-template-default #main > .thumbnail {
        grid-column-start: 1;
        grid-column-end: 2;
    }

    .single .section,
    .author .section,
    .page-template-default .section {
        grid-column-start: 3;
    }

    .single .post .post-content,
    .author .post .post-content,
    .page-template-default .section .post-content,
    .page-template-default .section .post-title {
        width: calc(2.62*(var(--grid) + var(--gridm)));
    }

    .author .post .thumbnail {
        float: right;
        width: calc(var(--grid) + 2*var(--gridm));
    }

    #footer .menu {
        vertical-align: top;
    }
    #footer .menu:first-child {
        grid-column-start: 3;
    }
}

@media all and (min-width: 1920px) {
    body {
        max-width: 1900px;
        margin-right: auto;
        margin-left: auto;
	margin-top: 0;
	font-size: 110%;
    }
    #header {
	padding-top: 7vh;
    }
    #header, #main, #footer {
        padding-left: 4em;
	background: #fff;
    }
    .toggler {
        right: 150px;
    }
}

@media print {
    #header, #footer {
        display: none;
    }

    .page .grid > .thumbnail {
        margin-bottom: 1em;
    }
}

/*
 * Specifics for Firefox browser
 * */

@-moz-document url-prefix() {
    .section-slides .wp-block-eedee-block-gutenslider,
    #gutenslider-ozaobo2bs {
        max-width: 500px;
    }
}

.blocks-gallery-item span.isc-source-text {
    opacity: 0 !important;
}
.blocks-gallery-item:last-child span.isc-source-text {
    opacity: .7 !important;
    left: 3px !important;
    bottom: 3px !important;
    top: auto !important;
}

