:root {
    --font-size-body: 17px;
    --font-size-bigger: 19px;
    --font-size-mono: 15px;

    --color-gray: #767676;
    --color-black: #263238;
    --color-faded: #BDBDBD;
    --color-faded-light: #e6e5e5;
    --color-background-light: #F5F5F5;

    --color-pink: #E782A9;
    --color-red: #E4002B; 

    --radius: 15px;
    --radius-small: 0.5rem;
    --radius-mini: 0.3rem;

    --width: 700px;

    --font-family-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, Roboto, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
    --font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* general -------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  text-rendering: optimizeLegibility;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
}

* {
  box-sizing: border-box 
}

* {
  margin: 0;
  padding: 0;
}

html {
    width: 100%;
    font-family: var(--font-family-body);
    font-size: var(--font-size-body);
    background-color: var(--color-background-light);
  }

body {
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    -ms-font-feature-settings: "kern" 1;
    -o-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1,"kern","kern";
    -webkit-font-kerning: normal;
    font-kerning: normal;
    line-height: 1.5;
    color: var(--color-black);
  }

  main {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
  }

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
  width: auto;
  margin: 0 auto;
  object-fit: cover;
  -o-object-fit: cover; /* for older versions of Opera */
  object-position: center; /* for older versions of Safari */
  max-height: 90vh;
}



p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;

}

/* typography -------------------------------------------------------------------- */

a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-text);
  text-underline-offset: 3px;
  color: inherit;
  transition: 100ms text-decoration-color ease-in-out;
}

a:hover {
  text-decoration-color: var(--color-gray);
}

p,
  ol,
  ul,
  pre {
    margin: 0 0 1rem 0; 
  }

  blockquote {
    margin: 1rem 0; 
  }

  ul {
    list-style-type: none;
    margin-left: 2rem;
  }
  
  ul li:before,
  ol ul li:before {
    position: absolute;
    margin-left: -2rem;
    /* content: "Ă˘â‚¬â€ť"; */
    color: var(--color-faded);
    font-weight: 500;
    margin-right: 0.5rem;
  }
  
  ol {
    list-style-type: none;
    margin-left: 2rem;
    counter-reset: list;
  }
  
  ol li:before {
    position: absolute;
    margin-left: -2rem;
    color: var(--color-faded);
    font-weight: 500;
    margin-right: 0.5rem;
    content: counter(list) ".";
    counter-increment: list;
  }

  b,
  strong {
    font-weight: 500;
  }
  
  aside,
  aside p {
    font-size: 0.8rem;
    color: var(--color-gray);
  }
  
  aside p:first-of-type {
    margin-top: 0;
  }

  aside p:last-of-type {
    margin-bottom: 0;
  }
  
  aside a {
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--color-faded);
    text-underline-offset: 0px;
  }
  
  aside code {
    background: none;
    padding: 0;
    font-size: calc(var(--font-size-mono) * 0.9);
  }
  
  pre,
  code {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-mono);
  }
  
  pre {
    overflow: auto;
    padding: 0.5rem;
    overflow-x: scroll;
    border-radius: var(--radius-mini);
    background-color: var(--color-offset);
    tab-size: 1rem;
    white-space: pre;
    font-size: var(--font-size-pre-mono);
  }
  
  code {
    padding: 2px 6px 3px 6px;
    border-radius: var(--radius-mini);
    background: var(--color-offset);
    color: var(--color-text);
  }

  pre code {
    background-color: var(--color-offset);
    /* font-size: var(--font-size-pre-mono); */
    border-radius: 0;
    padding: 0;
  }
  
  blockquote {
    border-left: 2px solid var(--color-offset);
    padding-left: 1rem;
    color: var(--color-gray-lighter);
  }

  hr {
    border: none;
    border-top: 2px solid var(--color-offset);
    color: var(--color-faded);
    margin: 2rem 0;
  }

/* homescreen -------------------------------------------------------------------- */

.homescreen {
  padding: 1rem;
  width: 100vw;
  height: 100vh;
  display: flex;
  gap: 1rem;
  background-color: var(--color-faded-light);
}

/* Responsive layout for tablets and mobile */
@media (max-width: 1024px) {
  .homescreen {
      flex-direction: column;
      height: 100%;
  }
}

/* common components -------------------------------------------------------------------- */

.homescreen-column {
  width: 33.333%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .homescreen-column {
    width: 100%;
  }
}


.homescreen-column.current {
  flex: 1;
}

.current h4 {
    font-weight: normal;
    margin-bottom: 2rem;
    position: absolute;
    margin: 1rem;
    z-index: 4;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--color-text);
    text-underline-offset: 3px;
    color: inherit;
    transition: 100ms text-decoration-color ease-in-out;
}

.item-card {
  border-radius: 0.5rem;
  height: 100%;
  background-color: var(--color-background-light);
}

