* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
    font-family: 'Arial', sans-serif;
}

#wrapper {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(to bottom, #93A5CF, #E4EfE9); 
}

.container {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.container h1 {
  font-size: 3rem;
  text-align: center;
  margin: 32px 0;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; 
  gap: 20px;
}
.card {
  width: 32%;
  height: 400px;
  position: relative;
  margin-bottom: 32px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.card-video {
  display: none;
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0; /* Lower than figcaption */
  background: black;
}

.card:hover .card-img {
  display: none;
}

.card:hover .card-video {
  display: block;
}

.card img {
  width: 100%;
  height: 100%; 
  filter: grayscale(100%);
  box-shadow: 0 0 20px #333;
  object-fit: cover; 
}

.card:hover {
  transform: scale(1.03);
  transition: 0.5s;
  filter: drop-shadow(0 0 10px #333);
}

.card:hover img {
  filter: grayscale(0%);
}

.card figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  border-radius: 0 0 10px 10px;
  background: rgba(0,0,0,0); /* No overlay, fully transparent */
  transition: opacity 0.3s, transform 0.3s;
  text-align: center;
  padding: 12px 20px;
  z-index: 2;
}

.card:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* Tag Filter Section */
.tag-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  gap: 21px;
}
.tag-btn {
  position: relative;
  padding: 12px 35px;
  background: #E4EfE9;
  font-size: 17px;
  font-weight: 500;
  color: #181818;
  border: 3px solid #E4EfE9;
  border-radius: 8px;
  box-shadow: 0 0 0 #fec1958c;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  margin: 0 5px;
  outline: none;
}

.star-1 {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 25px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
}

.star-2 {
  position: absolute;
  top: 45%;
  left: 45%;
  width: 15px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);
}

.star-3 {
  position: absolute;
  top: 40%;
  left: 40%;
  width: 5px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 1s cubic-bezier(0, 0.4, 0, 1.01);
}

.star-4 {
  position: absolute;
  top: 20%;
  left: 40%;
  width: 8px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 0.8s cubic-bezier(0, 0.4, 0, 1.01);
}

.star-5 {
  position: absolute;
  top: 25%;
  left: 45%;
  width: 15px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 0.6s cubic-bezier(0, 0.4, 0, 1.01);
}

.star-6 {
  position: absolute;
  top: 5%;
  left: 50%;
  width: 5px;
  height: auto;
  filter: drop-shadow(0 0 0 #fffdef);
  z-index: -5;
  transition: all 0.8s ease;
}

.tag-btn:hover {
  background: transparent;
  color: #fec195;
  box-shadow: 0 0 25px #fec1958c;
}

.tag-btn:hover .star-1 {
  top: -80%;
  left: -30%;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

.tag-btn:hover .star-2 {
  top: -25%;
  left: 10%;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

.tag-btn:hover .star-3 {
  top: 55%;
  left: 25%;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

.tag-btn:hover .star-4 {
  top: 30%;
  left: 80%;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

.tag-btn:hover .star-5 {
  top: 25%;
  left: 115%;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

.tag-btn:hover .star-6 {
  top: 5%;
  left: 60%;
  filter: drop-shadow(0 0 10px #fffdef);
  z-index: 2;
}

.fil0 {
  fill: #fffdef;
}

@keyframes scaleUp {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}


/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  position: relative;
  background-color: white;
  border-radius: 0.5rem;
  padding: 16px;
  max-width: 48rem;
  width: 100%;
}

.modal-content iframe {
  width: 100%;
  height: 24rem;
}

#closeModal {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1.5rem;
  cursor: pointer;
}