/* ===========================================
   Component — Image Gallery
   Used by: service.html
   =========================================== */

.gallery {
  position: relative;
  margin-bottom: 16px;
}

.gallery-main {
  width: 100%;
  height: 480px;
  overflow: hidden;
  margin-bottom: 20px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery--single .gallery-main {
  height: auto;
  aspect-ratio: 1264 / 848;
  margin-bottom: 0;
}

.gallery-thumbs-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.gallery-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-silver);
  background: #fff;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.gallery-arrow:hover { background: var(--color-dark); color: #fff; }

.gallery-thumbs {
  display: flex;
  gap: 16px;
  flex: 1;
  overflow-x: auto;
}

.thumb {
  width: 165px;
  height: 110px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity 0.2s ease, outline 0.2s ease;
}
.thumb:hover     { opacity: 0.85; }
.thumb.is-active {
  opacity: 1;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .gallery-main { height: 360px; }
  .thumb        { width: 130px; height: 88px; }
}

@media (max-width: 860px) {
  .gallery-main             { height: 220px; margin-bottom: 10px; }
  .gallery--single .gallery-main { height: 220px; }
  .gallery-thumbs-row       { gap: 8px; }
  .gallery-arrow            { width: 26px; height: 26px; font-size: 14px; }
  .thumb                    { width: 100px; height: 70px; }
}
