#gallery {
	padding: 40px 20px;
	background: #fdf6e9;
}

.ma-trip-gallery-wrap {
	max-width: 1000px;
	margin: 0 auto;
}

.ma-trip-gallery-shell {
	width: 100%;
}

.ma-trip-gallery-main {
	width: 100%;
	overflow: hidden;
	aspect-ratio: 4/3;
}

.ma-trip-gallery-main-image {
	display: block;
	width: 100%;
	height: clamp(420px, 56vw, 720px);
	object-fit: cover;
	object-position: center center;
	opacity: 1;
	transition: opacity 0.2s ease;
}

.ma-trip-gallery-main-image.is-changing {
	opacity: 0.25;
}

.ma-trip-gallery-nav {
	position: relative;
	width: 100%;
	margin-top: 18px;
}

.ma-trip-gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
	width: 100%;
}

.ma-trip-gallery-thumb {
	display: none;
	width: 100%;
	padding: 0 !important;
	margin: 0 !important;
	border: 3px solid transparent;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.72;
	transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ma-trip-gallery-thumb.is-visible {
	display: block;
}

.ma-trip-gallery-thumb.is-active {
	border-color: #0f6c81;
	opacity: 1;
	transform: scale(1.03);
}

.ma-trip-gallery-thumb:hover,
.ma-trip-gallery-thumb:focus {
	opacity: 1;
	outline: none;
}

.ma-trip-gallery-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	object-fit: cover;
	object-position: center center;
}

.ma-trip-gallery-nav-arrow {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96) !important;
	color: #22313b !important;
	font-size: 34px;
	line-height: 1;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
}

.ma-trip-gallery-nav-prev {
	left: 14px;
}

.ma-trip-gallery-nav-next {
	right: 14px;
}

.ma-trip-gallery-nav-arrow:hover,
.ma-trip-gallery-nav-arrow:focus {
	background: #fff !important;
	color: #0f6c81 !important;
	outline: none;
}

.ma-trip-gallery-nav-arrow span {
	display: block;
	line-height: 1;
	transform: translateY(-2px);
}

@media (max-width: 991px) {
	.ma-trip-gallery-section {
		padding: 50px 16px;
	}

	.ma-trip-gallery-main-image {
		height: clamp(340px, 56vw, 560px);
	}

	.ma-trip-gallery-thumbs {
		gap: 10px;
	}

	.ma-trip-gallery-nav-arrow {
		width: 50px;
		height: 50px;
	}

	.ma-trip-gallery-nav-prev {
		left: 10px;
	}

	.ma-trip-gallery-nav-next {
		right: 10px;
	}
}

@media (max-width: 767px) {
	.ma-trip-gallery-section {
		padding: 42px 0;
	}

	.ma-trip-gallery-wrap {
		max-width: none;
		width: 100%;
	}

	.ma-trip-gallery-main {
		aspect-ratio: auto;
		width: 100%;
	}

	.ma-trip-gallery-main-image {
		width: 100%;
		height: clamp(360px, 82vw, 520px);
	}

	.ma-trip-gallery-nav {
		width: auto;
		margin: 12px 12px 0;
	}

	.ma-trip-gallery-thumbs {
		gap: 7px;
	}

	.ma-trip-gallery-nav-arrow {
		width: 42px;
		height: 42px;
		font-size: 28px;
	}

	.ma-trip-gallery-nav-prev {
		left: 7px;
	}

	.ma-trip-gallery-nav-next {
		right: 7px;
	}

	.ma-trip-gallery-thumb {
		border-width: 2px;
	}
}

@media (max-width: 479px) {
	.ma-trip-gallery-section {
		padding: 36px 0;
	}

	.ma-trip-gallery-main-image {
		height: clamp(340px, 94vw, 460px);
	}

	.ma-trip-gallery-nav {
		margin-left: 8px;
		margin-right: 8px;
	}

	.ma-trip-gallery-thumbs {
		gap: 5px;
	}

	.ma-trip-gallery-nav-arrow {
		width: 36px;
		height: 36px;
		font-size: 24px;
	}

	.ma-trip-gallery-nav-prev {
		left: 5px;
	}

	.ma-trip-gallery-nav-next {
		right: 5px;
	}
}