﻿
/* =========================================================
   COLLECTION / WORKS GALLERY
========================================================= */
.collection-gallery {
    display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  width: 100%;
  height: 104%; /* ora prende tutta l’altezza della hero */
  margin: 0;
  z-index: 1;
}



/* =========================================================
   GALLERY TRACK
========================================================= */
.gallery-track {
    display: flex;
    gap: 1vw;
    width: 100%;
    height: 100%;
    align-items: stretch;
    overflow-x: hidden;  /* nasconde scrollbar */
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
}

.gallery-track::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Opera */
}


/* =========================================================
   GALLERY ITEM
========================================================= */
.gallery-item {
    flex: 0 0 auto;
    height: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: auto;                  /* mantiene proporzioni desktop */
    height: 100%;                 /* sempre altezza gallery */
    object-fit: cover;            /* copre intera area */
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* =========================================================
   CAPTION
========================================================= */
.caption {
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 100%;

    font-size: 1.2rem;
    letter-spacing: 1px;
    color: white;

    padding: 0.35em 0.6em;
    pointer-events: none;

    text-align: center;
    box-sizing: border-box;
}


/* =========================================================
   CURSOR STATES
========================================================= */
.gallery-track:active {
    cursor: grabbing;
}

/* =========================================================
   RESPONSIVE — TABLET / MOBILE
========================================================= */

/* ≤1024px Tablet */
@media (max-width: 1024px) {
      .collection-gallery { width: 100%; :  }
    .gallery-item img { width: 100%;  }

}

@media (max-width: 949px) {
    .gallery-item img {
        transition: none !important;
        transform: none !important;
    }

/* ≤768px Tablet piccolo / Mobile grande */
@media (max-width: 915px) {
      .collection-gallery { height:105%;top:1vh; }
   .caption {font-size: 0.9rem;}
  

  
/* ≤768px Tablet piccolo / Mobile grande */
@media (max-width: 896px) {
      .collection-gallery { height:105%;top:1vh; }
     .caption {font-size: 0.78em;}

  @media (max-width: 844px) {
      .collection-gallery { height:107%;top:1vh; }

}
/* ≤768px Tablet piccolo / Mobile grande */
@media (max-width: 768px) {
      .collection-gallery { height:106%;top:2vh; }
    .caption {font-size: 0.7rem;}

}

  /* ≤768px Tablet piccolo / Mobile grande */
@media (max-width: 720px) {
      .collection-gallery { height:103%;top:1vh; }
.caption {font-size: 0.5rem;}
}

    /* ≤768px Tablet piccolo / Mobile grande */
@media (max-width: 653px) {
      .collection-gallery { height:106%;top:2vh; }
  .caption {font-size: 0.4rem;}

}

/* ≤480px Mobile */
@media (max-width: 480px) {
      .collection-gallery { height:104%;top:2vh; }
}