@media (max-height: 600px) and (orientation: landscape) {

	.corner-ol {
		display: none !important;
	}

	.pane-back {
		width: 40px;
		height: 40px;
		line-height: 40px;
	}

	#seller-details-close,
	#item-details-close {
		display: block;
	}
	
	.item-pane {
		top: 0px;
		left: 0px;
		bottom: 0px;
		right: 0px;
		border-radius: unset;
		width: 100%;
		max-width: unset;
	}

	#seller-avatar {
		width: 50vw;
		min-width: 120px;
		height: unset;
		aspect-ratio: 1;
	}


	.item-pane > div:nth-child(2) {
		height: 100vh;
		width: calc(100vw - 50px);
		max-height: unset;
	}

	#item-info,
	#seller-info {
		display: none !important;
	}

	#ctrl-bar.dvis {
		opacity: 0;
	}	

	#ctrl-bar {
		display: flex;	
		position: absolute !important;		
		flex-direction: column;
		min-width: initial;
		min-height: 320px;
		left: unset;
		right: 0px !important;
		bottom: 0px !important;
		top: 0px;
		width: 50px;
		height: unset;
		padding: 10px 0px;
		gap: 0px;
		align-items: center;
		justify-content: space-between;
		background: var(--menu-bg-color);
		z-index: 1;
		transition: 
			opacity 0.5s ease,
			visibility 0s linear 0.5s;
		pointer-events: none;
		visibility: hidden;	
		opacity: 0;		
	}

	#ctrl-bar.mvis {
		transition:  opacity 0.5s ease;
		pointer-events: auto;
		visibility: visible;	
		opacity: 1;
	}

	#ctrl-bar > div:hover {
		transform: initial;
	}	

	#ctrl-bar > div {
		width: 50px !important;
		height: 50px !important;
		border-radius: 6px;
		font-size: 16px;
		background: transparent;
		box-shadow: none;
	}
	
	#ctrl-bar > div.active {
		_transform: scale(1.2);
		color: var(--menu-icon-active);
	}

	body[maps] #ctrl-bar > #ctrl-maps {
		display: flex;
	}

	#ctrl-bar > #ctrl-info,
	#ctrl-bar > #ctrl-seller {
		display: flex;
		border-radius: 6px;
	}
	
	#ctrl-bar > #ctrl-zoom-out,
	#ctrl-bar > #ctrl-zoom-in,
	#ctrl-hide,
	#ctrl-show,
	#map-hide,
	#map-show {
		display: none !important;
	}

	#scene-thumbs {
		top: 0px;
		bottom: 00px;
		left: 0px;
		right: 50px;
		z-index: 1;
	}

	#scene-thumbs.mvis {
		transition: opacity 0.5s ease;
		pointer-events: auto;
		visibility: visible;
		opacity: 1;
	}

	#thumbs-ol {
		display: none;
	}

	#thumbs-inner {
		display: block;
		padding: unset !important;
		background-color: #000;
	}

	#thumbs-inner > div {
		display: grid;
		grid-template-columns: 1fr;
		padding: unset;
		-webkit-mask-image: unset !important;
		mask-image: unset !important;		
		-webkit-mask-repeat: unset;
		-webkit-mask-size: unset;				
		mask-repeat: unset;
		mask-size: unset;	
		height: 100vh;
	}	

	#thumbs-inner:not(.lt12) > div {
		grid-template-columns: repeat(2, 1fr);
	}

	#thumbs-inner > div > div[scene] {
		width: unset;
		flex-shrink: initial;
		border-right: solid 1px #000;
		border-bottom: solid 1px #000;
		height: unset;
		padding-top: 38%;
	}

	#thumbs-inner.lt12 > div > div[scene] {
		padding-top: unset;
		border-right: unset;
	}

	#thumbs-inner > div > div[scene]:nth-child(even) {
		border-right: unset;
	}

	#thumbs-inner > div > div[scene] > .thumb-text {
		font-size: 1rem;
	}

	#thumbs-inner.lt12 > div > div[scene] > .thumb-text {
		font-size: 1.3rem;
	}

	#thumbs-inner:not(.lt12) > div > div[scene]:nth-child(even) > .thumb-bg::before {
		background: linear-gradient(-190deg, transparent 30%, rgba(0,0,0,0.7) 75%, rgba(0,0,0,1) 95%);
	}

	#thumbs-inner:not(.lt12) > div > div[scene]:nth-child(even) > .thumb-text {
		justify-content: right;
	}

	#thumbs-inner > div > div[scene].active-scene > .thumb-text {
		border-bottom-width: 0px !important;
		font-size: 1.2rem;
	}

	#thumbs-inner.lt12 > div > div[scene].active-scene > .thumb-text {
		font-size: 1.5rem;
	}

	#thumbs-inner > div > div[scene].active-scene > .thumb-text {
		border-left-width: 6px;
	}

	#thumbs-inner:not(.lt12) > div > div[scene].active-scene:nth-child(even) > .thumb-text {
		border-left-width: 0px;
		border-right-width: 6px;
	}

	#item-details,
	#seller-details,
	.item-pane,	
	.seller-pane {
		position: absolute !important;
		top: 0px !important;
		left: 0px !important;
		right: 50px !important;
		bottom: 0px !important;
		width: unset;
		border-radius: unset !important;
	}

	#seller-details-status {
		left: 10px;
	}

	#seller-details-pin {
		right: 58px;
	}

	#map-wrapper {
		display: flex !important;
		position: absolute !important;
		background-color: rgba(0,0,0,0.5);
		top: 0px !important;
		bottom: 0px !important;
		left: 0px !important;
		right: 50px !important;
		padding: 80px 20px 20px 20px !important;
		align-items: center;
		justify-content: center;
		z-index: 1;
		transform: unset !important;
		transform-origin: unset !important;
		transition:
			opacity 0.5s ease,
			visibility 0s linear 0.5s !important;
		pointer-events: none;
		visibility: hidden;	
		opacity: 0;
	}

	#map-wrapper.dvis {
		transition:
			opacity 0.5s ease,
			visibility 0s linear 0.5s !important;
		left: unset;
		visibility: hidden;	
		opacity: 0;
	}	

	#map-wrapper.mvis {
		transition: opacity 0.5s ease !important;
		visibility: visible !important;
		opacity: 1;
	}

	#map-wrapper:hover {
		transform: unset;
	}

	#map-wrapper.active {
		transform: unset;
	}

	#map-container {
		margin: 0 auto;
		justify-content: center;
	}	

	#seller-details-menu > div {
		padding: 20px;
		height: 50px;
	}

	#item-details-menu > div {
		padding: 20px;
	}

	#scene-title {
		font-size: 16px;
	}

	#item-details > div {
		display: flex;
		position: absolute;
		inset: 10px;
		flex-direction: row;
		gap: 20px;
	}

	#item-details > div > div {
		flex: 1;
	}

	#item-image {
		object-fit: contain;
	}

	#ctrl-bar > #ctrl-thumbs > div {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media (max-height: 400px) and (orientation: landscape) {

	#thumbs-inner > div > div[scene] {
		padding-top: 25%;
	}

	#thumbs-inner > div > div[scene].active-scene > .thumb-text {
		border-right-width: 0px !important;
		border-left-width: 6px !important;
	}

	#thumbs-inner > div > div[scene] > .thumb-text {
		font-size: 16px;
	}

	#thumbs-inner > div > div[scene].active-scene > .thumb-text {
		font-size: 19px;	
	}

	#thumbs-inner > div > div[scene] > .thumb-bg::before {
		background: linear-gradient(190deg, transparent 30%, rgba(0,0,0,0.7) 75%, rgba(0,0,0,1) 95%) !important;
	}

	#thumbs-inner > div > div[scene]:nth-child(even) > .thumb-text {
		justify-content: left !important;
	}

}

@media (max-height: 400px) and (max-width: 600px) and (orientation: landscape) {

	#thumbs-inner > div {
		grid-template-columns: 1fr !important;
	}

}
