* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Monserrat", sans-serif;
  background-color: #FDFFFF;
  color: #000366;
}

.tt {
  text-align: center;
  padding: 40px 20px 20px;
}

.tt h1 {
  font-size: 36px;
  font-weight: bold;
  color: #000366;
  border-bottom: 4px solid #feca02;
  display: inline-block;
  padding-bottom: 10px;
}
.contg{
  padding-top: 80px;
}
.galeria {
  padding: 30px 20px 60px;
  max-width: 1300px;
  margin: auto;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.img-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.slider-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 30px;
}

.slider-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease-in-out;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #feca02;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 50px;
  padding: 16px;
  user-select: none;
  transition: color 0.3s ease;
}

.prev:hover, .next:hover {
  color: #feca02;
}

.prev {
  left: 40px;
}

.next {
  right: 40px;
}

@media (max-width: 768px) {
  .slider-img {
    max-width: 100%;
    max-height: 70%;
  }

  .tt h1 {
    font-size: 28px;
  }

  .img-grid img {
    height: 200px;
  }
}
