/* Copy of sections/servise_detail.css with correct spelling to fix 404 */
@import url('../base/variables.css');

/* Minimal include: import original if present */
/* The detailed styles remain in servise_detail.css; keep this file as alias */

/* Spacing between breadcrumbs and hero (services) */
.service-detail-container {
  padding-top: 150px;
}
.service-detail-container .service-hero-section {
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .service-detail-container {
    padding-top: 16px;
  }
  .service-detail-container .service-hero-section {
    margin-top: 16px;
  }
}

@media (max-width: 768px) {
  .service-detail-container {
    padding-top: 80px;
  }
  .service-detail-container .service-hero-section {
    margin-top: 12px;
  }
}

/* Service gallery - proportional thumbnails, no cropping */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  aspect-ratio: 16 / 9;
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  color: white;
  width: 32px;
  height: 32px;
}

.service-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 12px;
}

.service-gallery-grid .gallery-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.service-gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* keep proportions, no crop */
  image-rendering: auto;
  transition: transform 0.2s ease;
}

.service-gallery-grid .gallery-item:hover img {
  transform: scale(1.02);
}

.service-gallery-grid .gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s ease;
}

.service-gallery-grid .gallery-item:hover .gallery-overlay {
  background: rgba(0, 0, 0, 0.12);
}

/* Lightbox - scale up without cropping */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox .lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

#lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain; /* no crop */
  display: block;
}

.lightbox .lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .service-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
