/* Base Colours */
/* Accent Colours */
/* Supporting Colour */
main {
  padding-top: 10vh;
  position: relative;
  width: 100%;
  height: 100%;
  justify-content: center;
}
main #showcase {
  display: none;
  padding: 5vh;
}
main #showcase.active {
  z-index: 2;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
}
main #showcase button.close {
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
}
main #showcase .showcase-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  background: center/100%;
  z-index: 0;
  width: 90%;
  opacity: 0.2;
}
main #showcase img {
  z-index: 2;
  max-width: 100%;
}

div.grid-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  margin: 0;
  width: 100%;
  max-width: 500px;
  justify-content: center;
  overflow: overlay;
}
div.grid-gallery img {
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  aspect-ratio: 3/4;
}

@media (min-width: 768px) {
  main #showcase {
    padding: 0;
    width: 0%;
    opacity: 0;
    padding: 0;
    backdrop-filter: opacity(0.2);
    transition: opacity 1.5s, width 1.5s, padding 1.5s;
  }
  main #showcase.active {
    padding: 5vh;
    opacity: 1;
    width: 65%;
    transition: opacity 1.5s, width 1.5s, padding 1.5s;
  }
  main #showcase, main #showcase.active {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  main #showcase button.close, main #showcase.active button.close {
    background: no-repeat center/50% url("../assets/site/close-icon.svg") #283593;
    border: none;
    height: 30px;
    width: 30px;
    border-radius: 5px;
    top: 2.5vh;
    right: 2.5vh;
    left: unset;
    z-index: 3;
  }
  main #showcase .showcase-content, main #showcase.active .showcase-content {
    height: 100%;
    width: 100%;
  }
  main #showcase img, main #showcase.active img {
    height: 100%;
  }
  .grid-gallery {
    flex: 1;
  }
}
@media (aspect-ratio < 1/1) and (min-width: 768px) {
  main {
    flex-flow: column;
  }
  main #showcase {
    width: 100% !important;
    height: 0%;
  }
  main #showcase.active {
    height: 65%;
  }
  main .grid-gallery {
    width: 100% !important;
    flex: 1;
    margin: 0;
    max-width: 100%;
    display: flex;
    flex-flow: row !important;
  }
  main .grid-gallery img {
    width: unset;
    height: 100%;
  }
}