/* wp-koumbit-gallery — frontend gallery styles */

/* -------------------------------------------------------------------------
   Gallery container — shared
   ------------------------------------------------------------------------- */
.wpk-gallery {
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
	/* Optional background; layouts with their own backdrop override this. */
	background-color: var( --wpk-gallery-bg, transparent );
}

/* -------------------------------------------------------------------------
   Grid layout
   ------------------------------------------------------------------------- */
.wpk-gallery--grid {
	display: grid;
	grid-template-columns: repeat( var( --wpk-gallery-cols, 3 ), 1fr );
	gap: var( --wpk-gallery-gap, 12px );
}

/* -------------------------------------------------------------------------
   Masonry layout — pure CSS columns approach
   ------------------------------------------------------------------------- */
.wpk-gallery--masonry {
	columns: var( --wpk-gallery-cols, 3 );
	column-gap: var( --wpk-gallery-gap, 12px );
}

.wpk-gallery--masonry .wpk-gallery-item {
	break-inside: avoid;
	margin-bottom: var( --wpk-gallery-gap, 12px );
	display: block;
}

/* -------------------------------------------------------------------------
   Collage layout
   ------------------------------------------------------------------------- */
.wpk-gallery--collage {
	position: relative;
	min-height: clamp( 420px, 70vw, 760px );
	padding: clamp( 18px, 4vw, 48px );
	overflow: hidden;
	background: var( --wpk-gallery-bg, radial-gradient( circle at top, rgba( 255, 255, 255, 0.78 ), rgba( 243, 244, 246, 0.96 ) 55%, rgba( 236, 239, 241, 1 ) ) );
}

.wpk-gallery--collage::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient( 180deg, rgba( 15, 23, 42, 0.02 ), rgba( 15, 23, 42, 0.08 ) );
	pointer-events: none;
}

.wpk-gallery--collage .wpk-gallery-item {
	position: absolute;
	top: var( --wpk-collage-top, 50% );
	left: var( --wpk-collage-left, 50% );
	width: calc( min( 34%, 300px ) * var( --wpk-collage-scale, 1 ) * var( --wpk-collage-item-scale, 1 ) );
	max-width: 90%;
	transform: translate( -50%, -50% ) rotate( var( --wpk-collage-rot, 0deg ) );
	transform-origin: center center;
	box-shadow: 0 18px 40px rgba( 15, 23, 42, 0.18 );
	transition: top 0.4s ease, left 0.4s ease, transform 0.4s ease, opacity 0.28s ease, filter 0.28s ease, box-shadow 0.28s ease;
	z-index: var( --wpk-collage-z, 1 );
}

@media (prefers-reduced-motion: reduce) {
	.wpk-gallery--collage .wpk-gallery-item {
		transition: none;
	}
}

/* CSS fallback fan for no-JS / auto mode before gallery.js computes a scatter. */
.wpk-gallery--collage .wpk-gallery-item:nth-child( 1 ) { --wpk-collage-left: 26%; --wpk-collage-top: 32%; --wpk-collage-rot: -8deg; --wpk-collage-z: 1; }
.wpk-gallery--collage .wpk-gallery-item:nth-child( 2 ) { --wpk-collage-left: 48%; --wpk-collage-top: 40%; --wpk-collage-rot: 5deg; --wpk-collage-z: 2; }
.wpk-gallery--collage .wpk-gallery-item:nth-child( 3 ) { --wpk-collage-left: 70%; --wpk-collage-top: 34%; --wpk-collage-rot: -4deg; --wpk-collage-z: 3; }
.wpk-gallery--collage .wpk-gallery-item:nth-child( 4 ) { --wpk-collage-left: 34%; --wpk-collage-top: 64%; --wpk-collage-rot: 7deg; --wpk-collage-z: 4; }
.wpk-gallery--collage .wpk-gallery-item:nth-child( 5 ) { --wpk-collage-left: 62%; --wpk-collage-top: 66%; --wpk-collage-rot: -6deg; --wpk-collage-z: 5; }
.wpk-gallery--collage .wpk-gallery-item:nth-child( 6 ) { --wpk-collage-left: 50%; --wpk-collage-top: 50%; --wpk-collage-rot: 3deg; --wpk-collage-z: 6; }

/* Shuffle + Reorder controls (auto placement only) */
.wpk-collage-shuffle,
.wpk-collage-reorder {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 60;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: none;
	border-radius: 999px;
	background: rgba( 15, 23, 42, 0.82 );
	color: #fff;
	font-size: 0.8125em;
	font-weight: 600;
	cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-collage-shuffle,
	.wpk-collage-reorder {
		transition: background 0.2s ease, transform 0.2s ease;
	}
}

.wpk-collage-shuffle:hover,
.wpk-collage-reorder:hover {
	background: rgba( 15, 23, 42, 0.95 );
}

/* Reorder sits to the left of Shuffle in the same corner. */
.wpk-collage-reorder {
	right: 118px;
}

.wpk-collage-shuffle svg,
.wpk-collage-reorder svg {
	fill: currentColor;
}

.wpk-collage-shuffle:focus-visible,
.wpk-collage-reorder:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.wpk-gallery--collage .wpk-gallery-item:not(.is-focused) {
	opacity: 0.78;
	filter: saturate( 0.9 ) brightness( 0.86 ) blur( 1.2px );
}