.item-card-content {
  padding: 1rem;
}

/* Remove padding for cards with images */
.item-card:has(img) {
  padding: 0;
}

.item-subcontent {
  width: 100%;
  max-width: 50%;
  border-radius: 0.5rem;
  display: flex;
  background-color: var(--color-black);
  color: var(--color-background-light);
  flex: 1;
}

/* left columnn components -------------------------------------------------------------------- */

.item-header {
  flex: 1;
}

.item-header-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: var(--font-size-bigger);
  font-weight: normal;
  font-size: 5rem;
  line-height: 0.8;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
  padding-right: 2rem;
}

.item-description {
  padding-right: 2rem;
}

.item-description a, .item-archive h4 {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: inherit;
  text-underline-offset: 3px;
  color: inherit;
  transition: 100ms text-decoration-color ease-in-out;
}

.item-description a:hover {
  text-decoration-color: var(--color-gray);
}

.item-visit {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.item-visit-wrapper {
  flex: 1;
  display: flex;
  gap: 1rem;
}

.item-hours {
  display: flex;
}

.item-hours-text {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-hours-static {
  max-width: 18ch;
}

.item-thumbnail {
  overflow: hidden;
}

.item-thumbnail img {
  border-radius: 0.5rem;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.item-map {
  height: 50%;
  flex: 1;
  background-color: rgb(136, 183, 146);
}

@media (max-width: 1024px) {
  .item-map {
      min-height: 300px;
  }
}



/* center columnn components -------------------------------------------------------------------- */

.item-event {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-details {
  padding: 1rem;
}

.current a {
  text-decoration: none;
}

.event-title {
  font-family: 'Times New Roman', Times, serif;
  font-weight: normal;
  font-size: 5rem;
  line-height: 0.8;
  letter-spacing: -0.05em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.event-cover {
  aspect-ratio: 1/1.5;
  position: relative;
  border-radius: 0.5rem 0.5rem 0 0;
  flex: 1;
  overflow: hidden;
}

.event-cover img {
  position: absolute;
  border-radius: 0.5rem 0.5rem 0 0;
  object-fit: cover;
  aspect-ratio: 1/1.5;
  height: 100%;
  width: 100%;
}

@media (max-width: 1024px) {
  .event-cover {
    aspect-ratio: 1/1;
  }
}

.event-artist {
  margin-bottom: 1rem;
}

/* right columnn components -------------------------------------------------------------------- */

/* .item-calendar-title {
  margin-bottom: 1rem;
} */

.item-calendar-header {
  display: flex;
  justify-content: space-between;
}

.item-calendar-header h4 {
  font-weight: normal;
  margin-bottom: 2rem;
}

.calendar-event {
  display: flex;
  background-color: var(--color-faded-light);
  padding: 0.5rem;
  border-radius: var(--radius-mini);
  gap: 1rem;
}

.calendar-event-details {
  width: 100%;
}

.calendar-event-type {
  color: var(--color-gray);
}

.calendar-event-date {
  min-width: 12ch;
}

.time-data {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-mono);
  line-height: 1.75;
  min-width: 5ch;
}

.item-calendar-list ul {
  list-style-type: disc;
  margin-left: 0rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0;
}

.item-calendar-list p {
  margin: 0;
}

.item-archive .item-archive-slideshow {
  position: relative;
  height: 100%;
  width: 100%; 
}

@media (max-width: 1024px) {
  .item-archive-slideshow {
    aspect-ratio: 1.5 / 1;
  }
}

.item-archive-slideshow {
  position: relative;
  overflow: hidden;
  height: auto;
}

.item-archive-slideshow img {
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.item-archive-slideshow img.active {
  opacity: 1;
  z-index: 3;
}

.item-archive h4 {
  font-weight: normal;
  margin-bottom: 2rem;
  position: absolute;
  margin: 1rem;
  z-index: 4;
}

/* footer -------------------------------------------------------------------- */

footer {
    width: 100%;
    background-color: var(--color-background-light);
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5rem;
    border-top: 1px solid;
    border-color: var(--color-faded-light);
  }
  
footer div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

  @media (max-width: 1024px){
    footer {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-bottom: 5rem;
    }
  }

footer ul {
    list-style-type: none;
    margin-left: 0;
}

footer a {
    text-decoration: none;
    color: inherit;
}

footer a:hover {
    opacity: 70%;
}

footer p {
  margin: 0;
}

.external-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: inherit;
  text-underline-offset: 4px;
  color: inherit;
  transition: 100ms text-decoration-color ease-in-out;
}

.external-link-icon {
  display: inline;
  height: 0.7rem;
}


/* navbar -------------------------------------------------------------------- */

.navbar {
  display: flex;
  align-items: flex-end;
  position: fixed;
  left: 0rem;
  bottom: 0rem;
  z-index: 9;
  gap: 0.5rem;
  /* gap: 0.7rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-small); */
}

.navbar-item {
  background-color: var(--color-faded-light);
  padding: 0.5rem 2rem;
  border-radius: 0 var(--radius-small) 0 0;
  /* box-shadow: 0px 0px 10px var(--color-faded); */
}

.navbar a {
  text-decoration: none;
  /* background-color: #E4002B; */
}

/* events -------------------------------------------------------------------- */

.event-container {
  max-width: var(--width);
  margin: 0 auto 5rem auto;
}

@media (max-width: 634px){
  .event-container {
    padding: 0rem 1rem 0;
    margin: 0 0 3.5rem 0;
  }
}

.event-featured-image  {
  border-radius: 0 0 var(--radius) var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.event-content h1 {
  font-family: 'Times New Roman', Times, serif;
  font-weight: normal;
  font-size: var(--font-size-bigger);
  font-size: 5rem;
  line-height: 0.8;
  letter-spacing: -0.05em;
  margin: 3rem 0 3rem 0;
}

.event-content picture {
  margin-bottom: 1rem;
}

.event-content picture:first-child {
  margin-top: 3rem;
}

.event-content picture:last-child {
  margin-bottom: 3rem;
}

/* posts -------------------------------------------------------------------- */

.post-content {
    max-width: var(--width);
    margin: 0 auto 5rem auto;
}

@media (max-width: 634px){
  
  .post-content {
      padding: 0rem 1rem 0;
      margin: 0 0 3.5rem 0;
    }

}

.post-content h1 {
  font-family: 'Times New Roman', Times, serif;
  font-weight: normal;
  font-size: var(--font-size-bigger);
  font-size: 5rem;
  line-height: 0.8;
  letter-spacing: -0.05em;
  margin: 3rem 0 2rem 0;
}

img {
  border-radius: var(--radius);
}

/* archive -------------------------------------------------------------------- */

.archive-container {
  display: grid;
  gap: 1rem;
  /* grid-template-columns: 1fr 2fr; */
  grid-template-columns: 3fr;
  background-color: var(--color-faded-light);
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
}


@media (max-width: 1024px) {
  .archive-container {
      width: 100%;
      display: flex;
      flex-direction: column;
      padding: 0rem;
  }
}

.archive-menu {
  padding: 1rem;
  margin: 1rem 0rem 1rem 1rem;
  border-radius: var(--radius-small);
  height: max-content;
  /* position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000; */
}

.archive-menu h1 {
  font-family: 'Times New Roman', Times, serif;
  font-weight: normal;
  font-size: var(--font-size-bigger);
  font-size: 5rem;
  line-height: 0.8;
  letter-spacing: -0.05em;
  /* margin: 0rem 0 2rem 0; */
}

.archive-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1rem;
  /* padding: 1rem 1rem 1rem 0rem; */
}

@media (max-width: 1024px) {
  .archive-content {
      display: flex;
      flex-direction: column;
      padding: 1rem;
  }
}

.archive-item {
  max-width: 100%;
  height: 40rem;
}

@media (max-width: 1024px) {
  .archive-item {
    max-width: 100%;
    height: auto;
  }
}

.menu-over {
  padding: 1rem;
  border-radius: var(--radius-small);
  height: max-content;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  width: 32%;
}

@media (max-width: 1024px) {
  .menu-over {
      display: none;
  }
}

.menu-over h1 {
  font-family: 'Times New Roman', Times, serif;
  font-weight: normal;
  font-size: var(--font-size-bigger);
  font-size: 5rem;
  line-height: 0.8;
  letter-spacing: -0.05em;
  margin: 0rem 0 2rem 0;
}


/* program -------------------------------------------------------------------- */

.program-container h3 {
  font-weight: 400;
  font-size: var(--font-size-body);
}

.program-container p {
  margin: 0;
}

.program-item {
  margin-bottom: 2rem;
}

.program-date {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-mono);
}


.block {
  margin-bottom: 3rem;
}

h3 {
  font-size: 1rem;
  font-weight: 400;
}

h3:has(+ ol) {
  margin-bottom: 1rem;
}

p:has(+ svg) {
  margin-bottom: 0;
}

.textarea-block {
  margin-bottom: 3rem;
}

figure {
  margin: 1rem 0rem;
}

figure.logo img {
  max-width: 200px;
  border-radius: 0;
}

figure + .textarea-block {
  margin-top: 3rem;
}


footer {
  text-transform: lowercase;
}

figure:has(img):first-of-type {
    margin-top: 3rem;
}

figure.img:last-of-type {
    margin-bottom: 5rem;
}

footer ul li.language.active {
  display: none;
}

.footer-column ul {
  margin-bottom: 0rem;
}

footer ul li.language {
  margin-top: 1rem;
}
