:root{
  --logo: url('Assets/Images/Branding/SchwenzerLogo1.png');
  --instagram-icon: url("https://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Instagram_icon.png/256px-Instagram_icon.png?20200512141346");
  --home-icon: url("https://upload.wikimedia.org/wikipedia/commons/3/34/Home-icon.svg");
}
/* Reset */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family-a);
}

html {
  scroll-behavior: smooth;
  overflow: hidden;
}

body {
  font-family: sans-serif;
  margin: 0;
}

::-webkit-scrollbar{
	width: 6px;
  border-radius: 4px;
}

::-webkit-scrollbar-track-piece{
	background-color: #000000;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb{
	background-color: #cecece;
  height: 1em;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover{
	background-color: #0e0e0e;
}

.nav-container{
  background-color: var(--black);
  color: var(--white);
}

.nav-container h1{
  margin: 0;
  font-weight: 3000;
  font-size: clamp(1.4rem, calc(.1rem + 4vmin), 3rem);
  line-height: 1.2rem;
}

.nav-container {
  justify-content: center !important;
}

.clear{
  height:50px;
  width: 100%;
}

#instagram-nav{
  position: absolute;
  right: calc(4vw + 40px);
  width: clamp(40px, 5vmin, 80px) !important;
  height: auto;
  aspect-ratio: 1 / 1;
  background-image: var(--instagram-icon);
  background-size: contain;
  background-position: center;
  transition: right 0.1s;

}

#instagram-nav a{
  display: block;
  width: 100%;
  height: 100%;
}

h1 {
  text-align: center;
  margin-top: 50px;
  font-size: 3rem;
}

#album-list {
  max-width: clamp(300px, 95%, 1320px);
  height: auto;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: start;
  justify-content: center;
  flex-shrink: 1;
  gap:0rem;
}

@media only screen and (max-width: 600px) {
  .album-card{
    max-width: none !important;
    max-height: none !important;
    width: 100% !important;
  }
}
 
.album-card {
  scroll-margin-top: 100px;
  align-items: stretch;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  object-fit: cover;
  z-index: 5;
  color: black;
  min-width: clamp(250px, 33%, 420px);
  max-width: clamp(420px, 25%, 800px);
  max-height: clamp(600px,25vw,800px);
  display: block;
  text-align: center;
  cursor: pointer;
  scale: 1;
  margin: 10px 5px 0px 5px;
  > img {
    scale: 1;
    z-index: 50;
    transition: all .5s ease-in-out;
    transition: scale 0.2s ease;
  }
}

#album-list > .album-card:nth-child(2n+3){
  flex-grow: 2 !important;
}

.album-card:hover {
  box-shadow: 0 0 5px 2px #8f8f8fb9, 0 0 1px 2px #e9e9e9, 0 0 20px 2px #e9e9e93d; 
  z-index: 50;  
  border-radius: 20px;

  > img{
      scale: 1.1;
      filter: brightness(0.2);
      overflow: visible;
      border-radius: 20px;
  }
}

.album-thumb {
  border-radius: 20px;
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-card {
  position: relative;
  font-weight: 700;
  font-size: clamp(1rem, 2.5cqh, 2.5rem);
  color: #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  
}

.album-card.show-content {
  background-color: #111;
  font-size: clamp(1rem, calc(0.1rem + 2cqmin), 2.2rem);
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: max-content;
}

.album-card-title{
  font-size: clamp(2rem, 6cqh, 3rem);
}

.album-card:hover > .album-card-title, .album-card.active > .album-card-title {
  display: block;
  text-align: center;
  transform: translate(-50%, -50%);
  left:50%;
  animation: cardcolor 1s forwards;
}

.album-card > .album-card-title {
  display: none;
  transform-origin: center;
  color: #c1c1c100;
  position: absolute;
  top:50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1005;
  width: 80%;
  text-align: center;  
  animation-delay: 0.2s;
  transition: all cubic-bezier(0.24, 0.59, 1, 1) 1s;
  animation: cardcolor 1s backwards;
}

@keyframes cardcolor{
  from {color: #c1c1c100;}
  to {color: #e9e9e9;}
}

.album-card-logo{
  opacity: 50%;
  background-image: var(--logo);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  width: 20% !important;
  max-width: 60px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  bottom: 5%;
  right: 10%;
  z-index: 200;
}

.content.hidden {
  display: none;
}

.album-thumb.hidden {
  opacity: 0;
  height: 0px;
  position: absolute;
}

.album-card.show-content > .content{
  display: flex;
}

.album-card.show-content > .content > .album-card-desc{
  display: block;
}

.album-card.show-content > .album-card-logo, .album-card.show-content > .album-card-title{
  display: none;
}

.album-desc-title{
  height: 10%;
  margin: 30px 0;
  align-content: center;
  > h1{
    font-size: clamp(1.5rem, .1rem + 5cqw, 2.8rem);
    alignment-baseline: central;
    margin: 0 auto;
  }
}
.album-images{
  display: flow-root;
  align-items: center;
  justify-content: center;
  z-index: 1010;
  width: 90%;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 auto;
  height: fit-content;
  max-height: min(720px, 45cqh);
  >img {
    margin: 4.4% auto;
    height: 98%;
    width: 98%;
    max-height: min(718px, 44.5cqh);
    object-fit: contain;
    align-items: center;
    align-self: center;
  }

}

.album-images > img:first-child{
  margin: 0px auto !important;
}

.album-images > img:nth-child(n+1){
  margin-top: 20px;
}

.album-card-desc{
  height: fit-content;
  width: 90%;
  margin: 20px auto 20px auto;
}


.content{
  position: relative;
  display: inline-flex;
  flex-direction: column;
  margin: 5px;
}


.modal-content h2{
  font-size: 2rem;
}

.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: calc(100% - clamp(80px, 200px, 3vh));
  min-height: 100%;
  min-width: 100%;
  position: fixed;
  transform-origin: center;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  
  background: #fff;
  color: black;
  display: flex;
  flex-wrap: wrap;
  flex-flow: column;
  padding: 1.5rem;
  border-radius: 20px;
  width: clamp(400px,40vw,800px);
  min-height: 100px;
  height: max-content;
  box-shadow: 0 6px 32px #0003;
  position: relative;
  justify-content: flex-start;
  align-items: center !important;

}

.modal-content > * {
  height: max-content;
  max-height: 200px;
  text-align: center;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  margin: 20px;
}

.close {
  position: absolute;
  right: .7rem;
  top: .4rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

#modal-links a {
  display: block;
  margin: 0 !important;
  padding: 15px 20px;
  border-radius: 15px;
  background-color: #2563eb;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s;
}

#modal-links a:hover {
  color: white;
  background-color: #134ac2;
  padding: 20px 25px;
}

#modal-links a:hover {
  text-decoration: underline;
}