.wpk-gallery--collage .wpk-gallery-item.is-focused {
	opacity: 1;
	filter: none;
	box-shadow: 0 30px 70px rgba( 15, 23, 42, 0.28 );
	z-index: 50;
	width: calc( min( 58%, 520px ) * var( --wpk-collage-scale, 1 ) );
}

.wpk-gallery--collage.wpk-gallery--collage-focused .wpk-gallery-item:not(.is-focused) {
	filter: saturate( 0.7 ) brightness( 0.55 ) blur( 2.8px );
}

/* Hover straightens, un-blurs and lifts the photo to the front. Scaling and
   rotating happen around the same centre point, so the pointer stays over the
   photo and it can't flicker. */
.wpk-gallery--collage .wpk-gallery-item:hover {
	transform: translate( -50%, -50% ) rotate( 0deg ) scale( 1.06 );
	filter: none;
	opacity: 1;
	z-index: 60;
	box-shadow: 0 26px 60px rgba( 15, 23, 42, 0.32 );
}

.wpk-gallery--collage.wpk-gallery--collage-focused .wpk-gallery-item:hover {
	filter: none;
}

.wpk-gallery--collage .wpk-gallery-link {
	position: relative;
	z-index: 1;
}

.wpk-gallery--collage .wpk-gallery-img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.wpk-gallery--collage .wpk-gallery-caption--below {
	background: rgba( 255, 255, 255, 0.92 );
	backdrop-filter: blur( 10px );
}

.wpk-gallery--collage .wpk-gallery-caption--overlay {
	padding: 30px 12px 10px;
}

@media ( max-width: 782px ) {
	.wpk-gallery--collage {
		min-height: 360px;
	}

	.wpk-gallery--collage .wpk-gallery-item {
		width: min( 72%, 340px );
	}

	.wpk-gallery--collage .wpk-gallery-item.is-focused {
		width: min( 82%, 420px );
	}
}

/* -------------------------------------------------------------------------
   Carousel layout
   ------------------------------------------------------------------------- */
.wpk-gallery--carousel {
	position: relative;
	overflow: hidden;
	display: block;
}

.wpk-gallery--carousel .wpk-gallery-item {
	display: inline-block;
	width: 100%;
	flex-shrink: 0;
	/* Items are positioned via translateX set by gallery.js */
}

/* -------------------------------------------------------------------------
   Cover Flow layout (OSX-style 3D flip)
   ------------------------------------------------------------------------- */
.wpk-gallery--coverflow {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: clamp( 320px, 52vw, 560px );
	padding: clamp( 16px, 4vw, 40px ) 0 clamp( 40px, 6vw, 72px );
	perspective: 1400px;
	background: var( --wpk-gallery-bg, linear-gradient( 180deg, #1b1f2a 0%, #0d1016 100% ) );
}

.wpk-gallery--coverflow .wpk-gallery-item {
	position: absolute;
	top: 46%;
	left: 50%;
	width: min( 42%, 380px );
	margin: 0;
	transform-style: preserve-3d;
	/* Transform, opacity and z-index are computed per item by gallery.js. */
	transform: translate( -50%, -50% );
	box-shadow: 0 30px 60px rgba( 0, 0, 0, var( --wpk-3d-shadow, 0.55 ) );
	cursor: pointer;
	will-change: transform, opacity;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-gallery--coverflow .wpk-gallery-item {
		transition: transform 0.45s cubic-bezier( 0.22, 0.61, 0.36, 1 ), opacity 0.45s ease;
	}
}

.wpk-gallery--coverflow .wpk-gallery-img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 1px solid rgba( 255, 255, 255, 0.08 );
	/* Reflection degrades gracefully where unsupported. */
	-webkit-box-reflect: below 2px linear-gradient( transparent 60%, rgba( 255, 255, 255, 0.22 ) );
}

.wpk-gallery--coverflow .wpk-gallery-item:not( .is-current ) .wpk-gallery-caption {
	display: none;
}

.wpk-gallery--coverflow .wpk-gallery-caption--below,
.wpk-gallery--coverflow .wpk-gallery-caption--overlay {
	color: #fff;
	background: transparent;
	text-align: center;
}

.wpk-gallery--coverflow .wpk-gallery-item.is-current {
	cursor: zoom-in;
}

/* Cover Flow controls sit under the images (above the 3D stack) as prev / slider / next. */
.wpk-coverflow-controls {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX( -50% );
	z-index: 200;
	display: flex;
	align-items: center;
	gap: 12px;
	width: min( 82%, 460px );
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba( 0, 0, 0, 0.45 );
}

.wpk-cf-prev,
.wpk-cf-next {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.15 );
	color: #fff;
	cursor: pointer;
}

.wpk-cf-prev:hover,
.wpk-cf-next:hover {
	background: rgba( 255, 255, 255, 0.3 );
}

.wpk-cf-prev:disabled,
.wpk-cf-next:disabled {
	opacity: 0.35;
	cursor: default;
}

.wpk-cf-prev svg,
.wpk-cf-next svg {
	fill: currentColor;
}

.wpk-cf-range {
	flex: 1 1 auto;
	width: 100%;
	accent-color: #fff;
	cursor: pointer;
}

/* Arrows-only variant (sphere "Controls" setting): the bar shrinks to a pill pair. */
.wpk-coverflow-controls.wpk-cf-noslider {
	width: auto;
	gap: 8px;
}

.wpk-coverflow-controls.wpk-cf-noslider .wpk-cf-range {
	display: none;
}

