@charset "UTF-8";
/*
Theme Name: Le Cippe
Theme URI: https://creation.lecippe.ch
Author: sr@contreforme.ch
Author URI: https://contreforme.ch
Description: Thème pour le site web lecippe.li

Version: 1.0

Text Domain: lecippe
*/
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css?family=Abril+Fatface|Ultra|Merienda|Anton|Krub:400,700&display=swap');

:root {
    /* interface colors */
    --lightgrey: rgb(243, 243, 243);
    --grey: rgb(210, 210, 218);
    --light: rgb(141, 141, 162);
    --dark: rgb(45, 45, 83);

    /* BG colors */
    --color-r: rgb(180, 50, 50);

    /* default : œuvres */
    --color-a: rgb(246, 167, 46);
    --color-b: rgb(218, 109, 42);
    --color-c: rgb(117, 108, 216);
    --color-d: rgb(114, 76, 127);

    /* fonts */
    --font-abril: 'Abril Fatface', serif;
    --font-ultra: 'Ultra', serif;
    --font-merie: 'Merienda', cursive;
    --font-anton: 'Anton', sans-serif;
    --font-def: 'Krub', sans-serif;
}

#authors {
    --color-a: rgb(65, 146, 204);
    --color-b: rgb(56, 88, 163);
    --color-c: rgb(133, 190, 166);
    --color-d: rgb(191, 134, 184);
}

#works {
    --color-a: rgb(0, 166, 124);
    --color-b: rgb(158, 201, 82);
    --color-c: rgb(177, 89, 81);
    --color-d: rgb(222, 167, 80);
}

#students {
    --color-a: rgb(239, 203, 124);
    --color-b: rgb(230, 155, 169);
    --color-c: rgb(158, 214, 214);
    --color-d: rgb(177, 217, 187);
}

#thematics {
    --color-a: rgb(182, 70, 47);
    --color-b: rgb(48, 92, 76);
    --color-c: rgb(199, 118, 61);
    --color-d: rgb(137, 198, 166);
}

*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100vw;
    min-height: 100vh;
}

body {
    font-family: var(--font-def);
    color: black;
    font-size: calc(.6em + .4vw);
    background-color: white;
}

a,
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    color: var(--light);
}

a:hover {
    color: var(--dark);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

iframe {
    display: block;
    width: 100%;
    margin: 0 auto 1em;
}

/* structure */
#header {
    position: sticky;
    top: 0;
    background-image: linear-gradient(white 15%, rgba(255, 255, 255, .9) 90%);
    z-index: 500;
}

main#top_content {
    width: 98vw;
    margin: 0 auto;
}

/* /structure */
/* main nav */
#header nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    padding: 0 2em;
    height: 8vh;
    line-height: 8vh;
    align-content: center;
    align-items: center;
}

#header nav a {
    flex: 1 auto;
    font-size: 1.2em;
    font-weight: 700;
    text-align: center;
}

#header nav a.selected {
    color: var(--dark);
}

#header nav a.home {
    background: transparent url(/wp-content/uploads/2020/03/logo_creation_v6.png) no-repeat left center/contain;
    width: 0;
    height: 5vh;
    padding-left: 8vw;
    overflow: hidden;
    margin: 1.5vh 0;
    flex: 0 auto;
}

#header nav a.collection {
    text-transform: uppercase;
    color: var(--dark);
    font-size: 1em;
    height: 2em;
    border: thin solid var(--dark);
    border-radius: 1em;
    line-height: 1.9em;
    flex: 0 0 auto;
    padding: 0 1em;
    margin-right: 1.5em;
}

#header .material-icons {
    flex: 0 auto;
    margin: 0 .4em 0 auto;
    line-height: 8vh;
    cursor: pointer;
    font-size: 1.5em;
}

#header .material-icons ~ .material-icons {
    margin-left: 0;
}

/* hide listing option when unecessary */
body.single #header .list_display {
    display: none;
}

/* /main nav */

/* sections */

/* grid rules */
section.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, [col] 24vw);
    grid-gap: .2vw;
    grid-auto-flow: row;
}

.grid.related_works {
    grid-gap: .6vw;
}

.grid.uniform_squared {
    grid-template-columns: repeat(auto-fill, [col] 16vw);
}

.grid .box.t2,
.grid .box.t3 {
    grid-column: span 2;
}

.grid .box.t3 {
    grid-row: span 2;
    height: 48vw;
}

/* /grid rules */

