.appl{
	
	& .items{
		display: grid; 
		grid-template-columns: 1fr 1fr 1fr; 
		gap: 30px; 
		margin-bottom: 4em; 
		
		@media (max-width: 960px) {
			grid-template-columns: 1fr 1fr;
		}
		@media (max-width: 690px) {
			grid-template-columns: 1fr;
		}

		& .item{
			position: relative; 
			background-color: #ebeff1;
			border: 1px solid #6FCAED80;
			
			&>div{
				padding: 1em; 
				display: flex;
				flex-direction: column; 
				gap: 0.5em; 
				align-items: start; 
			}
			
			& img{
				aspect-ratio: 3/2; 
				width: 100%; 
				object-fit: cover; 
			}
			
			& h3{
				font-size: 14pt;
				margin-top: 0px;
				hyphens: auto;
				text-wrap: balance;
				
			}
			
			& button{
				cursor: pointer;
				position: unset; 
				min-width: unset; 
					
				&:after{
					content: "";
					width: 100%;
					height: 100%;
					inset: 0;
					position: absolute;
				}
			} 
		}
		
	}
	
	
}


.refpop {
	opacity: 0;
	transition: all 0.3s ease;
	scale: 0;
	position: fixed;
	inset: 0;
	transition-behavior: allow-discrete;
	max-width: calc(100% - 4em);
	width: 1024px;
	text-align: left;
	filter: drop-shadow(2px 4px 6px black);
	border: 3px solid #f36f42;
	border-radius: 0;
	overflow: visible;
	padding: 0;
	background-color: #F3F3F4;
	border-radius: 0.5em;
	
	
	&>div {
		max-height: calc(100vh - 7em);
		max-height: calc(100dvh - 7em);
		padding: 2em 2em 1.33em 2em;
		overscroll-behavior: contain;
		background-position: center center;
		background-repeat: repeat;
		overflow-x: hidden;
		overflow-y: auto;
	
		@media (max-width: 480px) {
			padding:1.5em 1em 0.83em 1em;
		}
		
		& .cat{

			display: inline-block;
			padding: 5px 10px 5px 10px;
			margin-right: 10px;
			margin-bottom: 10px;
			color:white;
			background-color: #F36F42;
			font-size: 12pt;
			text-decoration: none;
			padding-left: 14px;
			padding-right: 14px;
			text-transform: uppercase; 
			
		}
		
		& .gal{

			display: flex;
			width: 100%;
			overflow-x: auto;
			/*scroll-snap-type: x mandatory;*/
			background-color: white;
			border-radius: 0.5em; 

			
			&>div{
				scroll-snap-align: center;
				padding: 30px;
				box-sizing: border-box;
				/* outline: 1px solid blue; */
				flex-shrink: 0;
				display: flex;
				justify-content: center;
				
				& img{
					object-fit: contain;
					object-position: center center; 
					width: 100%; 
					height: 100%;
					max-height: calc(100vh - 14em);
					max-height: calc(100dvh - 14em);
					min-height: 200px; 
				}
				
				@media (max-width: 690px) {
					padding: 15px;
				}
			}
		}
	}

	&:popover-open {
		opacity: 1;
		scale: 1;
	}

	@starting-style {
		&:popover-open {
			opacity: 0;
			scale: 0;
		}
	}

	&::backdrop {
	}

	&::backdrop {
		background-color: #0000;
		transition: all 0.3s allow-discrete;
	}

	&:popover-open::backdrop {
		background-color: #fff6;
		backdrop-filter: blur(4px);
	}

	@starting-style {
		&:popover-open::backdrop {
			background-color: #0000;
			backdrop-filter: blur(0px);
		}
	}

	& h4 {
		font-weight: bold;
		margin-top: 0em;
	}

	& h5 {
		margin-block: 0.75em 0.25em;
	}

	&ul {
		margin-top: 0;
	}

	&>.btn-close {
		position: absolute;
		width: 3em;
		height: 3em;
		right: -1.5em;
		top: -1.5em;
		border: 3px solid #f36f42;
		border-radius: 100%;
		display: grid;
		align-items: center;
		justify-items: center;
		padding: 0;
		cursor: pointer;
		background-color: white;
		transition: all 0.3s ease;
		
		&:hover {
			scale: 1.2;
		}

		&:before,&:after {
			position: absolute;
			content: "";
			width: 66%;
			height: 3px;
			background-color: #f36f42;
			grid-row: 1;
			grid-column: 1;
			transform: rotateZ(45deg);
			border-radius: 10px;
		}

		&:after {
			transform: rotateZ(-45deg);
		}
	}
	&>.btn-next {
		position: absolute;
		width: 3em;
		height: 3em;
		left: calc(50% + 0.5em); 
		top: -1.5em;
		border: 3px solid #f36f42;
		border-radius: 100%;
		display: grid;
		align-items: center;
		justify-items: center;
		padding: 0;
		cursor: pointer;
		background-color: white;
		transition: all 0.3s ease;
		
		&:hover {
			scale: 1.2;
		}

		&:before,&:after {
			position: absolute;
			content: "";
			width: 50%;
			height: 3px;
			background-color: #f36f42;
			grid-row: 1;
			grid-column: 1;
			transform: translateY(-5px) translateX(1px) rotateZ(45deg);
			border-radius: 10px;
		}

		&:after {
			transform: translateY(5px) translateX(1px) rotateZ(-45deg)
		}
	}
	&>.btn-prev {
		position: absolute;
		width: 3em;
		height: 3em;
		right: calc(50% + 0.5em); 
		top: -1.5em;
		border: 3px solid #f36f42;
		border-radius: 100%;
		display: grid;
		align-items: center;
		justify-items: center;
		padding: 0;
		cursor: pointer;
		background-color: white;
		transition: all 0.3s ease;
		
		&:hover {
			scale: 1.2;
		}

		&:before,&:after {
			position: absolute;
			content: "";
			width: 50%;
			height: 3px;
			background-color: #f36f42;
			grid-row: 1;
			grid-column: 1;
			transform: translateY(-5px) translateX(-3px) rotateZ(-45deg);
			border-radius: 10px;
		}

		&:after {
			transform: translateY(5px) translateX(-3px) rotateZ(45deg)
		}
	}
}

body:has(:popover-open) {
	overflow: hidden;
}