.wpk-cf-prev:focus-visible,
.wpk-cf-next:focus-visible,
.wpk-cf-range:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Turntable layout (3D ring — images circle around a centre)
   ------------------------------------------------------------------------- */
.wpk-gallery--turntable {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: clamp( 340px, 56vw, 600px );
	padding: clamp( 20px, 5vw, 56px ) 0 clamp( 56px, 7vw, 92px );
	perspective: 1600px;
	background: var( --wpk-gallery-bg, radial-gradient( circle at 50% 32%, #232a3d, #0c0f16 72% ) );
}

.wpk-gallery--turntable .wpk-gallery-item {
	position: absolute;
	top: 44%;
	left: 50%;
	width: min( 32%, 320px );
	margin: 0;
	transform-style: preserve-3d;
	/* Transform, opacity, filter and z-index are computed per item by gallery.js. */
	transform: translate( -50%, -50% );
	box-shadow: 0 24px 50px rgba( 0, 0, 0, var( --wpk-3d-shadow, 0.55 ) );
	cursor: pointer;
	will-change: transform, opacity, filter;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-gallery--turntable .wpk-gallery-item {
		transition: transform 0.5s cubic-bezier( 0.22, 0.61, 0.36, 1 ), opacity 0.5s ease, filter 0.5s ease;
	}
}

.wpk-gallery--turntable .wpk-gallery-img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 1px solid rgba( 255, 255, 255, 0.08 );
}

.wpk-gallery--turntable .wpk-gallery-item.is-current {
	cursor: zoom-in;
}

.wpk-gallery--turntable .wpk-gallery-item:not( .is-current ) .wpk-gallery-caption {
	display: none;
}

/* -------------------------------------------------------------------------
   Card deck layout — a stacked pack; deal through it or spread it out
   ------------------------------------------------------------------------- */
.wpk-gallery--deck {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: clamp( 360px, 60vw, 640px );
	padding: clamp( 20px, 5vw, 48px ) 0 clamp( 56px, 7vw, 88px );
	background: var( --wpk-gallery-bg, radial-gradient( circle at 50% 30%, #2a3040, #10131a 75% ) );
}

.wpk-gallery--deck .wpk-gallery-item {
	position: absolute;
	top: 44%;
	left: 50%;
	width: min( 52%, 380px );
	margin: 0;
	/* Transform, opacity, z-index computed per card by gallery.js. */
	transform: translate( -50%, -50% );
	box-shadow: 0 18px 44px rgba( 0, 0, 0, var( --wpk-3d-shadow, 0.55 ) );
	cursor: pointer;
	will-change: transform, opacity;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-gallery--deck .wpk-gallery-item {
		transition: transform 0.45s cubic-bezier( 0.22, 0.61, 0.36, 1 ), opacity 0.45s ease;
	}
}

.wpk-gallery--deck .wpk-gallery-img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border: 1px solid rgba( 255, 255, 255, 0.1 );
}

.wpk-gallery--deck .wpk-gallery-item.is-top {
	cursor: zoom-in;
}

.wpk-gallery--deck .wpk-gallery-item:not( .is-top ) .wpk-gallery-caption {
	display: none;
}

.wpk-gallery--deck .wpk-gallery-caption--below,
.wpk-gallery--deck .wpk-gallery-caption--overlay {
	color: #fff;
	background: transparent;
	text-align: center;
}

/* The card mid-flight while dealing to the back of the pack. */
.wpk-gallery--deck .wpk-gallery-item.is-flying {
	transform: translate( -50%, -50% ) translateX( 120% ) rotate( 18deg ) !important;
	opacity: 0 !important;
}

/* Spread + counter controls */
.wpk-deck-spread {
	position: absolute;
	right: 14px;
	top: 14px;
	z-index: 220;
	padding: 7px 14px;
	border: none;
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.16 );
	color: #fff;
	font-size: 0.8125em;
	font-weight: 600;
	cursor: pointer;
}

.wpk-deck-spread:hover {
	background: rgba( 255, 255, 255, 0.3 );
}

.wpk-deck-spread:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.wpk-deck-count {
	position: absolute;
	left: 14px;
	top: 14px;
	z-index: 220;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba( 0, 0, 0, 0.45 );
	color: #fff;
	font-size: 0.8125em;
	font-weight: 600;
	pointer-events: none;
}

/* While spread, cards fan out via the collage custom properties. */
.wpk-gallery--deck.is-spread .wpk-gallery-item {
	top: var( --wpk-collage-top, 50% );
	left: var( --wpk-collage-left, 50% );
	width: min( 30%, 240px );
}

/* -------------------------------------------------------------------------
   Sphere layout — photos on a rotating 3D globe
   ------------------------------------------------------------------------- */
.wpk-gallery--sphere {
	position: relative;
	display: block;
	overflow: hidden;
	min-height: clamp( 380px, 62vw, 680px );
	padding: clamp( 20px, 5vw, 48px ) 0 clamp( 56px, 7vw, 88px );
	perspective: 1500px;
	background: var( --wpk-gallery-bg, radial-gradient( circle at 50% 35%, #1f2739, #0a0d14 75% ) );
	cursor: grab;
	touch-action: none;
}

.wpk-gallery--sphere.is-dragging {
	cursor: grabbing;
}

.wpk-gallery--sphere .wpk-gallery-item {
	position: absolute;
	top: 46%;
	left: 50%;
	width: calc( min( 26%, 220px ) * var( --wpk-sphere-item-scale, 1 ) );
	margin: 0;
	transform-style: preserve-3d;
	/* Transform, opacity, filter, z-index computed per photo by gallery.js. */
	transform: translate( -50%, -50% );
	box-shadow: 0 18px 40px rgba( 0, 0, 0, var( --wpk-3d-shadow, 0.55 ) );
	cursor: pointer;
	will-change: transform, opacity, filter;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-gallery--sphere .wpk-gallery-item {
		transition: transform 0.5s cubic-bezier( 0.22, 0.61, 0.36, 1 ), opacity 0.5s ease, filter 0.5s ease;
	}
}

/* No item transition mid-drag — the pointer drives rotation directly. */
.wpk-gallery--sphere.is-dragging .wpk-gallery-item,
.wpk-gallery--sphere.is-autospin .wpk-gallery-item {
	transition: none;
}

/* Auto-play feature phase: the front photo grows and floats toward the
   viewer using the same variables the hover pop reads. */
.wpk-gallery--sphere .wpk-gallery-item.is-autozoom {
	--wpk-sphere-pop: 140px;
	--wpk-sphere-hover: 1.5;
}

.wpk-gallery--sphere .wpk-gallery-img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 1px solid rgba( 255, 255, 255, 0.08 );
	/* Native image drag would hijack the sphere's rotation drag. */
	-webkit-user-drag: none;
	user-select: none;
}

/* Rotation animation variants (Smooth orbit is the default transition). */
@media (prefers-reduced-motion: no-preference) {
	.wpk-gallery--sphere-anim-quick .wpk-gallery-item {
		transition-duration: 0.22s;
	}

	.wpk-gallery--sphere-anim-slow .wpk-gallery-item {
		transition-duration: 1s;
	}
}

.wpk-gallery--sphere-anim-instant .wpk-gallery-item {
	transition: none;
}

.wpk-gallery--sphere .wpk-gallery-item.is-current {
	cursor: zoom-in;
}

/* Hover affordance: JS drives transform/filter inline, so the "this one
   opens" signal is a brightness overlay + ring that nothing overrides.
   Back-hemisphere photos have pointer-events: none, so they never light up. */
.wpk-gallery--sphere .wpk-gallery-item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba( 255, 255, 255, 0.18 );
	opacity: 0;
	pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-gallery--sphere .wpk-gallery-item::after {
		transition: opacity 0.15s ease;
	}
}

.wpk-gallery--sphere .wpk-gallery-item:hover::after,
.wpk-gallery--sphere .wpk-gallery-item:focus-within::after {
	opacity: 1;
}

.wpk-gallery--sphere .wpk-gallery-item:hover,
.wpk-gallery--sphere .wpk-gallery-item:focus-within {
	outline: 2px solid rgba( 255, 255, 255, 0.85 );
	outline-offset: 2px;
	/* The inline transform reads these, so the hovered photo grows slightly
	   and slides out of the globe toward the viewer. Amounts come from the
	   gallery's Hover pop setting (50 = the original 34px / 1.07). */
	--wpk-sphere-pop: var( --wpk-sphere-pop-amt, 34px );
	--wpk-sphere-hover: var( --wpk-sphere-hover-amt, 1.07 );
}

.wpk-gallery--sphere .wpk-gallery-item:not( .is-current ) .wpk-gallery-caption {
	display: none;
}

.wpk-gallery--sphere .wpk-gallery-caption--below,
.wpk-gallery--sphere .wpk-gallery-caption--overlay {
	color: #fff;
	background: transparent;
	text-align: center;
}

/* -------------------------------------------------------------------------
   Justified rows (Flickr / Google Photos style)
   ------------------------------------------------------------------------- */
.wpk-gallery--justified {
	display: flex;
	flex-wrap: wrap;
	gap: var( --wpk-gallery-gap, 12px );
	align-items: flex-start;
}

.wpk-gallery--justified .wpk-gallery-item {
	/* width + height are set inline per row by gallery.js; this is the no-JS fallback. */
	flex: 1 1 var( --wpk-gallery-row-h, 220px );
	height: var( --wpk-gallery-row-h, 220px );
	overflow: hidden;
}

.wpk-gallery--justified .wpk-gallery-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -------------------------------------------------------------------------
   Slideshow (cross-fade + optional Ken Burns)
   ------------------------------------------------------------------------- */
.wpk-gallery--slideshow {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var( --wpk-gallery-bg, #000 );
}

.wpk-gallery--slideshow .wpk-gallery-item {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	/* Inactive slides stay stacked but must not capture clicks. */
	pointer-events: none;
}

.wpk-gallery--slideshow .wpk-gallery-item.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-gallery--slideshow .wpk-gallery-item {
		transition: opacity 0.8s ease;
	}
}

.wpk-gallery--slideshow .wpk-gallery-link {
	display: block;
	width: 100%;
	height: 100%;
}

.wpk-gallery--slideshow .wpk-gallery-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-gallery--kenburns .wpk-gallery-item.is-active .wpk-gallery-img {
		animation: wpk-kenburns var( --wpk-gallery-interval, 5s ) ease-out forwards;
	}

	@keyframes wpk-kenburns {
		from { transform: scale( 1 ) translate( 0, 0 ); }
		to   { transform: scale( 1.12 ) translate( -2%, -2% ); }
	}
}

