/**
 * Information bottom sections (office gallery, map, contact).
 * Used by template-parts/information/bottom-sections.php and front-page custom-foot.
 *
 * @package AriawellTheme
 */

/* Office gallery */
.iel-office-section {
	padding: 150px 20px;
}

.iel-office-section .container {
	display: flex;
	flex-direction: column;
	position: relative;
}

.iel-office-section .iel-office-title {
	margin-bottom: 25px;
	font-weight: 500;
	font-size: 33px;
	color: #0f0f0f;
	line-height: 45px;
	letter-spacing: -0.03em;
}

.iel-office-section .gallery-grid {
	column-count: 3;
	column-gap: clamp(12px, 2vw, 25px);
}

.iel-office-section .gallery-grid .item {
	overflow: hidden;
	position: relative;
	break-inside: avoid;
	margin-bottom: clamp(12px, 2vw, 25px);
	border-radius: 10px;
}

.iel-office-section .gallery-grid .item:hover img {
	filter: brightness(0.6);
}

.iel-office-section .gallery-grid .item img {
	cursor: pointer;
	width: 100%;
	display: block;
}

.iel-office-section .swiper-button {
	display: none;
	position: absolute;
	top: 0;
}

.iel-office-section .gallery-grid .item picture {
	display: block;
}

.iel-office-section .swiper-pagination {
	display: none;
	gap: 6px;
	bottom: -25px;
}

.iel-office-section .swiper-pagination .swiper-pagination-bullet {
	background-color: #dadada;
}

.iel-office-section .swiper-pagination > span.swiper-pagination-bullet-active {
	width: 10px;
	background-color: #525252;
}

/* Image popup */
.image-popup-overlay {
	display: none;
	position: fixed;
	z-index: 9999;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.image-popup-overlay img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.popup-inner {
	position: relative;
	width: 100%;
	max-width: 1160px;
}

.image-popup-overlay .popup-swiper {
	width: 100%;
	padding: 0 80px;
	font-size: 0;
	box-sizing: border-box;
}

.image-popup-overlay .popup-swiper .swiper-slide {
	overflow: hidden;
	border-radius: 20px;
}

.image-popup-overlay .popup-swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.image-popup-close {
	position: absolute;
	top: -43px;
	right: 76px;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	border: 0;
	background: none;
}

.image-popup-overlay .popup-swiper .swiper-button-prev {
	left: 1px;
}

.image-popup-overlay .popup-swiper .swiper-button-next {
	right: 1px;
}

.image-popup-overlay .popup-swiper .swiper-button-prev,
.image-popup-overlay .popup-swiper .swiper-button-next {
	width: 38px;
	height: 38px;
}

.image-popup-overlay .popup-swiper .swiper-button-prev::after,
.image-popup-overlay .popup-swiper .swiper-button-next::after {
	display: none;
}

/* Map */
.custom-foot__map-wr iframe {
	height: 660px;
	width: 100%;
	border: 0;
}

.map-section {
	padding: 0 20px 150px;
}

.map-section .section-title {
	font-weight: 600;
	font-size: 33px;
	line-height: 45px;
	color: #0f0f0f;
}

.custom-foot__map .map-info-text br {
	display: none;
}

/* Layout */
.custom-foot .container {
	width: 100%;
	max-width: 1520px;
	margin: 0 auto;
}

#contact-section .main-contents-inner {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

/* Contact */
#contact-section.default-container.main-page-none,
#foot-contact-section.default-container.main-page-none {
	display: block !important;
}

.custom-foot__counsel-content iframe {
	display: block;
	width: 100%;
	min-height: 520px;
	border: 0;
}

@media (max-width: 1024px) {
	.iel-office-section {
		padding: 80px 20px 130px;
	}

	.iel-office-section .iel-office-title {
		margin-bottom: 20px;
		font-size: 23px;
		line-height: 30px;
	}

	.map-section {
		padding: 0 20px 80px;
	}

	.map-section .section-title {
		font-size: 23px;
		line-height: 30px;
		letter-spacing: -0.04em;
	}

	.custom-foot__map {
		margin-top: 20px;
	}

	.custom-foot__map .map-info-text {
		line-height: 24px;
	}

	.custom-foot__map .map-info-text br {
		display: block;
	}

	.custom-foot__map-wr {
		border-radius: 12px;
		overflow: hidden;
	}

	.custom-foot__map-wr iframe {
		height: 340px;
	}
}

@media (max-width: 768px) {
	.iel-office-section .gallery-grid {
		column-count: unset;
	}

	.iel-office-section .gallery-grid .item {
		margin-bottom: 0;
	}

	.iel-office-section .swiper-button {
		display: block;
	}

	.iel-office-section .swiper-button.prev {
		right: 45px;
	}

	.iel-office-section .swiper-button.next {
		right: 0;
	}

	.iel-office-section .swiper-pagination {
		display: flex;
	}

	.iel-office-section .gallery-grid .item:hover img {
		filter: brightness(1);
	}
}