/* articles */
.grid .box {
    position: relative;
    background: grey;
    padding: 2em;
    overflow: hidden;
    height: 24vw;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.grid.uniform_squared .box {
    height: 16vw;
    padding: 1em;
}

.grid .alpha {
    display: none;
}

.grid.uniform_squared .box h1 a {
    text-transform: uppercase !important;
    font-size: 1em !important;
}

.box:before {
    content: '';
    position: absolute;
    background: transparent none no-repeat center center/cover;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: .3;
    mix-blend-mode: luminosity;
}

.box.bg1:before {
    background-image: url(/wp-content/themes/lecippe/statics/le-cippe-img-01.jpg);
}

.box.bg2:before {
    background-image: url(/wp-content/themes/lecippe/statics/le-cippe-img-02.jpg);
}

.box.bg3:before {
    background-image: url(/wp-content/themes/lecippe/statics/le-cippe-img-03.jpg);
}

.box.bg4:before {
    background-image: url(/wp-content/themes/lecippe/statics/le-cippe-img-04.jpg);
}

.box.bg5:before {
    background-image: url(/wp-content/themes/lecippe/statics/le-cippe-img-05.jpg);
}

.box.bg6:before {
    background-image: url(/wp-content/themes/lecippe/statics/le-cippe-img-06.jpg);
}


#students .box.bg1:before,
#students .box.bg4:before {
    background-image: url(/wp-content/themes/lecippe/statics/dos-01.jpg);
}

#students .box.bg2:before,
#students .box.bg5:before {
    background-image: url(/wp-content/themes/lecippe/statics/dos-02.jpg);
}

#students .box.bg3:before,
#students .box.bg6:before {
    background-image: url(/wp-content/themes/lecippe/statics/dos-03.jpg);
}

.box h1,
.box div {
    position: relative;
    z-index: 10;
    flex: 0 auto;
}

.box h1 {
    max-width: 90%;
    margin: 0 auto .4em;
    text-align: center;
    line-height: 1em;
    font-size: 2.5em;
    font-weight: normal;
    color: white;
    break-after: page;
}

.uniform_squared .box h1 {
    font-size: 1.5em;
}

.box h1 a {
    color: white;
    display: block;
    line-height: 1em;
}

.box h1 a small {
    font-size: .6em;
    display: block;
    line-height: 1em;
}

.box div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: stretch;
    align-items: center;
}

.box div a {
    flex: 0 1 auto;
    align-self: flex-start;
    padding: .1em .3em;
    background-color: white;
    color: var(--dark);
    margin: .2em;
}

.box small {
    position: absolute;
    left: .7em;
    bottom: .7em;
    font-size: 1.3em;
    color: white;
    z-index: 100;
    font-weight: bold;
    line-height: 1.4em;
}

.listing .box small {
    position: relative;
    left: 1em;
    bottom: auto;
    color: var(--dark);
}

.box small strong {
    border: medium solid white;
    background-color: var(--color-r);
    display: inline-block;
    text-align: center;
    border-radius: 1em;
    width: 1.7em;
    height: 1.7em;
    color: white;
}

.box.c1 {
    background-color: var(--color-a);
}

.box.c2 {
    background-color: var(--color-b);
}

.box.c3 {
    background-color: var(--color-d);
}

.box.c4 {
    background-color: var(--color-c);
}

.box.f1 h2,
.box.f1 h1 {
    font-family: var(--font-anton);
}

.box.f2 h2,
.box.f2 h1 {
    font-family: var(--font-ultra);
}

.box.f3 h2,
.box.f3 h1 {
    font-family: var(--font-merie);
}


.box.f4 h2,
.box.f4 h1 {
    font-family: var(--font-abril);
}

.box.t3 h1 {
    font-size: 5.8em;
}

.box.t2 h1 {
    font-size: 3.5em;
}

/* listing */

.listing .box.alpha {
    display: block;
    font-size: 2.5em;
    color: var(--color-b);
}

.listing .box {
    background: white none;
    grid-column: span 4;
    grid-row: span 1;
    height: auto;
    justify-content: left;
    padding: 1vh;
    border-bottom: thin solid var(--color-b);
}

.listing .box:first-of-type {
    border-top: thin solid var(--color-b);
}

.listing .box:before {
    display: none;
}

.listing .box h1 {
    font-family: var(--font-def);
    font-size: 1.2em;
    break-after: auto;
    margin: 0 .5em 0 0;
}

.listing .box h1 a {
    color: var(--dark);
    font-weight: bold;
}

.listing .box h1 a:hover,
.listing .box div a:hover {
    text-decoration: underline;
}

/* /listing */

/* single item */
header.top {
    position: relative;
    overflow: hidden;
    padding: 3em 0 2em;
    margin-bottom: 1em;
}