.wpk-gallery-playpause {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 10;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba( 0, 0, 0, 0.45 );
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.wpk-gallery-playpause:hover {
	background: rgba( 0, 0, 0, 0.7 );
}

.wpk-gallery-playpause svg {
	fill: currentColor;
}

.wpk-gallery-playpause:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Stage + filmstrip
   ------------------------------------------------------------------------- */
.wpk-gallery--stage {
	display: block;
}

.wpk-stage-main {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var( --wpk-gallery-bg, #0d1016 );
	cursor: zoom-in;
}

.wpk-stage-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-stage-img {
		transition: opacity 0.25s ease;
	}
}

.wpk-stage-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10px 12px;
	background: linear-gradient( 180deg, transparent, rgba( 0, 0, 0, 0.65 ) );
	color: #fff;
	font-size: 0.9em;
}

.wpk-stage-thumbs {
	display: flex;
	gap: var( --wpk-gallery-gap, 12px );
	list-style: none;
	margin: var( --wpk-gallery-gap, 12px ) 0 0;
	padding: 0 0 6px;
	overflow-x: auto;
}

.wpk-stage-thumbs li {
	margin: 0;
	flex: 0 0 auto;
}

.wpk-stage-thumb {
	display: block;
	width: 84px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: none;
	line-height: 0;
	overflow: hidden;
	cursor: pointer;
}

