body {
    font-size: 1.6em;
}
* {
  box-sizing: border-box;
}
nav {
    background-image: url("/home/media/scaled/Banner.webp");
    background-size: cover;
    background-position: center center;
}

img {
    border-radius: 10px;
}

.menu-anchor hr {
    margin: 0.5em;
}

.all-galleries {
  display: grid;
  gap: 0.5em;

  grid-template-columns: repeat(3, 1fr);
  @media (max-width: 1800px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media (max-width: 1000px) {
    grid-template-columns: 1fr;
  }
}
.gallery-card {
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  color: rgb(240, 240, 240);
  img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: all 0.5s ease-out;
  }
  h3 {
    position: absolute;
    inset: 2em auto auto 5%;
    margin: 0;
    font-weight: normal;
    color: lightyellow;
    text-shadow: 2px 2px 2px black;
    @media (max-width: 1000px) {
      inset: 1em auto auto 5%;
    }
  }
  p {
    position: absolute;
    opacity: 0;
    max-width: 90%;
    margin: 0;
    transition: opacity 0.2s ease-out;
    text-shadow: 1px 1px 2px black;
    inset: 5em auto auto 5%;
    @media (max-width: 1000px) {
      inset: 3em auto auto 5%;
    }
  }
  @media (hover: hover) and (pointer: fine) {
    &:hover img {
        transition: all 0.5s ease-in;
        filter: brightness(50%);
    }
    &:hover p {
        opacity: 1;
        transition: opacity 0.2s 0.2s ease-in;
    }
  }
  span {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
  }
}

main {
  display: grid;
  gap: 0.5em;
  grid-template-columns: repeat(3, 1fr);
  @media (max-width: 1600px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media (max-width: 1000px) {
    grid-template-columns: 1fr;
  }
}
.card {
    height: 44rem;
    @media (max-width: 1200px) {
      height: 36rem;
    }
    @media (max-width: 800px) {
      height: 24rem;
    }

    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    color: rgb(240, 240, 240);
    box-shadow: 0 10px 30px 5px rgba(0, 0, 0, 0.45);
    margin: 0.5em;

    img {
        position: absolute;
        object-fit: cover;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        transition: all 0.5s ease-out;
    }

    .top {
        object-position: top;
    }
    .center {
        object-position: center;
    }
    .bottom {
        object-position: bottom;
    }
    .right {
        object-position: right;
    }
    .left {
        object-position: left;
    }

    h3 {
        position: absolute;
        inset: 1em auto auto 5%;
        margin: 0;
        font-weight: normal;
        color: lightyellow;
        text-shadow: 2px 2px 2px black;
    }

    p {
        position: absolute;
        opacity: 0;
        max-width: 90%;
        margin: 0;
        transition: opacity 0.2s ease-out;
        text-shadow: 1px 1px 2px black;
        inset: 4em auto auto 5%;
    }

    @media (hover: hover) and (pointer: fine) {
        &:hover img {
            transition: all 0.5s ease-in;
            filter: brightness(50%);
        }
        &:hover p {
            opacity: 1;
            transition: opacity 0.2s 0.2s ease-in;
        }
    }

    span {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: 1;
    }
}

.youtube-video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.youtube-video-container::after {
    display: block;
    content: "";
    padding-top: 56.25%;
}

.youtube-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.speaker {
    color: #af89e8;
    font-size: 1.7rem;
    font-weight: bold;
    background-color: #1e1d1d;
    border-radius: 5px;
    position: relative;
    top: 1.9em;
    left: 20px;
    padding: 8px 16px;
    width: fit-content;
    margin-top: -2em;
}

.dialog {
    font-family: "Gill Sans", sans-serif;
}

.timestamp {
    font-size: 1.2rem;
    color: #aaa;
}

.pswp__custom-caption {
  background: rgba(24, 24, 24, 0.75);
  font-size: 16px;
  color: #fff;
  width: calc(100% - 32px);
  max-width: 600px;
  padding: 2px 8px;
  border-radius: 4px;
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
}
.pswp__custom-caption a {
  color: #fff;
}
.hidden-caption-content {
  display: none;
}

.masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-rows: 8px;
    grid-auto-flow: dense;
    gap: 12px;

    .item {
        box-sizing: border-box;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        transition: all 0.3s ease-out;
        outline: 0px none var(--link-hover-color);
        display: flex;
        justify-content: center;
        color: #fff;
        z-index: 0;
        overflow: hidden;

        a {
            display: contents;
        }

        img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }
    }

    .item:hover,
    a:hover {
        transform: scale(1.0);
        outline: 6px outset var(--link-hover-color);
        z-index: 1;
        box-shadow: 5px 5px 15px 0px rgba(188, 101, 201, 0.1);
        border-radius: 8px;
    }
}

@media (max-width: 800px) {
.masonry {
    grid-template-columns: 1fr;
    }
}
