@font-face {
  font-family: "Zetkin";
  src: url("../src/fonts/Zetkin-Wide.woff2") format("woff2"), url("../src/fonts/Zetkin-Wide.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zetkin";
  src: url("../src/fonts/Zetkin-WideOblique.woff2") format("woff2"), url("../src/fonts/Zetkin-WideOblique.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "AtlantiqueMiami";
  src: url("../src/fonts/AtlantiqueMiami-Medium.woff2") format("woff2"), url("../src/fonts/AtlantiqueMiami-Medium.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AtlantiqueMiami";
  src: url("../src/fonts/AtlantiqueMiami-MediumItalic.woff2") format("woff2"), url("../src/fonts/AtlantiqueMiami-MediumItalic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Dyade";
  src: url("../src/fonts/Dyade-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(230, 230, 230, 0.5);
}

html {
  font-family: "Zetkin";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  padding-bottom: 36px;
  overflow-x: hidden;
}

header {
  width: 100%;
  padding: 10px 40px 0 40px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  grid-template-areas: "logo menu menu menu menu menu menu menu menu menu menu dot";
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 20;
}
header h1 {
  grid-area: logo;
  font-family: "Dyade";
  font-weight: normal;
  font-size: 20px;
  line-height: 17px;
  letter-spacing: 0.05em;
  transform: translateY(-7px);
}
header h1 a {
  color: black;
  text-decoration: none;
}
header nav {
  grid-area: menu;
}

#menu-shadowwrapper {
  width: 100%;
  height: 100%;
}

#menu-innerwrapper {
  max-width: 1100px;
  margin: 0 auto;
}

#menu {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
#menu li.menu_item {
  display: block;
  width: 20%;
  max-width: 174px;
  height: 28px;
  list-style: none;
  font-family: "Zetkin";
  font-size: 11px;
  line-height: 26px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: normal;
  text-align: center;
  text-transform: uppercase;
  border-radius: 14px;
  border: 1px solid black;
  background-color: white;
  transition: all 250ms ease-in-out;
  cursor: pointer !important;
}
#menu li.menu_item a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
#menu li.menu_item.current, #menu li.menu_item:hover {
  color: white;
  background-color: black;
  transition: all 250ms ease-in-out;
}
#menu li.menu_item.current a, #menu li.menu_item:hover a {
  color: inherit;
}

#asterisk {
  border: none;
  background: none;
  width: 1.8vw;
  height: 1.8vw;
  display: none;
}
#asterisk img {
  display: block;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center;
}

#shop-buttons {
  grid-area: dot;
  justify-self: end;
}

#custom-select {
  display: none;
  width: 45px;
  height: 28px;
  position: relative;
  font-family: "Zetkin";
  font-size: 11px;
  letter-spacing: 0.05em;
}

.select-hidden {
  display: none;
  visibility: hidden;
}

.select-styled {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 7px 9px 0 0;
  text-align: right;
}
.select-styled:hover {
  cursor: pointer;
}
.select-styled svg {
  position: absolute;
  top: 42%;
  right: 0;
  width: 7px;
  fill: black;
}

.select-options {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 999;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
}
.select-options.hidden {
  display: none;
}
.select-options li {
  margin: 0;
  padding: 0 9px 0 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: pointer;
}

#cart-preview {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: none;
  font-family: "Zetkin";
  text-align: center;
  color: white;
  background-color: black;
  position: sticky;
  cursor: pointer;
}
#cart-preview.hidden {
  display: none;
}
#cart-preview .snipcart-items-count {
  opacity: 1;
  color: white;
}
#cart-preview .snipcart-items-count.hide {
  opacity: 0;
  color: black;
}

main.grid {
  width: 100%;
  padding: 0 40px 40px 40px;
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 0 10px;
  overflow-x: hidden;
}

#left-col {
  grid-column: 1/6;
}
#left-col.hidden {
  display: none;
}

#right-col {
  grid-column: 7/12;
}
#right-col.hidden {
  display: none;
}

