/* ========================================
   GALLERY PAGE - RESPONSIVE STYLES
   Figueira Limousines
======================================== */

/* ========== TABLET ========== */
@media (max-width: 992px) {
  .hero-slideshow {
    height: 60vh;
    min-height: 400px;
  }

  .slideshow-overlay {
    padding: 3rem 1.5rem;
  }

  .slide-btn {
    width: 45px;
    height: 45px;
  }

  .slide-btn.prev {
    left: 1rem;
  }

  .slide-btn.next {
    right: 1rem;
  }

  .gallery-section {
    padding: 4rem 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
  }

  .lightbox-btn {
    width: 50px;
    height: 50px;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .hero-slideshow {
    height: 50vh;
    min-height: 350px;
  }

  .slideshow-overlay {
    padding: 2.5rem 1rem;
  }

  .slideshow-overlay h1 {
    font-size: 2rem;
  }

  .slideshow-overlay p {
    font-size: 0.9rem;
  }

  .slide-btn {
    width: 40px;
    height: 40px;
  }

  .slide-btn svg {
    width: 20px;
    height: 20px;
  }

  .slide-btn.prev {
    left: 0.75rem;
  }

  .slide-btn.next {
    right: 0.75rem;
  }

  .slide-indicators {
    bottom: 1rem;
    gap: 8px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  .gallery-section {
    padding: 3rem 1rem;
  }

  .gallery-header h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .gallery-tabs {
    gap: 0.5rem;
  }

  .tab-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .gallery-item {
    aspect-ratio: 1;
    border-radius: 6px;
  }

  .gallery-item-overlay {
    padding: 1rem;
    opacity: 1; /* Always show on mobile */
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7) 0%,
      transparent 60%
    );
  }

  .gallery-item-overlay span {
    font-size: 0.75rem;
  }

  /* Lightbox mobile */
  .lightbox-content {
    max-width: 95vw;
    max-height: 80vh;
  }

  .lightbox-content img {
    max-height: 75vh;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .lightbox-btn {
    width: 45px;
    height: 45px;
  }

  .lightbox-btn svg {
    width: 22px;
    height: 22px;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .lightbox-counter {
    bottom: 1rem;
    font-size: 0.8rem;
  }

  footer.absolute {
    padding: 1.5rem 1rem;
  }

  footer.absolute a {
    font-size: 0.75rem;
  }
}

/* ========== SMALL MOBILE ========== */
@media (max-width: 480px) {
  .hero-slideshow {
    height: 45vh;
    min-height: 300px;
  }

  .slideshow-overlay h1 {
    font-size: 1.75rem;
    letter-spacing: 0.1em;
  }

  .slideshow-overlay p {
    font-size: 0.85rem;
  }

  .slide-btn {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
  }

  .slide-btn svg {
    width: 18px;
    height: 18px;
  }

  .gallery-section {
    padding: 2.5rem 0.75rem;
  }

  .gallery-header h2 {
    font-size: 1.3rem;
  }

  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .gallery-item {
    border-radius: 4px;
  }

  .gallery-item-overlay span {
    font-size: 0.65rem;
  }
}

/* ========== LANDSCAPE MOBILE ========== */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-slideshow {
    height: 80vh;
    min-height: 280px;
  }

  .slideshow-overlay {
    padding: 1.5rem 1rem;
  }

  .slideshow-overlay h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
  }

  .slideshow-overlay p {
    font-size: 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .lightbox-content img {
    max-height: 70vh;
  }
}

/* ========== LARGE SCREENS ========== */
@media (min-width: 1400px) {
  .hero-slideshow {
    height: 75vh;
  }

  .gallery-section {
    padding: 6rem 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .slide-btn {
    width: 60px;
    height: 60px;
  }

  .slide-btn svg {
    width: 28px;
    height: 28px;
  }

  .slide-btn.prev {
    left: 3rem;
  }

  .slide-btn.next {
    right: 3rem;
  }
}

/* ========== TOUCH DEVICES ========== */
@media (hover: none) {
  .gallery-item-overlay {
    opacity: 1;
  }

  .gallery-item::before {
    display: none;
  }

  .slide-btn,
  .lightbox-btn {
    opacity: 0.9;
  }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: opacity 0.3s ease;
  }

  .gallery-item img {
    transition: none;
  }

  .gallery-item::before {
    display: none;
  }

  .gallery-item {
    animation: none;
    opacity: 1;
  }

  .lightbox-close:hover {
    transform: none;
  }
}
