@charset "utf-8";
/* CSS Document */

.photo-gallery {
	margin: 0;
	padding: 0 0 90px 0;
	background-color: var(--green01-color);
}
.photo-icon {
  text-align: center;
}
.photo-icon::before {
  content: "";
  display: inline-block;
  width: 16px; 
  height: 16px;
  margin-right: 10px;
  background: url("../img/photo-icon.png") no-repeat center/contain;
  vertical-align: middle;
}
.vdo-icon {
  text-align: center;
}
.vdo-icon::before {
  content: "";
  display: inline-block;
  width: 19px; 
  height: 16px;
  margin-right: 10px;
  background: url("../img/vdo-icon.png") no-repeat center/contain;
  vertical-align: middle;
}

.photo-gallery video {
	margin-bottom: -10px;
}
.range-gallery {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	margin-top: 50px;
	padding: 0 40px;
	position: relative; 
	display: block;
}

.scrolling.gallery { top: -70px; }
/* เลเยอร์พื้นหลัง */
.lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(108,86,123,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9997;
}

/* กล่องคอนเทนต์ */
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

/* รูปภาพ / วีดีโอ */
.lightbox-content img,
.lightbox-content video {
	max-width: 90vw;     /* กว้างสุดไม่เกินหน้าจอ */
	max-height: 90vh;    /* สูงสุดไม่เกินหน้าจอ */
	object-fit: contain; /* ทำให้ไม่ทะลุจอทั้งแนวตั้ง-แนวนอน */
	display: block;
	margin: auto;
	background: rgba(108,86,123,1);
	opacity: 0;                 /* เริ่มโปร่ง */
	transition: opacity 0.8s ease; /* เอฟเฟกต์ fade */
}
.lightbox-content img.fade-in,
.lightbox-content video.fade-in {
  opacity: 1;  /* ค่อย ๆ ปรากฏ */
}

/* ปุ่มปิด */
.lightbox-close {
	width: 60px;
	height: 60px;
  	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
  	top: 0; 
  	right: 0;
  	font-size: 70px;
	font-family: var(--third-font);
  	color: #fff;
  	cursor: pointer;
  	font-weight: 100;
	line-height: 1;
	text-align: center;
	background-color: rgba(138,187,102,0.7);
	z-index: 9998;
	
}
.lightbox-close::before {
  content: "×";
  display: inline-block;
  transition: transform 0.3s ease;
}

.lightbox-close:hover::before {
 	transform: rotate(180deg);
	transition: transform 0.6s ease; 
}

