/* General Styling */
.hostel-section {
  padding: 20px;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-color);
}

.section-description {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-color);

}
.hostel-image{
border-radius: 50px 0 50px 0;
}
/* Gallery Grid */
.gallery {
  margin: auto;
  text-align: center;
}

.gallery-heading {
  padding: 15px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  justify-content: center;
}

.gallery-item, .gallery-item-right {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.gallery-item img,
.gallery-item-right img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease-in-out;
}

/* Rounded corners for left-aligned images */
.gallery-item img {
  border-radius: 50px 0 50px 0;
}

/* Rounded corners for right-aligned images */
.gallery-item-right img {
  border-radius: 0 50px 0 50px ;
}

/* Zoom effect on hover */
.gallery-item:hover img,
.gallery-item-right:hover img {
  transform: scale(1.05);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.gallery-tile {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.gallery-tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease-in-out;
}

/* Hover scale & tilt */
.gallery-tile:hover img {
  transform: scale(1.05) rotateZ(1deg);
}


.rounded-square img {
  border-radius: 20px;
}

.wheel-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.wheel-container {
  display: flex;
  gap: 10px;
  width: 100%;
}

.wheel-item {
  flex: 1;
  overflow: hidden;
  transition: flex 0.5s ease-in-out, transform 0.3s ease-in-out;
  position: relative;
}

.wheel-item img {
  cursor: pointer;
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
  border-radius: 10px;
}

/* Expand effect on hover */
.wheel-item:hover {
  flex: 3;
}

.wheel-item:hover img {
  transform: scale(1.1);
}


/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0px 4px 15px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease-in-out;
}

/* Close Button */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.close:hover {
  color: white;
  transform: scale(1.2);
}

/* Navigation Buttons */
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: white;
  cursor: pointer;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background 0.3s ease-in-out;
}

.lightbox .prev {
  left: 20px;
}

.lightbox .next {
  right: 20px;
}

.lightbox .prev:hover,
.lightbox .next:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .gallery-heading {
    font-size: 1rem;
  }

  .gallery {
    grid-template-columns: repeat(1, 1fr);
    /* One image per row on small screens */
  }
}

.wheel-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #f5f5f5;
}

.wheel-container {
  display: flex;
  gap: 10px;
  width: 100%;
}

.wheel-item {
  flex: 1;
  overflow: hidden;
  border-radius: 10px;
  transition: flex 0.5s ease-in-out, transform 0.3s ease-in-out;
  position: relative;
}

.wheel-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
  border-radius: 10px;
}

/* Expand effect on hover */
.wheel-item:hover {
  flex: 3;
}

.wheel-item:hover img {
  transform: scale(1.1);
}
