/* Special: do not crop some previews */
.film-preview-contain {
  object-fit: contain !important;
  background: #000 !important;
}

/* If you have still gallery items on film subpages */
.gallery-item {
  border: none !important;
}

section h2 {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 3px;
  margin-bottom: 60px;
  text-align: center;
}

.films-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.film-tile {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  border: none;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.film-tile:hover {
  transform: scale(1.02);
}

.film-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  display: block;
}

.film-tile-3x2 {
  aspect-ratio: 3 / 2;
  background: #000;
}
.film-preview-3x2 {
  object-fit: contain;
  background: #000;
}

.film-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
}

.film-info {
  text-align: center;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

.film-overlay h3 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 1px;
}

.film-tile:hover .film-info h3,
.film-tile:hover .film-info p {
  color: #ffd700;
  opacity: 0.6;
}

/* If you later bring back synopsis hover */
.film-synopsis {
  color: #fff;
  font-size: 18px;
  opacity: 0;
  text-align: right;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  width: 100%;
  background: none;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  padding: 0 32px 32px 0;
  box-sizing: border-box;
}

.film-synopsis p {
  max-width: 340px;
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.82);
  padding: 18px 24px;
  border-radius: 14px;
  box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.25);
  text-align: left;
}

.film-tile .film-info {
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.film-tile:hover .film-synopsis {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile: WORKS layout you had in CSS */
@media (max-width: 480px) {
  .film-synopsis,
  .film-tile .film-synopsis,
  .film-tile:hover .film-synopsis {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
  }

  .film-info,
  .film-tile .film-info,
  .film-tile:hover .film-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
    width: 100%;
    text-align: center !important;
  }

  .film-info h3 {
    font-size: 15px !important;
    margin-bottom: 2px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
  }

  .film-info p {
    font-size: 10px !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
  }

  .film-tile,
  .film-tile:hover {
    transition: none !important;
    transform: none !important;
  }

  .film-overlay h3 {
    font-size: 12px;
  }
  .film-overlay p {
    font-size: 6px;
  }
}
