﻿/* ========================================================= 
   COLLECTION — GALLERY
========================================================= */

/* Galleria — Base Desktop */
.collection-gallery {
  width: 100%;
  height: 100vh;        /* mantiene layout desktop */
  display: flex;
  justify-content: center;
  margin-top: 2vh;
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 20px;
  width: max-content;
  height: 88%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.gallery-track:active {
  cursor: grabbing;
}

.gallery-item {
  flex: 0 0 auto;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-item img {
  height: 50%;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 0.6;
}

.gallery-item .caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 300;
  font-size: 3vw;
  letter-spacing: 0px;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.35s ease;
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
}

.gallery-item:hover .caption {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* =========================================================
   ROTATE MESSAGE
========================================================= */
.rotate-message {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  color: #555;
  font-size: 6vw;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 300 !important;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  z-index: 999999;
}

/* =========================================================
   RESPONSIVE HEIGHT E MARGINI
========================================================= */

/* Desktop Large / Tablet 1368px */
@media (max-width: 1368px) {
  .collection-gallery {
    width: 100% !important;
    height: 100vh !important;       /* altezza gestibile */
    margin-left: 0vh !important;
    margin-top: 0vh !important;
  }
}

/* Desktop / Tablet Standard 1280px */
@media (max-width: 1280px) {
  .collection-gallery {
    width: 100% !important;
    height: 100vh !important;
    margin-left: 0vh !important;
    margin-top: 0vh !important;
    max-height: 100vh !important;
  }
}

/* 1180px */
@media (max-width: 1180px) {
  .collection-gallery {
    width: 100% !important;
    height: 98vh !important;
    margin-left: 0vh !important;
    margin-top: 1vh !important;
    max-height: 100vh !important;
  }
}

/* 1024px */
@media (max-width: 1024px) {
  .collection-gallery {
    width: 100% !important;
    height: 98vh !important;
    margin-left: 0vh !important;
    margin-top: 0vh !important;
    max-height: 98vh !important;
  }
}


/* 914px */
@media (max-width: 914px) {
  .collection-gallery {
    width: 100% !important;
    height: 100vh !important;
    margin-left: 0vh !important;
    margin-top: 1vh !important;
    max-height: 100vh !important;
  }
}

/* 896px */
@media (max-width: 896px) {
  .collection-gallery {
    width: 100% !important;
    height: 100vh !important;
    margin-left: 0vh !important;
    margin-top: 0vh !important;
    max-height: 100vh !important;
  }
}

/* 844px */
@media (max-width: 844px) {
  .collection-gallery {
    width: 100% !important;
    height: 100vh !important;
    margin-left: 0vh !important;
    margin-top: 0vh !important;
    max-height: 100vh !important;
  }
}

/* 812px */
@media (max-width: 812px) {
  .collection-gallery {
    width: 100% !important;
    height: 100vh !important;
    margin-left: 0vh !important;
    margin-top: 2vh !important;
    max-height: 100vh !important;
  }
}

/* 720px */
@media (max-width: 720px) {
  .collection-gallery {
    width: 100% !important;
    height: 100vh !important;
    margin-left: 0vh !important;
    margin-top: 0vh !important;
    max-height: 100vh !important;
  }
}

/* 667px */
@media (max-width: 667px) {
  .collection-gallery {
    width: 100% !important;
    height: 100vh !important;
    margin-left: 0vh !important;
    margin-top: 2vh !important;
    max-height: 100vh !important;
  }
}

/* 653px */
@media (max-width: 653px) {
  .collection-gallery {
    width: 100% !important;
    height: 100vh !important;
    margin-left: 0vh !important;
    margin-top: 0vh !important;
    max-height: 100vh !important;
  }
}

/* 640px */
@media (max-width: 640px) {
  .collection-gallery {
    width: 102% !important;
    height: 100vh !important;
    margin-left: 0vh !important;
    margin-top: 3vh !important;
    max-height: 100vh !important;
  }
}

/* 568px */
@media (max-width: 568px) {
  .collection-gallery {
    width: 100% !important;
    height: 100vh !important;
    margin-left: 0vh !important;
    margin-top: 5vh !important;
    max-height: 100vh !important;
  }
}

/* 480px */
@media (max-width: 480px) {
  .collection-gallery {
    width: 100% !important;
    height: 100vh !important;
    margin-left: 0vh !important;
    margin-top: 0vh !important;
    max-height: 100vh !important;
  }
  .gallery-track {
    gap: 14px !important;
  }
}
