/************************************/
/***    27.  Image Gallery css    ***/
/************************************/

.page-gallery{
	padding: 100px 0 70px;
}

.page-gallery-box .photo-gallery{
	height: calc(100% - 30px);
	margin-bottom: 30px;
}

.page-gallery-box .photo-gallery a{
	cursor: none;
}

.page-gallery-box .photo-gallery figure{
	display: block;
	border-radius: 20px;
}

.page-gallery-box .photo-gallery img{
	width: 100%;
	aspect-ratio: 1 / 0.794;
	object-fit: cover;
	border-radius: 20px;
}

.page-gallery-box .photo-gallery figure{
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden; /* importantissimo per arrotondare l'overlay */
}

.page-gallery-box .photo-gallery figure{
  position: relative;
  border-radius: 20px;
  overflow: hidden; /* taglia l'overlay sui bordi */
}

.page-gallery-box .photo-gallery figure figcaption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  background: linear-gradient(transparent, rgba(0,0,0,1));
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  pointer-events: none;
  text-align: center;

  /* ---- CLAMP 2 RIGHE ---- */
  /* Fallback WebKit/Blink */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  /* Standard (Chrome/Edge/Safari moderni stanno allineandosi) */
  overflow: clip;        /* oppure hidden se preferisci */
  line-clamp: 2;         /* <— questa elimina l’avviso del linter */
}


/* Se vuoi effetto “appare al hover” su desktop */
.page-gallery-box .photo-gallery:hover figure figcaption{
  opacity: 1;
}
