/* Styles cho ImageGallery */
:host(sport-gallery) {
  display: block;
  padding: 40px 0;
}

h3.gallery-title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  color: #111;
  font-size: 50px;
  margin-bottom: 1em;
  letter-spacing: 1px;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

:host(sport-gallery) ::slotted(gallery-item) {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 991px) {
  :host(sport-gallery) ::slotted(gallery-item) {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Styles cho GalleryItem */
:host(gallery-item) .gallery-item {
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* :host(gallery-item) .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
} */

:host(gallery-item) .image-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background-color: #ddd;
}

:host(gallery-item) .gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

:host(gallery-item) .gallery-image.active {
  opacity: 1;
}

:host(gallery-item) .image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 20px;
  /* transform: translateY(100%); */
  transition: transform 0.3s ease;
}

/* :host(gallery-item) .gallery-item:hover .image-overlay {
  transform: translateY(0);
} */

:host(gallery-item) .image-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

:host(gallery-item) .image-description {
  font-size: 14px;
  opacity: 0.9;
}
