.gallery-section-subtitle {
  color: rgba(var(--secondaryColorRgbTheme), 0.8);
  font-family: var(--headingFont);
  font-weight: 600;
  font-size: var(--paragraphFontSize);
  text-shadow: 0 0 1vw 0 #00000080;
  margin: 0;
  margin-bottom: 2vw;
  text-shadow: 0 0 0.5vw rgba(var(--primaryColorRgbTheme), 0.5);
}

.gallery-section-title {
  color: var(--secondaryHeadingColorTheme);
  font-family: var(--headingFont);
  font-size: var(--superheadingFontSize);
  margin: 0;
  margin-bottom: 4vw;
  font-weight: 900;
  text-shadow: 0 0 0.5vw rgba(var(--primaryColorRgbTheme), 0.5);
}

.gallery-container{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: max-content;
  padding: 4vw;
  box-sizing: border-box;
  background-color: rgba(var(--primaryColorRgbTheme), 0.95);
}

.gallery-wrapper{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 32vw;
}

.digital-gallery-container{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 60%;
  height: 100%;
}

.events-gallery-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40%;
  height: 100%;
}

.gallery-column-2_5{
  width: calc(2*100%/5);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-column-1_5{
  width: calc(100%/5);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-column-1_2{
  width: calc(100%/2);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-row-2_3{
  width: 100%;
  height: calc(2*100%/3);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.gallery-row-1_3{
  width: 100%;
  height: calc(100%/3);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.gallery-row-1_2{
  width: 100%;
  height: calc(100%/2);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.gallery-image-container{
  background-color: var(--primaryColor);
  box-shadow: 0.5vw 0.5vw 1vw 0 #00000020;
  width: calc(100% - 0.4vw);
  height: calc(100% - 0.4vw);
  box-sizing: content-box;
  position: relative;
  overflow: hidden;
  margin: 0.2vw;
  border-radius: 0.2vw;
}

.gallery-image-container img{
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.gallery-image-container:hover{
  cursor: pointer;
}

.gallery-image-container:hover .gallery-image-alt-container{
  transition: all 0.2s ease-in-out;
  opacity: 1;
  bottom: 0;
}

.gallery-image-alt-container{
  transition: all 0.2s ease-in-out;
  position: absolute;
  bottom: -3vw;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 5vw;
  box-sizing: border-box;
  padding: 0.5vw;
  background: linear-gradient(rgba(var(--secondaryColorRgb), 0.7), rgba(var(--secondaryColorRgb), 0.7));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-image-container::after{
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

.gallery-image-alt{
  color: var(--primaryColor);
  font-family: var(--headingFont);
  font-weight: 700;
  font-size: var(--subparagraphFontSize);
  line-height: var(--paragraphFontSize);
  margin: 0;
  text-align: center;
}

.gallery-image{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

}

@media(max-width: 672px){
  .gallery-section-subtitle {
    font-size: var(--paragraphFontSize);
    text-shadow: 0 0 2vw 0 #00000080;
    margin-bottom: 4vw;
    text-shadow: 0 0 1vw rgba(var(--primaryColorRgbTheme), 0.5);
  }
  
  .gallery-section-title {
    font-size: var(--superheadingFontSize);
    margin-bottom: 8vw;
    text-shadow: 0 0 1vw rgba(var(--primaryColorRgbTheme), 0.5);
  }
  
  .gallery-container{
    padding: 8vw;
  }
  
  .gallery-wrapper{
    height: 166vw;
    flex-direction: column;
  }
  
  .digital-gallery-container{
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40%;
  }
  
  .events-gallery-container{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60%;
  }
  
  .gallery-column-2_5{
    width: 50%;
    height: 100%;
  }
  
  .gallery-column-1_5{
    display: none;
  }

  .gallery-image-container{
    box-shadow: 1vw 1vw 2vw 0 #00000020;
    width: calc(100% - 0.8vw);
    height: calc(100% - 0.8vw);
    margin: 0.4vw;
    border-radius: 0.4vw;
  }
  
  .gallery-image-alt-container{
    bottom: -6vw;
    height: 8vw;
    padding: 1vw;
  }
  
  .gallery-image-container::after{
    width: 100%;
    height: 100%;
  }
  
  .gallery-image-alt{
    font-size: 2vw;
    line-height: 2.3vw;
  }
}