/* Local Font Faces */
@font-face {
  font-family: "Alexandria FLF";
  src: url("../fonts/AlexandriaFLF.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bauhaus";
  src: url("../fonts/bauhaub.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Ensure inline bold text uses Bauhaus */
b,
strong {
  font-family: "Bauhaus", sans-serif;
  font-weight: normal;
}

/* Variables */
:root {
  --main-bg-color: rgb(128, 0, 0);
  --main-txt-color: rgb(255, 0, 0);
  --main-accent-color: rgb(0, 0, 255);
  --font-x-large: 4rem;
  --font-large: 2.5rem;
  --font-medium: 2.2rem;
  --font-small: 1.5rem;
  --gap-small: 1rem;
  --gap-medium: 2rem;
  --gap-large: 3rem;
  --col-width: 20rem;
}

a,
.article a {
  color: var(--main-txt-color);
  overflow-wrap: break-word;
  text-decoration: underline;
}

a:hover {
  color: var(--main-accent-color);
  transition: all 0.5s;
}

p {
  font-family: "Alexandria FLF", sans-serif;
  font-weight: 400;
  line-height: 1.4;
}

.site-title:hover a {
  color: var(--main-accent-color);
}

h2 {
  text-transform: uppercase;
  margin: 0;
  margin-bottom: 0.5rem;
  line-height: 1;
  font-size: var(--font-medium);
}

h1,
h2,
h3,
h4,
h5,
h6,
.menu,
.date,
.post-date,
.curved-text {
  font-family: "Bauhaus", sans-serif;
}

h3 {
  text-transform: uppercase;
  font-size: var(--font-small);
  line-height: 1;
  text-align: left;
}

h4 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  line-height: 1;
}

/* General Reset */
body,
ul,
figure {
  margin: 0;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Body Styles */
body {
  font-size: 18px;
  font-family: "Alexandria FLF", sans-serif;
  background-color: var(--main-bg-color);
  color: var(--main-txt-color);
  text-align: left;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.grid {
  --columns: 12;
  --gutter: 6rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}

.grid>.column {
  /* margin-bottom: var(--gutter); */
}

footer p {
  margin: 0;
}

.footer-content {
  padding-inline: var(--gap-medium);
}

.footer-contact-info {
  margin-top: 4rem;
}

footer a,
footer p {
  font-family: "Bauhaus";
  font-size: var(--font-small);
  text-transform: uppercase;
}

.footer-contact-info a:hover {
  color: var(--main-accent-color);
}

footer p {
  line-height: 1;
  margin-bottom: 0.2rem;
}

.footer-contact-info ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Create 3 equal columns */
}

@media (max-width: 768px) {
  .footer-contact-info ul {
    grid-template-columns: repeat(2,
        1fr);
    /* Switch to a single column on smaller screens */
  }
}

@media (max-width: 340px) {
  .footer-contact-info ul {
    grid-template-columns: repeat(1,
        1fr);
    /* Switch to a single column on smaller screens */
  }
}

.footer-title {
  margin-bottom: 1.5rem;
}

.footer-title a {
  font-size: var(--font-x-large);
  text-decoration: none !important;
}

@media screen and (min-width: 60rem) {
  body {
    /* --padding: 2rem; */
  }

  .grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .grid>.column {
    grid-column: span var(--columns);
  }
}

/* Header Styles */
header {
  display: flex;
  align-items: center;
  overflow: hidden;
  text-transform: uppercase;
  background: linear-gradient(to bottom,
      rgba(42, 12, 0, 0.8),
      rgba(0, 0, 0, 0));
  /* Gradient from dark to transparent */
  width: -webkit-fill-available;
  color: var(--main-txt-color);
  position: sticky;
  top: 0;
  z-index: 999;
  padding-left: 1.5rem;
  flex: 0 0 80px;
}

.green {
  color: var(--main-accent-color);
}

header * {
  margin: 0;
  font-size: var(--font-x-large);
  font-weight: bold;
  color: var(--main-txt-color);
  white-space: nowrap;
  text-decoration: none;
}

header .infobar {
  display: flex;
  align-items: center;
  gap: var(--gap-medium);
  line-height: 1;
}

header li {
  line-height: 0.8;
}

header button {
  background: none;
  border: none;
  padding: 0;
  position: relative;
}

header button p {
  color: var(--main-accent-color);
  cursor: pointer;
}

/* Menu Styles */
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menuItem {
  display: block;
  text-decoration: none;
}

.menuItem:hover {
  text-decoration: underline;
}

.hamburger {
  z-index: 100;
  cursor: pointer;
}

.menufooter p {
  font-size: 1rem;
  text-transform: initial;
  font-weight: 400;
  margin-bottom: 0.5rem;
  white-space: initial;
}

.menuContent {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  height: -moz-available;
}

.menuContent ul {
  flex: 1;
}

.menufooter h4 {
  font-size: var(--font-medium);
  margin-bottom: 1.5rem;
  color: var(--main-accent-color);
}

.menu li {
  /* line-height: 1.4; */
}

.hamburgerOpen span {
  width: 5rem;
  display: block;
  height: 0.3rem;
  background: var(--main-accent-color);
  margin-block: 0.5rem;
}

@media screen and (max-width: 600px) {
  .hamburgerOpen span {
    width: 2rem;
    height: 0.2rem;
    margin-block: 0.25rem;
  }
}

.hamburgerOpen {
  top: 0.35rem;
  cursor: pointer;
}

.menu {
  position: fixed;
  line-height: 3rem;
  transform: translateX(-100%);
  transition: transform 0.2s;
  padding: var(--gap-small);
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  background-color: var(--main-bg-color);
  list-style: none;
  font-size: var(--font-medium) !important;
  display: flex;
  width: 300px;
  flex-direction: column;
  z-index: 20;
}

.menufooter {
  width: 200px;
  text-align: left;
}

.menu h3 {
  color: var(--main-accent-color);
  /* margin-top: -15px; */
}

.menu a {
  font-size: var(--font-medium);
}

.menuHeader,
.menuHeader p {
  justify-content: space-between;
  display: flex;
  align-items: flex-start;
  font-size: var(--font-large);
}

.menuHeader {
  margin-bottom: 1rem;
}

.showMenu {
  transform: translateX(0);
}

main {
  /* overflow: scroll; */
}

main.hz {
  flex-grow: 1;
  overflow: hidden;
  /* Prevents scrolling outside of our intended areas */
  display: flex;
  /* Ensures direct children can be flex items */
  flex-direction: column;
  /* Stacks children vertically */
  max-height: calc(100svh - 80px);
}

/* Main Styles */
/* main {
  display: flex;
  height: calc(100dvh - 80px); 
  box-sizing: border-box;
  flex-direction: column;
} */

main.exhibition-container {
  flex-direction: unset;
  flex-wrap: wrap;
}

.content {
  /* overflow-x: scroll; */
  /* height: 100%; */
  padding-block: var(--gap-small);
  padding-inline: 1.5rem;

  flex-grow: 1;
  display: flex;
  /* Adapt this if your content should be flex */
  overflow-x: auto;
  /* Enables horizontal scrolling */
  overflow-y: hidden;
  /* Disables vertical scrolling within content area */
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
  scrollbar-width: none;
  /* Firefox */
}

.page-content {
  /* overflow-y: scroll; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cover img {
  width: 100%;
  margin-top: 2rem;
  max-height: 600px;
  object-fit: contain;
}

.post p.post-readmore {
  margin-top: var(--gap-small);
}

.description p {
  margin-top: 0;
}

/* Exhibitions Styles */
.home-scroller {
  display: flex;
  height: 50%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: var(--gap-medium);
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: thin;
  padding: var(--gap-small) 1.5rem;

  gap: var(--gap-medium);
  scroll-snap-type: x mandatory;
  overflow-y: hidden;
  scroll-behavior: smooth;
}

.home-scroller::-webkit-scrollbar {
  display: none;
}

.home-scroller .excerpt {
  font-size: 15px;
}

.item {
  /* scroll-snap-align: center; */
}

.item figure {
  min-width: 5rem;
}

/* posts Styles */
.posts {
  display: flex;
  gap: var(--gap-medium);
  overflow-y: hidden;
}

.post {
  flex-basis: var(--col-width);
  flex-shrink: 0;
  flex-grow: 0;
  height: 100%;
  min-width: 15rem;
}

.posts a {
  text-decoration: none;
  color: var(--main-txt-color);
  height: 100%;
}

.posts img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: url(#duotone);
}

.posts img:hover,
.past-event:hover {
  filter: none;
}

.posts img:hover ~ .post-content .post-title {
  color: var(--main-accent-color);
  transition: 0.3s all;
}

.item .big-image {
  aspect-ratio: 4 / 3;
  width: 25rem;
  height: 100%;
  flex-shrink: 0;
}

@media screen and (max-width: 600px) {
  .item .big-image {
    width: 80vw;
  }
}

.item .small-image {
  aspect-ratio: 1 / 3;
  height: 100%;
  width: 5rem;
}

.item a {
  display: flex;
  gap: var(--gap-medium);
  text-decoration: none;
  height: 100%;
  color: var(--main-txt-color);
}

.item .info h4 {
  font-size: 5vh;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
  text-align: left;
  overflow: hidden;
  /* flex: 0 0 5vh; */
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* number of lines to show */
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Miscellaneous Styles */
figure {
  margin: 0;
}

.item .info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 35rem;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: url(#duotone);
}

.past-event {
  filter: url(#duotone);
}

.item:hover img,
.past-event:hover {
  filter: none;
}

.item:hover h4 {
  color: var(--main-accent-color);
  transition: 0.3s all;
}

.item .date {
  text-transform: uppercase;
  font-size: 3vh;
  line-height: 1;
  text-align: left;
}

.excerpt {
  flex: 1 0 auto;
}

/* item Layout Styles */
.exhibition-layout {
  display: flex;
  padding-inline: var(--gap-small);
  gap: var(--gap-small);
}

.exhibition-date {
  font-size: var(--font-medium);
  text-transform: uppercase;
  margin: 0;
}

/* Exhibition Gallery Styles */
.exhibition-gallery {
  overflow-x: auto;
}

/* post Category Styles */
.post-category {
  margin-top: 0 !important;
}

.secondary-type {
  color: var(--main-accent-color);
  font-style: italic;
  font-family: "Alexandria FLF", sans-serif;
  text-decoration: none;
  font-size: 1rem;
  font-weight: lighter;
  text-transform: lowercase;
}

.artists .secondary-type {
  text-transform: initial;
}

/* post Date Styles */
.post-date {
  /* color: var(--main-accent-color); */
  font-size: var(--font-small);
}

/* post Info Styles */
.post-date,
.post-title {
  text-transform: uppercase;
  line-height: 1.2;
  text-align: left;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  text-align: left;
}

.post-title {
  height: 5.2rem;
  margin-bottom: 1rem !important;
}

.info>*,
.post-content>*,
.post-content .post-title {
  margin: 0;
  margin-top: 0.2rem;
}

p.post-text {
  margin-top: var(--gap-small);
}

/* About Styles */

.content.about {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-medium);
  overflow: hidden;
  font-size: 24px;
}

.about .member {
  display: flex;
  flex-direction: column;
}

.about .member img {
  width: var(--col-width);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.member a>* {
  margin: 0;
  margin-bottom: 0.5rem;
}

.member a {
  text-decoration: none;
}

.member .member-position {
  color: var(--main-txt-color) !important;
}

.member h3 {
  color: var(--main-accent-color);
  font-family: "Alexandria FLF", sans-serif;
  text-decoration: none;
  font-size: 1rem;
  font-weight: lighter;
  font-style: italic;
  text-transform: capitalize !important;
}

.member-email {
  text-transform: lowercase;
  color: var(--main-txt-color);
}

.container {
  display: flex;
  gap: var(--gap-medium);
  height: 100%;

  padding-right: 4rem;
  flex: 1 0 auto;
  overflow: hidden;
}

.content .container {
  grid-template-columns: minmax(auto, var(--col-width)) 10rem 1fr;
}

.container .description {
  /* column-width: var(--col-width); */
  /* column-gap: var(--gap-medium); */
  overflow-y: scroll;
  padding-right: 1rem;
  overflow-x: hidden;
  width: var(--col-width);
  padding-bottom: 2rem;
}

.description-column {
  display: flex;
  flex-direction: column;
}

.post-text {
  flex: 1 1 4rem;
}

.description>* {
  max-width: var(--col-width);
}

.container .related {
  flex-basis: calc(var(--col-width) / 2);
  flex-grow: 1;
  flex-shrink: 0;
  max-width: var(--col-width);
}

.related {
  text-align: left;
}

.article {
  column-width: var(--col-width);
  column-gap: var(--gap-medium);
}

.article-content .container {
  overflow-x: scroll;
}

.article p:first-child {
  margin-top: 0;
}

.article img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  object-position: top;
}

.article>*>*,
.article>* {
  max-width: var(--col-width);
}

.post .image {
  background-color: var(--main-txt-color);
  flex-shrink: 0;
  overflow: hidden;
  height: 14rem;
}

.post {
  display: flex;
  flex-direction: column;
  gap: var(--gap-small);
  height: 100%;
}

/* .post .info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
} */

.article figcaption {
  text-align: left;
  line-height: 1.4;
}

.post .image figure {
  height: 100%;
}

ul.team {
  /* display: flex;
  gap: var(--gap-small);
  padding-block: var(--gap-large);
  flex-wrap: wrap; */
  justify-content: space-around;
}

.team-list {
  width: 100%;
}

.team-list h2 {
  margin-bottom: var(--gap-small);
}

.related a {
  color: var(--main-txt-color);
}

.related-item {
  margin-bottom: var(--gap-medium);
}

.title-container {
  padding-inline: 1.5rem;
  /* padding-top: var(--gap-small); */
  display: flex;
  align-items: flex-start;
  gap: var(--gap-small);
}

.title-container .secondary-type {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.page-content {
  max-width: 80rem;
  margin: auto;
  padding: var(--gap-medium);
}

.page-title {
  color: var(--main-accent-color);
  text-transform: uppercase;
  font-size: var(--font-x-large);
  margin: 0;
  max-width: 75rem;
  line-height: 1;
  text-align: center;
  margin-block: 2rem;
}

footer {
  margin-top: 2rem;
}

footer a {
  text-decoration: none;
}

footer .grid {
  --gutter: 0rem !important;
}

.page-description {
  align-items: baseline;
  text-align: center;
  gap: 0.5rem;
}

.page-description p {
  font-size: 1.5rem;
  text-transform: initial;
  margin: 0;
}

.page-text {
  margin: auto;
  /* margin-bottom: 5rem; */
  width: 100%;
}

.page-text h2 {
  margin-top: 1rem;
}

.page-text p {
  font-size: 24px;
}

.page-text figure a img {
  max-width: 100%;
  max-height: 60vh;
}

.page-text figure {
  padding: 2rem;
  text-align: center;
}

.title-container .green {
  margin-bottom: 0;
}

.home-scroller.exhibitions a :nth-child(2) {
  order: 2;
}

.gallery {
  margin: 0;
  padding: 0;
}

/* Style for the ul element inside the gallery */
.gallery ul {
  list-style: none;
  /* Remove default bullet points */
  margin: 0;
  /* Remove default margin */
  padding: 0;
  /* Remove default padding */
  display: flex;
  /* Use flexbox for layout */
  flex-wrap: wrap;
  /* Allow wrapping of items */
  gap: 10px;
  /* Add space between items */
}

/* Style for each li element inside the gallery */
.gallery li {
  flex: 1 1 calc(33.33% - 10px);
  /* 3 items per row, accounting for gap */
  max-width: calc(33.33% - 10px);
  /* Limit the max width for responsive */
  list-style: none;
  /* Remove list styling */
}

/* Style for the images inside the gallery */
.gallery img {
  display: block;
  /* Ensure images do not have extra space below */
}

/* Style for the figcaption element */
.gallery figcaption {
  text-align: center;
  /* Center-align the caption text */
  font-style: italic;
  /* Make the caption text italic */
  margin-top: 10px;
  /* Add some space above the caption */
  color: #666;
  /* Set a light grey color for the caption text */
}

.curved-text {
  z-index: 99;
  font-size: var(--font-small);
  fill: var(--main-accent-color);
  position: fixed;
  left: 0;
  right: 220px;
  top: 60px;
  bottom: 0;
  text-transform: uppercase;
  max-width: 80rem;
  pointer-events: none;
}

.excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4rem;
  flex-shrink: 10;
}

.excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* Default: 3 lines for desktop */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4rem;
  flex-shrink: 10;
}

/* Media query for mobile */
@media (max-width: 768px) {
  .excerpt {
    -webkit-line-clamp: 2;
    /* Limit to 2 lines on mobile */
    max-height: 2.5rem;
    /* Adjust max-height for 2 lines */
  }
}

.group-2 .info {
  order: 2;
}

.group-2 h4 {
  order: 1;
}

.group-2 .date,
.group-4 .date {
  order: 2;
  margin: 0;
}

.group-2 .excerpt,
.group-4 .excerpt {
  margin: 0;
}

@media (min-width: 768px) {

  .group-2 .date,
  .group-4 .date {
    width: 50%;
  }

  .group-2 .excerpt,
  .group-4 .excerpt {
    width: 50%;
  }
}

.group-2 .small-image,
.group-3 .small-image {
  position: relative;
  display: block;
  overflow: hidden;
  /* Ensures no overflow of pseudo-elements */
}

.group-2 .small-image::before,
.group-3 .small-image::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(33.33% - 5%);
  /* Offset by half the divider's height */
  left: 0;
  right: 0;
  height: 10%;
  /* Thickness of the divider */
  background-color: var(--main-bg-color);
}

.group-2 .small-image::after,
.group-3 .small-image::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: calc(33.33% - 5%);
  /* Offset by half the divider's height */
  left: 0;
  right: 0;
  height: 10%;
  /* Thickness of the divider */
  background-color: var(--main-bg-color);
}

.group-3 .info {
  order: 1;
}

.group-3 .small-image {
  order: 2;
}

.group-3 .big-image {
  order: 3;
  width: 5rem;
  aspect-ratio: 1 / 3;
}

.group-4 .small-image {
  order: 1;
}

.group-4 .big-image {
  order: 2;
}

.group-4 .info {
  order: 3;
}

.group-4 .excerpt {
  order: 1;
}

.group-4 h4 {
  order: 3;
}

.menu .secondary-type {
  position: absolute;
  bottom: var(--gap-small);
  max-width: 100%;
  text-wrap: wrap;
  line-height: 1;
  text-align: left;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.hide-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.scroll-container {
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

.scroller {
  display: flex;
  gap: var(--gap-small);
  animation: marquee 10s linear infinite;
  padding-block: 0.5rem;
  will-change: transform;
}

.scroller h1,
.scroller h2 {
  transform: translateY(25%);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    /* Use exact computed distance to avoid gaps */
    transform: translateX(var(--marquee-distance, -50%));
  }
}

/* Pause on hover */
.scroll-container:hover .scroller {
  animation-play-state: paused;
}

.about-column {
  min-width: var(--col-width);
}

.about-column h2 {
  color: var(--main-accent-color);
}

.credits {
  font-size: 0.8rem;
}

.post-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-text {
  width: 100%;
  /* Ensure the width fits the container */
}

.related,
.attachments,
.links,
.related-artists {
  margin-bottom: 1rem;
}

.info-column {
  text-align: left;
  flex: 1 0 calc(var(--col-width) / 2);
}



svg.filter {
  position: absolute;
  pointer-events: none;
}

.back-button {
  background: transparent;
  border: none;
  color: var(--main-txt-color);
  font-size: 1rem;
  cursor: pointer;
  font-style: italic;
}

.back-button:hover {
  color: var(--main-accent-color);
}

footer {
  padding-bottom: 4rem;
}

footer hr {
  background: var(--main-accent-color);
  height: 5px;
  margin-bottom: 3rem;
  border: none;
}

.icon svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

svg.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.featured-pages-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.featured-page-item {
  display: flex;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid;
}

.featured-page-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.featured-page-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 1rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.featured-page-info {
  flex-grow: 1;
}

.featured-page-title {
  margin: 0 0 1rem;
}

.featured-page-excerpt {
  margin: 0;
}

.artists-list {
  margin: 1rem 0;
  width: 100%;
}

.artists-list-items {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.artists-list-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid;
}

.artists-list-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.artists-list-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.artists-list-info {
  flex-grow: 1;
}

.artists-list-title {
  font-size: 2rem;
  margin: 0 0 0.25rem;
}

.artists-list-excerpt {
  font-size: 1rem;
  margin: 0;
}

.events-list {
  margin: 1rem 0;
  align-self: flex-start;
  /* text-align: left; */
}

.field-events-cards-container {
  display: flex;
  gap: var(--gap-medium);
  /* Space between grid items */
  flex-wrap: wrap;
  justify-content: center;
}

/* Field Events Card Styles */
.field-event-card {
  color: var(--main-txt-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: var(--gap-medium);
  width: var(--col-width);
}

.field-event-card img {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  object-position: center;
}

.field-event-card .content {
  padding: var(--gap-small);
}

.field-event-card h3 {
  font-size: var(--font-medium);
  text-align: center;
  margin: 0;
  margin-block: var(--gap-small);
  color: var(--main-accent-color);
  text-transform: uppercase;
  display: -webkit-box;
  /* Use flexbox for layout */
  -webkit-box-orient: vertical;
  /* Set the orientation to vertical */
  overflow: hidden;
  /* Hide overflowing content */
  -webkit-line-clamp: 3;
  /* Limit to 3 lines */
  text-overflow: ellipsis;
  /* Add ellipsis for overflow */
  max-height: calc(1.4em * 3);
  /* Set max-height to 3 lines */
}

.field-event-card-date {
  text-align: center;
}

.field-event-card-excerpt {
  text-align: left;
}

.field-event-card a {
  color: var(--main-txt-color);
  text-decoration: none;
  display: inline-block;
  margin-top: var(--gap-small);
}

.field-event-card a:hover {
  color: var(--main-accent-color);
  transition: color 0.3s;
}

.field-event-card .link {
  display: flex;
  justify-content: flex-end;
  font-size: var(--font-small);
  margin-top: var(--gap-medium);
}

@media screen and (max-width: 600px) {
  .field-event-card {
    width: 80vw;
  }
}

.fixed-button {
  position: fixed;
  bottom: 20px;
  /* Distance from the bottom of the screen */
  right: 20px;
  /* Distance from the right side of the screen */
  z-index: 1000;
  /* Ensure it stays on top of other content */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* Optional: round shape */
  overflow: hidden;
  /* Ensure the image fits within the button */
  background: transparent;
  /* Ensure background does not cover the image */
}

.fixed-button-image {
  display: block;
  width: 200px;
  /* Adjust size as needed */
  height: auto;
  border: none;
  cursor: pointer;
}

.fixed-button:hover {
  opacity: 0.8;
  /* Optional: slightly transparent on hover */
}

.showNav::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #00000047;
  width: 100vw;
  z-index: 9;
  /* pointer-events: none; */
}



/* Form Styles */
form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-bottom: 10px;
}

form input {
  padding: 10px;
  margin-bottom: 10px;
  background-color: var(--main-bg-color);
  border: 1px solid var(--main-txt-color);
}

form button {
  padding: 10px;
  background-color: var(--main-accent-color);
  color: var(--main-bg-color);
  border: none;
  cursor: pointer;
}

form button:hover {
  background-color: var(--main-txt-color);
}

/* Partners Section Styles */
.partners {
  margin: 20px 0;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-medium);
  padding: var(--gap-large);
  justify-content: center;
}

.partner-logo {
  flex: 1 1 auto;
  max-width: 150px;
  /* Adjust as needed */
}

.partner-logo img {
  width: 100%;
  height: 10rem;
  display: block;
  object-fit: contain;
  /* Keeps the aspect ratio of logos */
}

ul.artists {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap-medium);
  /* width: 100%; */
  /* max-width: 1200px; Optional max-width */
  list-style: none;
  /* padding: 0; */
  /* margin: 0; */
}