#uni-col {
  grid-column: 1/6;
}
#uni-col.hidden {
  display: none;
}

section.actu {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, auto);
  gap: 10px;
  margin-bottom: 72px;
  max-width: 680px;
}
section.actu h2 {
  grid-column: 2/-1;
  grid-row: 1/2;
  font-size: 30px;
  line-height: 36px;
  text-transform: uppercase;
  font-weight: normal;
  margin-bottom: 72px;
}
section.actu h6 {
  grid-column: 2/4;
  grid-row: 2/3;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: normal;
  margin-bottom: 72px;
}
section.actu .actu_abstract {
  grid-column: 1/-1;
  grid-row: 3/4;
}
section.actu p {
  font-family: "AtlantiqueMiami";
  font-size: 20px;
  line-height: 26px;
}
section.actu p span.person_name {
  display: inline-block;
  width: 78px;
}
section.actu p a {
  color: rgb(190, 190, 190);
  text-decoration: none;
}
section.actu sup {
  position: relative;
  top: -0.4em;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
section.actu h6.read-more {
  grid-column: 2/-1;
  grid-row: 4/5;
  margin-bottom: 0;
}
section.actu h6.read-more svg {
  display: inline-block;
  margin-right: 0.5em;
  width: 7px;
}
section.actu h6.read-more span, section.actu h6.read-more a {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
section.actu h6.read-more:hover span {
  text-decoration: underline;
}

@media screen and (orientation: portrait) and (max-width: 1149px) {
  header {
    width: 100%;
    padding: 10px 10px 0 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "logo logo dot dot";
    gap: 10px;
  }
  header h1 {
    grid-area: logo;
    font-size: 23px;
    line-height: 19px;
    letter-spacing: 0.05rem;
    transform: translateY(-5px);
  }
  header nav {
    position: fixed;
    left: 9px;
    right: 9px;
    bottom: 10px;
    height: 40px;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  #menu-wrapper {
    grid-column: 1/-1;
    grid-row: 1/-1;
    width: calc(100vw - 20px);
    justify-self: end;
    align-self: center;
    opacity: 0;
    background-color: black;
    -webkit-clip-path: inset(0% 0% 0% 0% round 20px);
            clip-path: inset(0% 0% 0% 0% round 20px);
    position: relative;
    height: 100%;
  }
  #menu-wrapper.initial {
    display: block;
    width: calc(100vw - 20px);
    height: 40px;
    color: white;
    opacity: 1;
    position: relative;
  }
  #menu-wrapper.notvisible {
    position: relative;
    display: block;
    animation-name: closewrapper;
    animation-duration: 200ms;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
    pointer-events: none;
  }
  #menu-wrapper.visible {
    display: block;
    width: calc(100vw - 20px);
    animation-name: openwrapper;
    animation-duration: 200ms;
    animation-delay: 200ms;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
  }
  @keyframes openwrapper {
    0% {
      margin-right: 100px;
      transform-origin: center right;
      transform: scale(0, 0);
      color: black;
      opacity: 0;
    }
    5% {
      margin-right: 100px;
      border-radius: 5px;
      transform-origin: center right;
      transform: scale(0.01, 0.3);
      color: black;
      opacity: 1;
    }
    65% {
      color: white;
    }
    100% {
      margin-right: 0;
      border-radius: 20px;
      transform-origin: center right;
      transform: scale(1, 1);
      color: white;
      opacity: 1;
    }
  }
  @keyframes closewrapper {
    0% {
      margin-right: 0;
      border-radius: 20px;
      transform-origin: center right;
      transform: scale(1, 1);
      color: white;
      opacity: 1;
    }
    35% {
      color: black;
    }
    95% {
      margin-right: 100px;
      border-radius: 5px;
      transform-origin: center right;
      transform: scale(0.01, 0.3);
      color: black;
      opacity: 1;
    }
    100% {
      margin-right: 100px;
      transform-origin: center right;
      transform: scale(0, 0);
      color: black;
      opacity: 0;
    }
  }
  #menu-shadowwrapper {
    width: calc(100vw - 20px);
    height: 100%;
  }
  #menu-shadowwrapper::before {
    content: "";
    width: calc(100vw - 20px);
    height: 100%;
    position: absolute;
    z-index: 2;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    pointer-events: none;
    box-shadow: inset -60px 0px 15px -50px black, inset 60px 0px 15px -50px black;
    border-radius: 22px;
  }
  #menu-innerwrapper {
    width: 100%;
    height: 100%;
    overflow-y: hidden;
    overflow-x: scroll;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }
  #menu-innerwrapper::-webkit-scrollbar {
    display: none; /* Webkit */
  }
  #menu {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 20px;
    width: -moz-fit-content;
    width: fit-content;
    height: 100%;
    padding: 0 18px;
    display: block;
    width: -moz-max-content;
    width: max-content;
  }
  #menu li.menu_item {
    display: block;
    width: -moz-max-content;
    width: max-content;
    height: 100%;
    flex-grow: 0;
    flex-shrink: 1;
    font-size: 12px;
    line-height: 39px;
    text-align: center;
    border-radius: 0;
    border: none;
    color: inherit;
    background-color: transparent;
    float: left;
    margin-right: 20px;
    -webkit-tap-highlight-color: transparent;
  }
  #menu li.menu_item:last-of-type {
    margin-right: 0;
  }
  #menu a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
  }
  #asterisk {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 10;
    border: none;
    background: none;
    width: 41px;
    height: 41px;
    cursor: pointer;
    display: block;
    opacity: 1;
    padding: 0;
    transition-delay: 500ms;
    transition-property: all;
    transition: all 400ms ease-in-out;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
  }
  #asterisk.hidden {
    opacity: 0;
    transform-origin: center center;
    transform: rotate(-90deg);
    pointer-events: none;
    transition-delay: 100ms;
    transition-property: all;
    transition: all 400ms ease-in-out;
    padding: 15px;
  }
  #asterisk:active {
    opacity: 0.9;
  }
  #shop-buttons {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 20;
  }
  #custom-select {
    width: 45px;
    height: 28px;
    position: relative;
    font-family: "Zetkin";
    font-size: 12px;
    letter-spacing: 0em;
  }
  .select-hidden {
    display: none;
    visibility: hidden;
  }
  .select-styled {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 7px 9px 0 0;
    text-align: right;
  }
  .select-styled:hover {
    cursor: pointer;
  }
  .select-styled svg {
    position: absolute;
    top: 42%;
    right: 0;
    width: 7px;
    fill: black;
  }
  .select-options {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 999;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
  }
  .select-options.hidden {
    display: none;
  }
  .select-options li {
    margin: 0;
    padding: 0 9px 0 0;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    cursor: pointer;
  }
  main.grid {
    width: 100%;
    padding: 0 10px 10px 10px;
    margin-top: 58px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 0 10px;
  }
  #left-col {
    grid-column: 1/5;
    grid-row: 1/2;
  }
  #right-col {
    grid-column: 1/5;
    grid-row: 2/3;
  }
  #uni-col {
    grid-column: 1/5;
    grid-row: 1/2;
  }
  section.actu {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 58px;
  }
  section.actu h2 {
    grid-column: 1/-1;
    font-size: 24px;
    line-height: 29px;
    text-transform: uppercase;
    font-weight: normal;
    margin-bottom: 58px;
  }
  section.actu h6 {
    grid-column: 2/-1;
    grid-row: 2/3;
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
    font-weight: normal;
    margin-bottom: 58px;
  }
  section.actu .actu_abstract {
    grid-column: 1/-1;
  }
  section.actu p {
    font-family: "AtlantiqueMiami";
    font-size: 20px;
    line-height: 26px;
  }
  section.actu p span.person_name {
    width: 78px;
  }
  section.actu h6.read-more {
    grid-column: 2/-1;
  }
}