.wp-custom-gallery {
	display: grid;
	gap: 20px;
	margin: 30px 0;
}

.wp-custom-gallery.columns-1 { grid-template-columns: 1fr; }
.wp-custom-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.wp-custom-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); }
.wp-custom-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
.wp-custom-gallery.columns-5 { grid-template-columns: repeat(5, 1fr); }
.wp-custom-gallery.columns-6 { grid-template-columns: repeat(6, 1fr); }

.wp-custom-gallery__item {
	margin: 0;
}

.wp-custom-gallery__link {
	display: block;
	overflow: hidden;
	border-radius: 12px;
}

.wp-custom-gallery__image {
	display: block;
	width: 100%;
	height: 280px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.wp-custom-gallery__link:hover .wp-custom-gallery__image {
	transform: scale(1.05);
}

.wp-custom-gallery__caption {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.4;
	color: #555;
}

/* Lightbox */
.wp-lightbox-custom {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

.wp-lightbox-custom.is-open {
	display: block;
}

.wp-lightbox-custom__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
}

.wp-lightbox-custom__content {
	position: relative;
	z-index: 2;
	width: 90%;
	max-width: 1100px;
	margin: 40px auto;
	height: calc(100vh - 80px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	pointer-events: none;
}

.wp-lightbox-custom__image,
.wp-lightbox-custom__close,
.wp-lightbox-custom__prev,
.wp-lightbox-custom__next,
.wp-lightbox-custom__caption {
	pointer-events: auto;
}

.wp-lightbox-custom__image {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 10px;
}

.wp-lightbox-custom__caption {
	margin-top: 16px;
	color: #fff;
	font-size: 15px;
	text-align: center;
	max-width: 800px;
}

.wp-lightbox-custom__close,
.wp-lightbox-custom__prev,
.wp-lightbox-custom__next {
	position: absolute;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	border: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp-lightbox-custom__close {
	top: 10px;
	right: 10px;
	font-size: 34px;
}

.wp-lightbox-custom__prev {
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
}

.wp-lightbox-custom__next {
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
}

body.wp-lightbox-open {
	overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
	.wp-custom-gallery.columns-4,
	.wp-custom-gallery.columns-5,
	.wp-custom-gallery.columns-6 {
		grid-template-columns: repeat(3, 1fr);
	}

	.wp-custom-gallery__image {
		height: 220px;
	}


}

@media (max-width: 600px) {
	.wp-custom-gallery.columns-2,
	.wp-custom-gallery.columns-3,
	.wp-custom-gallery.columns-4,
	.wp-custom-gallery.columns-5,
	.wp-custom-gallery.columns-6 {
		grid-template-columns: 1fr;
	}

	.wp-custom-gallery__image {
		height: auto;
	}

	
}


/* =========================
   STANDARD MODAL
========================= */
.col-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}

.col-modal.is-open {
	display: block;
}

.col-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
}

.col-modal__inner {
	position: relative;
	z-index: 2;
	max-width: 900px;
	width: calc(100% - 40px);
	max-height: calc(100vh - 60px);
	margin: 30px auto;
	background: #111;
	overflow-y: auto;
	border-radius: 12px;
	padding: 30px;
	background: #fff;
}

.col-modal__close {
	position: absolute;
	top: 15px;
	right: 15px;
	border: 0;
	background: transparent;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	color: #111;
}

.col-modal__image {
	margin-top: 40px;
	margin-bottom: 20px;
}

.col-modal__image img {
	display: block;
	width: 100%;
	height: 300px;
	object-fit: cover;
	border-radius: 0;
}

.col-modal__content {
	text-align: left;
}

body.modal-open {
	overflow: hidden;
}

/* =========================
   TEAM CARD
========================= */
.team-card__trigger {
	display: block;
	width: 100%;
	background: none;
	border: 0;
	padding: 0;
	text-align: left;
	cursor: pointer;
}

.team-card__button {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 18px;
	border: 1px solid #fff;
	border-radius: 999px;
	font-size: 14px;
	line-height: 1;
	color: #fff;
}

/* =========================
   TEAM MODAL
========================= */
.col-modal.team-modal .col-modal__inner {
	max-width: 760px;
	background: #fff;
	color: #24282B;
	padding: 40px 32px;
}

.col-modal.team-modal .col-modal__close {
	color: #24282B;
}

.col-modal.team-modal .col-modal__image {
	margin-top: 10px;
	margin-bottom: 20px;
	text-align: center;
}

.col-modal.team-modal .col-modal__image img {
	display: block;
	width: 180px;
	height: 180px;
	margin: 0 auto;
	object-fit: cover;
	border-radius: 50%;
}

.col-modal.team-modal .col-modal__content {
	max-width: 620px;
	margin: 0 auto;
	text-align: center;
}

.col-modal.team-modal .col-modal__content h3 {
	margin-bottom: 15px;
	color: #24282B;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
	.col-modal__inner {
		width: calc(100% - 24px);
		max-height: calc(100vh - 24px);
		margin: 12px auto;
		padding: 24px 20px;
	}

	.col-modal__image img {
		height: 220px;
	}

	.col-modal.team-modal .col-modal__image img {
		width: 140px;
		height: 140px;
	}
}