/* Artist List Item */
li.artist {
  overflow: hidden;
}

.artists a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.artists figure {
  border: 1px solid var(--main-accent-color);
}

/* Image and Caption Styles */
figure.small-image {
  margin: 0;
  padding: 0;
}

.artists img {
  width: 100%;
  height: auto;
  display: block;
  filter: url(#duotone);
}

.artists img:hover {
  filter: none;
}

.artist:hover .secondary-type {
  color: var(--main-accent-color);
  transition: 0.3s all;
}

figcaption.secondary-type {
  padding-top: var(--gap-small);
  font-size: 1.2rem;
  text-align: left;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  ul.artists {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  figcaption.secondary-type {
    font-size: 1rem;
  }

  .partners-logos {
    padding: 2rem 0rem;
  }

  .partner-logo img {
    height: 4rem;
  }
}

@media (max-width: 480px) {
  ul.artists {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  figcaption.secondary-type {
    font-size: 0.9rem;
  }
}

/* Grid Layout for the Team */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit,
      minmax(250px, 1fr));
  /* Automatically fit columns, with min width of 250px */
  gap: var(--gap-medium);
  /* Space between grid items */
  padding: 0;
  list-style: none;
  /* Removes default list styling */
}

.team .member {
  display: flex;
  flex-direction: column;
  /* text-align: center; Center align content */
  /* padding: 1rem; Optional: Add some padding for better spacing */
  background-color: var(--background-color);
  /* Optional: background for each member */
}

.team .member img {
  width: 100%;
  /* Makes image fill the width of the grid item */
  height: auto;
  /* Maintains aspect ratio */
  aspect-ratio: 1 / 1;
  /* Ensures images are square */
  object-fit: cover;
  /* Ensures images cover the container without distortion */
  /* border-radius: 0.5rem; */
  border: 1px solid var(--main-accent-color);
}

.member a>* {
  margin: 0;
  margin-bottom: 0.5rem;
}

.member a {
  text-decoration: none;
  color: inherit;
  /* Inherits color for links */
}

.member .member-position {
  color: var(--main-accent-color);
}

.member h3 {
  color: var(--main-accent-color);
  text-transform: uppercase;
}

.member-email {
  text-transform: lowercase;
  color: var(--main-txt-color);
}

@media screen and (max-width: 600px) {

  /* Change variable values for mobile screens */
  :root {
    --main-bg-color: rgb(128, 0, 0);
    --main-txt-color: rgb(255, 0, 0);
    --main-accent-color: rgb(0, 0, 255);
    --font-x-large: 3rem;
    --font-large: 2.5rem;
    --font-medium: 2rem;
    --font-small: 1.5rem;
    --gap-small: 1rem;
    --gap-medium: 1rem;
    --gap-large: 3rem;
    --col-width: 60vw;
  }

  header {
    flex: 0 0 60px;
    padding-left: 1rem;
  }

  main.hz {
    max-height: calc(100svh - 80px) !important;
  }

  .team {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .about .member img {
    width: 100% !important;
  }

  .post-title {
    margin-bottom: 0.5rem !important;
  }

  .back-button {
    display: none;
  }

  .item .info {
    min-width: 75vw !important;
  }

  .page-title {
    font-size: 3rem !important;
  }

  .content.about {
    font-size: 20px !important;
  }

  .page-description {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-text p {
    font-size: 20px !important;
  }

  .fixed-button-image {
    width: 130px !important;
  }

  .article {
    max-height: 75dvh !important;
  }

  .content {
    overflow-x: scroll;
  }

  .menu {
    padding: 0.3rem var(--gap-small);
  }

  .post .image {
    height: 10rem;
  }

  footer a,
  footer p {
    font-size: 1rem;
  }

  .grid.footer-content .column:nth-of-type(1) {
    order: 1;
  }

  .grid.footer-content .column:nth-of-type(2) {
    order: 0;
  }

  .footer-contact-info {
    margin-top: 2rem;
  }
}