/* WOONIS V10.1 mobile gallery hotfix.
   Loaded after the product bundle so cached/legacy gallery rules cannot win. */

@media (max-width: 767px) {
	body.woonis-theme-2026.template-product {
		overflow-x: hidden !important;
	}

	body.woonis-theme-2026.template-product .w26-header {
		z-index: 1200 !important;
		background: #fff !important;
		isolation: isolate;
	}

	body.woonis-theme-2026.template-product .layout-product.woonis-product-detail .product-image-block {
		position: relative !important;
		top: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		padding: 0 !important;
		overflow: visible !important;
	}

	body.woonis-theme-2026.template-product .layout-product.woonis-product-detail .gallery-top {
		position: relative !important;
		left: auto !important;
		top: auto !important;
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 0 12px !important;
		padding: 0 !important;
		aspect-ratio: 1 / 1 !important;
		background: #fff !important;
		overflow: hidden !important;
		touch-action: pan-y !important;
	}

	body.woonis-theme-2026.template-product .layout-product.woonis-product-detail .gallery-top > .swiper-wrapper,
	body.woonis-theme-2026.template-product .layout-product.woonis-product-detail .gallery-top > .swiper-wrapper > .swiper-slide {
		width: 100% !important;
		height: 100% !important;
		min-height: 0 !important;
		padding: 0 !important;
	}

	body.woonis-theme-2026.template-product .layout-product.woonis-product-detail .gallery-top > .swiper-wrapper > .swiper-slide {
		position: relative !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		background: #fff !important;
		overflow: hidden !important;
	}

	body.woonis-theme-2026.template-product .layout-product.woonis-product-detail .gallery-top > .swiper-wrapper > .swiper-slide > img {
		position: absolute !important;
		inset: 0 !important;
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		margin: auto !important;
		object-fit: contain !important;
		object-position: center !important;
		transform: none !important;
		opacity: 1 !important;
		visibility: visible !important;
	}

	body.woonis-theme-2026.template-product .layout-product.woonis-product-detail .gallery-thumbs {
		position: relative !important;
		left: auto !important;
		top: auto !important;
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		height: 96px !important;
		min-height: 96px !important;
		max-height: 96px !important;
		margin: 0 !important;
		padding: 4px 0 !important;
		overflow: hidden !important;
		touch-action: pan-x !important;
	}

	body.woonis-theme-2026.template-product .layout-product.woonis-product-detail .gallery-thumbs > .swiper-wrapper {
		display: flex !important;
		flex-flow: row nowrap !important;
		align-items: center !important;
		width: auto !important;
		height: 88px !important;
		min-height: 0 !important;
		padding: 0 !important;
	}

	body.woonis-theme-2026.template-product .layout-product.woonis-product-detail .gallery-thumbs > .swiper-wrapper > .swiper-slide {
		position: relative !important;
		align-self: center !important;
		height: auto !important;
		min-height: 0 !important;
		max-height: 88px !important;
		padding: 0 !important;
		aspect-ratio: 1 / 1 !important;
		border: 1px solid #dedfda !important;
		border-radius: 8px !important;
		background: #fff !important;
		overflow: hidden !important;
	}

	body.woonis-theme-2026.template-product .layout-product.woonis-product-detail .gallery-thumbs .p-100 {
		position: relative !important;
		inset: auto !important;
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		min-height: 0 !important;
		padding: 0 !important;
		padding-bottom: 0 !important;
	}

	body.woonis-theme-2026.template-product .layout-product.woonis-product-detail .gallery-thumbs .p-100 > img {
		position: absolute !important;
		inset: 0 !important;
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		margin: auto !important;
		object-fit: contain !important;
		object-position: center !important;
		transform: none !important;
	}

	body.woonis-theme-2026.template-product .layout-product.woonis-product-detail .gallery-thumbs .swiper-button-next,
	body.woonis-theme-2026.template-product .layout-product.woonis-product-detail .gallery-thumbs .swiper-button-prev {
		display: none !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}

	body.woonis-theme-2026.template-product .addThis_iconContact {
		right: 12px !important;
		bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
	}
}