.wpk-stage-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wpk-stage-thumb.is-active {
	border-color: var( --wp--preset--color--primary, #2271b1 );
}

.wpk-stage-thumb:focus-visible {
	outline: 3px solid var( --wp--preset--color--primary, #0073aa );
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Before / After comparison
   ------------------------------------------------------------------------- */
.wpk-gallery--beforeafter {
	display: block;
}

.wpk-ba {
	position: relative;
	overflow: hidden;
	line-height: 0;
	cursor: ew-resize;
	touch-action: none;
	user-select: none;
}

.wpk-ba-img {
	display: block;
	width: 100%;
	/* Let the container own all pointer events so native image-drag can't hijack the slider. */
	pointer-events: none;
	-webkit-user-drag: none;
}

.wpk-ba-before {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	clip-path: inset( 0 calc( 100% - var( --wpk-ba-pos, 50% ) ) 0 0 );
}

.wpk-ba-divider {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var( --wpk-ba-pos, 50% );
	width: 2px;
	background: var( --wpk-ba-line, #fff );
	transform: translateX( -1px );
	pointer-events: none;
}

.wpk-ba-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate( -50%, -50% );
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var( --wpk-ba-handle, #fff );
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.4 );
}

.wpk-ba-range {
	/* Keyboard-only: the container handles pointer dragging. Still tabbable. */
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.wpk-ba-range:focus-visible {
	outline: 3px solid var( --wp--preset--color--primary, #0073aa );
	outline-offset: -3px;
}

.wpk-ba-label {
	position: absolute;
	top: 10px;
	padding: 3px 8px;
	background: rgba( 0, 0, 0, 0.6 );
	color: #fff;
	font-size: 0.8em;
	line-height: 1.4;
	border-radius: 3px;
	pointer-events: none;
}

.wpk-ba-label--before { left: 10px; }
.wpk-ba-label--after { right: 10px; }

/* -------------------------------------------------------------------------
   Gallery item
   ------------------------------------------------------------------------- */
.wpk-gallery-item {
	position: relative;
	margin: 0;
	padding: 0;
	overflow: hidden;
	/* Optional per-photo border (0 width by default = no border). */
	border: var( --wpk-gallery-border-width, 0 ) solid var( --wpk-gallery-border-color, transparent );
	/* Optional breathing room between the photo and its border (photo-mat look). */
	padding: var( --wpk-gallery-border-pad, 0 );
	/* Photo background fills the padding/mat area around the photo. */
	background-color: var( --wpk-gallery-mat, transparent );
}

.wpk-gallery-link {
	display: block;
	text-decoration: none;
	color: inherit;
	line-height: 0; /* Removes gap below inline images */
}

/* -------------------------------------------------------------------------
   Gallery image
   ------------------------------------------------------------------------- */
.wpk-gallery-img {
	display: block;
	width: 100%;
	height: auto;
}

/* Shimmer placeholder shown before lazy image loads */
.wpk-gallery-img:not(.wpk-gallery-loaded) {
	background-color: #e8e8e8;
	background-image: linear-gradient(
		90deg,
		rgba( 255, 255, 255, 0 ) 0%,
		rgba( 255, 255, 255, 0.6 ) 50%,
		rgba( 255, 255, 255, 0 ) 100%
	);
	background-size: 200% 100%;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-gallery-img:not(.wpk-gallery-loaded) {
		animation: wpk-gallery-shimmer 1.5s infinite linear;
	}

	@keyframes wpk-gallery-shimmer {
		0%   { background-position: 200% 0; }
		100% { background-position: -200% 0; }
	}
}

/* -------------------------------------------------------------------------
   Aspect ratio variants
   ------------------------------------------------------------------------- */
.wpk-gallery--ratio-square .wpk-gallery-img {
	aspect-ratio: 1;
	object-fit: cover;
}

.wpk-gallery--ratio-landscape .wpk-gallery-img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.wpk-gallery--ratio-portrait .wpk-gallery-img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

/* -------------------------------------------------------------------------
   Caption — below
   ------------------------------------------------------------------------- */
.wpk-gallery-caption--below {
	display: block;
	padding: 6px 4px 2px;
	font-size: 0.875em;
	line-height: 1.4;
	color: #3c3c3c;
	text-align: center;
}

/* -------------------------------------------------------------------------
   Caption — overlay
   ------------------------------------------------------------------------- */
.wpk-gallery-caption--overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 8px 10px;
	background: rgba( 0, 0, 0, 0.6 );
	color: #fff;
	font-size: 0.875em;
	line-height: 1.4;
	translate: 0 100%;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-gallery-caption--overlay {
		transition: translate 0.2s ease;
	}
}

.wpk-gallery-item:hover .wpk-gallery-caption--overlay,
.wpk-gallery-item:focus-within .wpk-gallery-caption--overlay {
	translate: 0 0;
}

/* -------------------------------------------------------------------------
   Carousel controls
   ------------------------------------------------------------------------- */
.wpk-gallery-prev,
.wpk-gallery-next {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 10;
	background: rgba( 0, 0, 0, 0.45 );
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-gallery-prev,
	.wpk-gallery-next {
		transition: background 0.2s ease, opacity 0.2s ease;
	}
}

.wpk-gallery-prev:hover,
.wpk-gallery-next:hover {
	background: rgba( 0, 0, 0, 0.7 );
}

.wpk-gallery-prev:disabled,
.wpk-gallery-next:disabled {
	opacity: 0.3;
	cursor: default;
}

.wpk-gallery-prev { left: 12px; }
.wpk-gallery-next { right: 12px; }

.wpk-gallery-prev svg,
.wpk-gallery-next svg {
	fill: currentColor;
}

/* -------------------------------------------------------------------------
   Focus ring (a11y)
   ------------------------------------------------------------------------- */
.wpk-gallery-link:focus-visible {
	outline: 3px solid var( --wp--preset--color--primary, #0073aa );
	outline-offset: 2px;
}

.wpk-gallery-prev:focus-visible,
.wpk-gallery-next:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.wpk-gallery--carousel:focus-visible {
	outline: 3px solid var( --wp--preset--color--primary, #0073aa );
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------------------- */
.wpk-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba( 0, 0, 0, 0.92 );
	display: flex;
	align-items: center;
	justify-content: center;
}

/* The author display rule above overrides the UA [hidden] = display:none,
   so re-assert hidden explicitly or the overlay shows permanently. */
.wpk-gallery-lightbox[hidden] {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-gallery-lightbox:not([hidden]) {
		animation: wpk-lightbox-in 0.2s ease;
	}

	@keyframes wpk-lightbox-in {
		from { opacity: 0; }
		to   { opacity: 1; }
	}
}

.wpk-lightbox-figure {
	max-width: 90vw;
	max-height: 90vh;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.wpk-lightbox-img {
	display: block;
	max-width: 90vw;
	max-height: 80vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 2px;
	transform-origin: center center;
	-webkit-user-drag: none;
	/* Pan and region-select drags must never select the image. */
	user-select: none;
	-webkit-user-select: none;
}

/* Region-zoom selection rectangle (drawn while dragging at 1x). */
.wpk-lightbox-select {
	position: fixed;
	z-index: 2;
	border: 2px dashed rgba( 255, 255, 255, 0.9 );
	background: rgba( 255, 255, 255, 0.12 );
	pointer-events: none;
}

/* At 1x the image is selectable for region zoom. */
.wpk-gallery-lightbox:not( .is-zoomed ) .wpk-lightbox-figure {
	cursor: crosshair;
	touch-action: none;
}

/* Zoomed state: image is grabbable for panning. */
.wpk-gallery-lightbox.is-zoomed .wpk-lightbox-figure {
	cursor: grab;
	touch-action: none;
	overflow: hidden;
}

.wpk-gallery-lightbox.is-zoomed .wpk-lightbox-figure:active {
	cursor: grabbing;
}

/* Zoom controls */
.wpk-lightbox-zoom-controls {
	position: fixed;
	top: 16px;
	left: 16px;
	z-index: 1;
	display: flex;
	gap: 8px;
}

/* Vertical zoom slider docked beside the image: bottom = 1x, top = max.
   Left by default (clear of the next-photo arrow); the gallery's
   "Zoom slider side" setting flips it. writing-mode covers modern
   Chrome/Firefox; the orient attribute in the markup covers older Firefox. */
.wpk-lightbox-zoomslider {
	position: fixed;
	left: 72px; /* Clear of the previous-photo arrow. */
	top: 50%;
	transform: translateY( -50% );
	z-index: 1;
	writing-mode: vertical-lr;
	direction: rtl;
	width: 22px;
	height: min( 40vh, 260px );
	margin: 0;
	accent-color: #fff;
	cursor: pointer;
}

.wpk-gallery-lightbox.wpk-lightbox-slider-right .wpk-lightbox-zoomslider {
	left: auto;
	right: 72px; /* Clear of the next-photo arrow. */
}

.wpk-lightbox-zoomslider:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* Transient zoom-level badge — quiet feedback, re-flashes at the max level. */
.wpk-lightbox-zoomlevel {
	display: flex;
	align-items: center;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.15 );
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-lightbox-zoomlevel {
		transition: opacity 0.25s ease;
	}
}

.wpk-lightbox-zoomlevel.is-visible {
	opacity: 1;
}

.wpk-lightbox-caption {
	color: rgba( 255, 255, 255, 0.85 );
	font-size: 0.9em;
	text-align: center;
	padding: 8px 0 0;
	max-width: 60ch;
}

.wpk-lightbox-download {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.15 );
	color: #fff;
	font-size: 0.8125em;
	font-weight: 600;
	text-decoration: none;
}

.wpk-lightbox-download:hover {
	background: rgba( 255, 255, 255, 0.3 );
	color: #fff;
}

.wpk-lightbox-download svg {
	fill: currentColor;
}

.wpk-lightbox-download:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.wpk-lightbox-download[hidden] {
	display: none;
}

/* Lightbox close button */
.wpk-lightbox-close {
	position: fixed;
	top: 16px;
	right: 16px;
	background: rgba( 255, 255, 255, 0.15 );
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-lightbox-close {
		transition: background 0.2s ease;
	}
}

.wpk-lightbox-close:hover {
	background: rgba( 255, 255, 255, 0.3 );
}

/* Lightbox prev/next buttons */
.wpk-lightbox-prev,
.wpk-lightbox-next {
	position: fixed;
	top: 50%;
	transform: translateY( -50% );
	background: rgba( 255, 255, 255, 0.12 );
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 52px;
	height: 52px;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
	.wpk-lightbox-prev,
	.wpk-lightbox-next {
		transition: background 0.2s ease;
	}
}

.wpk-lightbox-prev { left: 12px; }
.wpk-lightbox-next { right: 12px; }

.wpk-lightbox-prev:hover,
.wpk-lightbox-next:hover {
	background: rgba( 255, 255, 255, 0.25 );
}

.wpk-lightbox-prev:disabled,
.wpk-lightbox-next:disabled {
	opacity: 0.25;
	cursor: default;
}

/* Focus rings in lightbox */
.wpk-lightbox-close:focus-visible,
.wpk-lightbox-prev:focus-visible,
.wpk-lightbox-next:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Block editor gallery picker
   ------------------------------------------------------------------------- */
.wpk-block-gallery-picker {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.wpk-block-gallery-picker .components-base-control {
	flex: 1 1 auto;
	margin-bottom: 0;
}

.wpk-block-gallery-picker__create {
	white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Block editor preview placeholder
   ------------------------------------------------------------------------- */
.wpk-block-preview {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 24px;
	background: #f6f7f7;
	border: 2px dashed #c3c4c7;
	border-radius: 4px;
	font-weight: 500;
	color: #1d2327;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media ( max-width: 768px ) {
	.wpk-gallery--grid,
	.wpk-gallery--masonry {
		--wpk-gallery-cols: 2;
	}
}

@media ( max-width: 480px ) {
	.wpk-gallery--grid,
	.wpk-gallery--masonry {
		--wpk-gallery-cols: 1;
	}

	.wpk-gallery-prev,
	.wpk-gallery-next,
	.wpk-lightbox-prev,
	.wpk-lightbox-next {
		width: 36px;
		height: 36px;
		font-size: 24px;
	}
}

/* -------------------------------------------------------------------------
   Style presets
   ------------------------------------------------------------------------- */
.wpk-gallery--preset-classic {
	padding: 6px;
	background: var( --wpk-gallery-bg, #fff );
	border: 1px solid #dcdcde;
	border-radius: 6px;
}

/* Item-card chrome applies to flow layouts only; canvas/3D layouts drive
   their own item look (this used to bleed a white card onto the sphere). */
.wpk-gallery--grid.wpk-gallery--preset-classic .wpk-gallery-item,
.wpk-gallery--masonry.wpk-gallery--preset-classic .wpk-gallery-item,
.wpk-gallery--justified.wpk-gallery--preset-classic .wpk-gallery-item {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
}

.wpk-gallery--preset-editorial {
	align-items: start;
	background: var( --wpk-gallery-bg, #fdfdfd );
	padding: 6px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

/* Item-card chrome applies to flow layouts only; canvas/3D layouts drive
   their own item look (this used to bleed a white card onto the sphere). */
.wpk-gallery--grid.wpk-gallery--preset-editorial .wpk-gallery-item,
.wpk-gallery--masonry.wpk-gallery--preset-editorial .wpk-gallery-item,
.wpk-gallery--justified.wpk-gallery--preset-editorial .wpk-gallery-item {
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 14px 35px rgba( 15, 23, 42, 0.12 );
}

.wpk-gallery--preset-editorial .wpk-gallery-link,
.wpk-gallery--preset-editorial .wpk-gallery-img {
	border-radius: 8px 8px 0 0;
}

.wpk-gallery--preset-editorial .wpk-gallery-caption--below {
	padding: 10px 12px 12px;
	color: #1f2933;
	font-family: Georgia, serif;
	font-size: 0.95em;
	text-align: left;
}

.wpk-gallery--preset-editorial .wpk-gallery-caption--overlay {
	background: linear-gradient( 180deg, rgba( 0, 0, 0, 0 ), rgba( 0, 0, 0, 0.78 ) );
	padding: 34px 14px 12px;
}

.wpk-gallery--preset-luxe {
	padding: clamp( 12px, 2vw, 24px );
	background: var( --wpk-gallery-bg, #111 );
	box-shadow: 0 22px 60px rgba( 0, 0, 0, 0.28 );
}

/* Item-card chrome applies to flow layouts only; canvas/3D layouts drive
   their own item look (this used to bleed a white card onto the sphere). */
.wpk-gallery--grid.wpk-gallery--preset-luxe .wpk-gallery-item,
.wpk-gallery--masonry.wpk-gallery--preset-luxe .wpk-gallery-item,
.wpk-gallery--justified.wpk-gallery--preset-luxe .wpk-gallery-item {
	background: #111;
	overflow: hidden;
}

.wpk-gallery--preset-luxe .wpk-gallery-img {
	filter: saturate( 1.08 ) contrast( 1.05 );
}

.wpk-gallery--preset-luxe .wpk-gallery-caption--below {
	padding: 10px 4px 2px;
	color: rgba( 255, 255, 255, 0.86 );
}

.wpk-gallery--preset-luxe .wpk-gallery-caption--overlay {
	background: linear-gradient( 180deg, rgba( 0, 0, 0, 0 ), rgba( 0, 0, 0, 0.82 ) );
	color: #f7efe0;
}

.wpk-gallery--preset-showcase {
	--wpk-gallery-gap: max( var( --wpk-gallery-gap, 12px ), 18px );
}

/* Item-card chrome applies to flow layouts only; canvas/3D layouts drive
   their own item look (this used to bleed a white card onto the sphere). */
.wpk-gallery--grid.wpk-gallery--preset-showcase .wpk-gallery-item,
.wpk-gallery--masonry.wpk-gallery--preset-showcase .wpk-gallery-item,
.wpk-gallery--justified.wpk-gallery--preset-showcase .wpk-gallery-item {
	border-radius: 10px;
	background: #f8fbfc;
	overflow: hidden;
}

.wpk-gallery--preset-showcase .wpk-gallery-img {
	border-radius: 10px;
}

.wpk-gallery--preset-showcase .wpk-gallery-caption--below {
	padding: 10px 2px 4px;
	color: #244653;
	font-size: 0.92em;
}

.wpk-gallery--preset-showcase.wpk-gallery--carousel {
	padding: clamp( 8px, 2vw, 18px );
	background: #eef4f7;
	border-radius: 12px;
}

@media (prefers-reduced-motion: no-preference) {
	/* Only grid/masonry use flow transforms; other layouts drive transform for
	   positioning, so a blanket translateY(-2px) here would clobber them. */
	.wpk-gallery--grid.wpk-gallery--preset-editorial .wpk-gallery-item,
	.wpk-gallery--grid.wpk-gallery--preset-showcase .wpk-gallery-item,
	.wpk-gallery--masonry.wpk-gallery--preset-editorial .wpk-gallery-item,
	.wpk-gallery--masonry.wpk-gallery--preset-showcase .wpk-gallery-item {
		transition: transform 0.2s ease, box-shadow 0.2s ease;
	}

	.wpk-gallery--grid.wpk-gallery--preset-editorial .wpk-gallery-item:hover,
	.wpk-gallery--grid.wpk-gallery--preset-showcase .wpk-gallery-item:hover,
	.wpk-gallery--masonry.wpk-gallery--preset-editorial .wpk-gallery-item:hover,
	.wpk-gallery--masonry.wpk-gallery--preset-showcase .wpk-gallery-item:hover {
		transform: translateY( -2px );
	}
}

/* -------------------------------------------------------------------------
   Corner style overrides (double class beats single-class preset radii)
   ------------------------------------------------------------------------- */
.wpk-gallery.wpk-gallery--corners-straight .wpk-gallery-item,
.wpk-gallery.wpk-gallery--corners-straight .wpk-gallery-img {
	border-radius: 0;
}

.wpk-gallery.wpk-gallery--corners-rounded .wpk-gallery-item {
	border-radius: 10px;
}

.wpk-gallery.wpk-gallery--corners-rounded .wpk-gallery-img {
	border-radius: 8px;
}

/* -------------------------------------------------------------------------
   Polaroid photo style — mat with a taller bottom edge; the caption lives in
   the bottom mat, like handwriting on an instant photo.
   ------------------------------------------------------------------------- */
.wpk-gallery.wpk-gallery--photostyle-polaroid .wpk-gallery-item {
	padding: var( --wpk-gallery-border-pad, 10px ) var( --wpk-gallery-border-pad, 10px ) calc( var( --wpk-gallery-border-pad, 10px ) + 34px );
	background-color: var( --wpk-gallery-mat, #fff );
	box-shadow: 0 10px 26px rgba( 15, 23, 42, 0.22 );
}

.wpk-gallery.wpk-gallery--photostyle-polaroid .wpk-gallery-caption--below {
	position: absolute;
	left: var( --wpk-gallery-border-pad, 10px );
	right: var( --wpk-gallery-border-pad, 10px );
	bottom: 8px;
	padding: 0;
	background: transparent;
	backdrop-filter: none;
	color: #3c3c3c;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* -------------------------------------------------------------------------
   Background image (all layouts) — overrides layout/preset backdrops
   ------------------------------------------------------------------------- */
.wpk-gallery.wpk-gallery--has-bg-img {
	background-image: var( --wpk-gallery-bg-img );
	background-position: center;
}

.wpk-gallery.wpk-gallery--bgmode-cover {
	background-size: cover;
	background-repeat: no-repeat;
}

.wpk-gallery.wpk-gallery--bgmode-contain {
	background-size: contain;
	background-repeat: no-repeat;
}

.wpk-gallery.wpk-gallery--bgmode-stretch {
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.wpk-gallery.wpk-gallery--bgmode-tile {
	background-size: auto;
	background-repeat: repeat;
	background-position: top left;
}

/* Stage's dark main pane also honours the background image. */
.wpk-gallery--has-bg-img .wpk-stage-main {
	background-image: var( --wpk-gallery-bg-img );
	background-size: inherit;
	background-repeat: inherit;
	background-position: inherit;
}
