.photo-gallery {
  color: #313437;
  background-color: #fff;
}

.photo-gallery p {
  color: #7d8285;
}

.photo-gallery h2 {
  font-weight: bold;
  margin-bottom: 40px;
  padding-top: 40px;
  color: inherit;
}

@media (max-width:767px) {
  .photo-gallery h2 {
    margin-bottom: 25px;
    padding-top: 25px;
    font-size: 24px;
  }
}

.photo-gallery .intro {
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 40px;
}

.photo-gallery .intro p {
  margin-bottom: 0;
}

.photo-gallery .photos {
  padding-bottom: 20px;
}

.photo-gallery .item {
  padding-bottom: 30px;
}

/* Migliora la resa delle gallerie camere/eventi su desktop e mobile */
.photo-gallery .photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding-bottom: 24px;
}

.photo-gallery .photos .item {
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.photo-gallery .photos .item > a {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #f6f6f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.photo-gallery .photos img.thumbnail,
.photo-gallery .photos .item img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease;
}

.photo-gallery .photos .item > a:hover img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .photo-gallery .photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .photo-gallery .photos img.thumbnail,
  .photo-gallery .photos .item img {
    height: 130px;
  }
}

@media (max-width: 420px) {
  .photo-gallery .photos {
    grid-template-columns: 1fr 1fr;
  }
}

