.title {
  font-size: 40px;
  color: #fff;
  text-align: center;
  margin-bottom: 25px;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #d3d3d3 25%,
    #181818 50%,
    #c7c7c7 75%,
    #292929 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #fff0;
  animation: rgbAnimation 5s linear infinite;
}
main {
  margin-top: 100px;
}
.gallery-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  padding: 20px;
  justify-items: center;
}
.gallery-item {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #333;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}
.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gallery-item:hover::before {
  opacity: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}
.gallery-item:hover {
  transform: none;
}
@media (max-width: 1024px) {
  .gallery-container {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 0.8);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.modal.hide {
  animation: fadeOut 0.8s ease forwards, scaleDown 0.8s ease forwards;
}
.modal.show {
  display: flex;
  opacity: 1;
}
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease forwards, scaleUp 0.5s ease forwards;
}
.modal-content img {
  max-width: 90%;
  max-height: 80vh;
  transition: transform 0.8s ease;
  border-radius: 0;
}
.modal-content img {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
}
.download-btn {
  padding: 10px 20px;
  background-color: #000;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, transform 0.3s ease;
  width: auto;
  position: relative;
  box-shadow: 0 0 15px rgb(255 255 255 / 0.7);
  animation: glowEffect 0.8s ease-in-out infinite alternate;
}
.download-btn:hover {
  background-color: #fff;
  color: #000;
  border-color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgb(255 255 255);
}
.download-btn:active {
  transform: scale(0.98);
}
@keyframes glowEffect {
  from {
    box-shadow: 0 0 10px rgb(255 255 255 / 0.5);
  }
  to {
    box-shadow: 0 0 20px rgb(255 255 255);
  }
}
.close-modal {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  border: none;
  background: none;
  font-weight: 700;
  padding: 5px;
  transition: transform 0.3s ease;
  z-index: 1001;
}
.close-modal i {
  font-size: 20px;
  color: #fff;
}
.close-modal:hover {
  transform: rotate(360deg);
}
@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleDown {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.8);
    opacity: 0;
  }
}
.modal.hide {
  animation: fadeOut 0.5s ease forwards, scaleDown 0.5s ease forwards;
}
@keyframes fadeInOpacity {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.dc-icons-container {
  opacity: 0;
  animation: fadeInOpacity 1.5s forwards ease-in-out;
}
.gallery-item {
  opacity: 0;
  animation: fadeInOpacity 1.5s forwards ease-in-out;
}
.gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}
.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}
.gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}
.gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}
.gallery-item:nth-child(5) {
  animation-delay: 0.5s;
}
.gallery-item:nth-child(6) {
  animation-delay: 0.6s;
}
.gallery-item:nth-child(7) {
  animation-delay: 0.7s;
}
