/**
 * Homepage gallery (Μεγάλες Εικόνες).
 */

.home-gallery__title,
.home-videos__title {
  color: var(--color-blue-600);
}

.home-gallery__carousel {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-navy-950);
}

.home-gallery__slides {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 280px;
}

.home-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.home-gallery__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.home-gallery__slide-media {
  display: block;
  height: 100%;
}

.home-gallery__slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-gallery__slide-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: 24px 20px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 11, 34, 0.88) 100%);
  color: var(--color-white);
}

.home-gallery__slide-title {
  margin: 0 0 8px;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.home-gallery__slide-title a {
  color: inherit;
  text-decoration: none;
}

.home-gallery__slide-title a:hover {
  color: var(--color-blue-400);
}

.home-gallery__slide-excerpt {
  margin: 0 0 14px;
  max-width: 52ch;
  font-size: var(--font-size-sm);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.home-gallery__slide-btn {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.home-gallery__nav {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.home-gallery__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-navy-900);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 180ms ease, transform 180ms ease;
}

.home-gallery__arrow:hover {
  background: var(--color-white);
  transform: scale(1.04);
}

.home-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.home-gallery__thumb {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-gray-100);
  aspect-ratio: 16 / 10;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.home-gallery__thumb.is-active {
  border-color: var(--color-blue-600);
}

.home-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .home-gallery__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