.taxonomy header.top {
    grid-column: 1/5;
}

header.top h1,
header.top h2 {
    position: relative;
    color: white;
    font-size: 4.5em;
    text-align: center;
    z-index: 1;
}

header.top h2 {
    font-size: 2.5em;
}

header.top h1 small {
    display: block;
    font-size: .6em;
}

header.top div {
    position: relative;
    z-index: 1;
    text-align: center;
}

.single_item div.content {
    display: grid;
    width: 90vw;
    margin: 0 auto;
    grid-template-columns: 25% 75%;
}

.single_item .insert {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin: 0 1em 1em 0;
}

.single_item .insert section {
    padding: 1em;
}

.single_item .insert section.bg {
    background-color: var(--lightgrey);
}

.frontpage {
    width:100%;
    margin-bottom: .5em;
    display:block;
}
.frontpage img{
    width:100%;
}

.insert a,
.insert small {
    display: block;
    font-weight: bold;
    margin-bottom: .7em;
}

.insert small {
    margin-top: -1em;
}

.insert h1,
.author a:first-of-type {
    font-size: 1em;
    line-height: 2em;
    font-weight: bold;
    color: black;
    border-bottom: thin solid var(--light);
    padding-bottom: .3em;
    margin: 0 0 .3em 0;
}

.author a:first-of-type {
    line-height: 1.4em;
}

.insert span {
    display: block;
    font-size: .8em;
    text-align: center;
    margin: .3em 0 2em;
    color: var(--light);
    padding-bottom: .3em;
    border-bottom: thin solid var(--light);
    clear: both;
}

.insert a figure {
    width: 2.7em;
    height: 2.7em;
    border-radius: 1.5em;
    overflow: hidden;
    float: left;
    margin-right: .3em;
}

.insert.works figure img {
    width: 100%;
    height: auto;
}

.author a figure img {
    width: 100%;
    height: 100%;
}

.single_item h1.intro,
.single_item .content,
.single_item .related_works {
    grid-column: 2;
}

.single_item .content {
    margin-top: 1.5em;
}

.single_item .related_works {
    margin-top: 1em;
}

.insert .student_work{
    padding:1em;
    position: relative;
    margin: .5em -1em 0;
    text-align: center;
}

.insert .student_work p{
    margin:0 !important;
}
.insert .student_work a,
.insert .student_work p,
.insert .student_work h1
{
    position: relative;
    color:white;
    border:0;
    max-width:none;
    z-index: 1;
}
.insert .student_work em{
    font-weight: 700;
}
.insert .student_work h1 a{
    font-size:1.9em;
    line-height: 1em;
    padding:0;
    margin:0;
}
.insert .student_work p a{
    color:var(--dark);
    display:inline-block;
    padding:0 .3em;
    margin:.2em;
    background-color:white;
}
/* content */
.single_item article.content {
    max-width: 80ch;
    line-height: 1.5em;
}

.single_item article.content h1 {
    font-size: 2.2em;
}

.single_item article.content h2 {
    font-size: 1.5em;
}

.single_item article.content h3 {
    font-size: 1.1em;
}

.single_item article.content h6 {
    font-size: .8em;
}

.single_item article.content h1,
.single_item article.content h2,
.single_item article.content h3 {
    margin-bottom: 1em;
    font-weight: bold;
    line-height: 1.2em;
}

.single_item article.content * + h1,
.single_item article.content *:not(h1) + h2 {
    margin-top: 2em;
}

.content.c1 h1,
.content.c1 h2,
.content.c1 h3 {
    color: var(--color-a);
}

.content.c2 h1,
.content.c2 h2,
.content.c2 h3 {
    color: var(--color-b);
}

.content.c3 h1,
.content.c3 h2,
.content.c3 h3 {
    color: var(--color-c);
}

.content.c4 h1,
.content.c4 h2,
.content.c4 h3 {
    color: var(--color-d);
}

.single_item .content p {
    margin-bottom: 1em;
}

.single_item .content blockquote {
    font-style: italic;
    padding: 2em;
}

.single_item p.intro {
    padding: .5em;
    margin-bottom: 1em;
    font-style: italic;
    background-color: var(--lightgrey);
}

h1.intro {
    font-weight: 400 !important;
    text-transform: uppercase;
    font-size: 1.8em !important;
    letter-spacing: .1em;
}

/* /content */

/* gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, [col] 32.3%);
    grid-gap: .6vw;
}

.gallery figure {
    display: block;
    width: 100%;
    height: 12vw;
    position: relative;
}

.gallery figure img {
    object-fit: cover;
    width: auto;
    height: 100%;
}

.content.c1 .gallery figure,
.content.c1 .gallery figure,
.content.c1 .gallery figure {
    border-color: var(--color-a);
}

.content.c2 .gallery figure,
.content.c2 .gallery figure,
.content.c2 .gallery figure {
    border-color: var(--color-b);
}

.content.c3 .gallery figure,
.content.c3 .gallery figure,
.content.c3 .gallery figure {
    border-color: var(--color-c);
}

.content.c4 .gallery figure,
.content.c4 .gallery figure,
.content.c4 .gallery figure {
    border-color: var(--color-d);
}

.gallery figure img {
    width: 100%;
}

.gallery figure figcaption {
    padding: .3em;
    color: var(--dark);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: .8em;
    background-color: rgba(255, 255, 255, .6);
}

/* /gallery */
/* /single item */

/* /articles */

/* /sections */

#colophon {
    height: 10vh;
    line-height: 10vh;
    text-align: center;
}

@media screen and (max-width: 1024px) {
.box h1 {
    line-height: 1em;
    font-size: 1.6em;
}
	
#header nav{
	display : none;
}
}	

/*----------------------------------------------Mediaqueries*/
@media screen and (max-width: 1024px){
section.grid {
/*  display: block;*/
	margin-top:2em;
	height:auto;
}

#header {
    padding: 0.5em;
	height: 50px;
}
	
#header nav {
    padding: 0 1em;
	display:none;
}
#header nav a{
	display:none;
		background: transparent url(/wp-content/uploads/2020/03/logo_creation_v6.png); 
}

#header nav a.home {
	display: none;
}

/*menu*/
.responsive-menu-open button#responsive-menu-button {
    background: none;
}
button#responsive-menu-button {
    top: 5px;

}
#responsive-menu-container #responsive-menu > li.responsive-menu-item:first-child > a {
    border-top: 0;
}

#responsive-menu{
	margin-top:8em;	
}
	
#responsive-menu-container #responsive-menu li.responsive-menu-item .responsive-menu-item-link {
    font-size: 1.5em!important;
}
	
.responsive-menu-open button#responsive-menu-button:hover, .responsive-menu-open button#responsive-menu-button:focus, button#responsive-menu-button:hover, button#responsive-menu-button:focus {
    background: white;
}
	
button#responsive-menu-button {
    background: none;
}

span.responsive-menu-inner{
	color :var(--dark);
}

.responsive-menu-open .responsive-menu-inner, .responsive-menu-open .responsive-menu-inner::before, .responsive-menu-open .responsive-menu-inner::after {
    background-color:var(--dark);
}
	
.responsive-menu-inner, .responsive-menu-inner::before, .responsive-menu-inner::after {
    background-color: var(--dark);
}

#responsive-menu-container #responsive-menu-wrapper{
		background:white;
}

#responsive-menu-container #responsive-menu li.responsive-menu-current-item > .responsive-menu-item-link{
	background-color: var(--dark);
	color: white;
}
#responsive-menu-container #responsive-menu li.responsive-menu-item a {
    border-bottom: 0;
    color: var(--dark);
    background-color: white;
}
}

@media screen and (max-width: 980px){
section.grid {
	grid-template-columns: 50%;
}

.grid .box {
	min-height: 12em;
}

}

@media all and (min-width: 320px) and (max-width: 480px){
#header {
	padding:0;
}
	
nav{
	font-weight:700;
}

section.grid {
	width:100%;
	display: block;
}
.box h1,.box.t3 h1 {
    font-size: 3.25em!important;
	width:100%;
}

.box div {
    display: inline-grid;
	text-align:center;
	/*width: 100% !important;*/
}

.box div a {
    padding: 0.8em;
	margin-top:2%;
	font-size: 1.2em;
	/*background: white; opacity: 0.9;*/
	border: 1px solid white;
	background:none;
	color:white;
}
.grid .box {
	height: auto!important;
	/*min-height: 50vh;*/
}

	
.box{
	margin-bottom:0.5em;
}
	

article.content.biography {
	font-size: calc(10vh + 3vw);
}
	
.single_item div.content {
    display: block;
}
.single_item .insert section.bg {
    font-size: 1.5em;
    line-height: 2em;

}
.single_item article.content {
    line-height: 1.5em;
    font-size: 1.5em;
}
	
.frontpage img {
    max-width: 50%;
    margin: 0 auto;
	padding-bottom: 2vh;
}

.insert.works figure img {
    height: auto;
    max-width: 50%;
    margin: 0 auto;

}
	
	

}