--ancho-ventana:calc(50vw-100px)
--alto-ventana:calc(50vh-1000px)

.video{
	
	width: 80%;
	height: auto;
}

body{
	margin:0;
	padding:0;
}

#videoAyuda{
	
	margin:auto;
}

.contenedor {
	/*background-color:lime;*/
	padding: 8px;
	/*border: 2px black solid;*/
	border-radius: 2px;
	/*display: flex;
		flex-direction: column;*/
}

main {
	background-color: lightgreen;
	/*display: flex;
	flex-direction: column;*/
	/*background-color: lightgray;*/
	background-color: cee9d3;

	padding: 8px;
}

section {
	/*
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: flex-start;*/
	display: grid;
	/* grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); */
	grid-template-columns: repeat(3,1fr);
	gap: 10px;
}

/* h4 {
	font-size: 1em;
} */
article {
	/*width: 25%;
	height: 70vh;
	/* grid-area:a; */
	border-radius: 10px;
	/* max-width: 400px; */
	padding: 1%;
	/* margin: 1%; */
	/*background-color: orange;*/
	/*background-color: lightgray;*/
	/* max-width: 100px; */
	background-color: moccasin;
	/*background-color: #eefab9;*/
	box-shadow: 3px 3px;
}

.foto {
	border-radius: 10px;
	width: 100%;
	height: 200px;
}

.modal-header{
	border-bottom: 0px;
}

.modal-footer{
	border-top: 0px;
}

.modal-content{
	background-color: moccasin;
    box-shadow: 2px 2px;
	
}

footer {
	background-color: white;
	padding: 1%; /* This creates the continuous white bar */
	display: flex;
	justify-content: space-between; /* Pushes the #rs and #pagui to opposite ends */
	align-items: center; /* Vertically aligns the content */
}

/* Remove individual styles for #rs and #pagui, as the footer now handles the background and layout */
/* #pagui {
	The style for pagui is now handled by the footer
	display: flex;
	align-items: center;
	gap: 10px; Adds space between the pagination links
}

#rs {
	The style for rs is now handled by the footer
	display: flex;
	align-items: center;
	gap: 10px;
} */
#rs a {
	color: #333; /* For better contrast on the white background */
}

#rs-chico {
	display: none;
}


#icono {
	color: blue;
	background-color: green;
}

#icono:hover {
	color: red;
}

@media screen and (min-width: 321px) and (max-width: 480px) and
	(orientation: portrait) {
	section {
		/* grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); */
		grid-template-columns: repeat(1,1fr);
	}
	#sus {
		padding: 0%;
	}
	#rs {
		display: none;
	}
	#rs-chico {
		display: block;
		float: left;
		background-color: white;
		
	}
	
	.video{
	
	width: 80%;
	height: auto;
    }
}

@media screen and (min-height: 321px) and (max-height: 480px) and
	(orientation: landscape) {
	section {
		/* grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); */
		grid-template-columns: repeat(2,1fr);
	}
	#sus {
		margin-left: 0px;
		padding: 0px;
	}
	
	.video{
	
	width: 80%;
	height: auto;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) and
	(orientation: portrait) {
	section {
		/* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
		grid-template-columns: repeat(2,1fr);
	}
	#sus {
		padding: 0px;
	}
}

@media screen and (min-height: 481px) and (max-height: 768px) and
	(orientation: landscape) {
	section {
		/* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
		grid-template-columns: repeat(2,1fr);
	}
	#sus {
		padding: 0%;
	}
	.video{
	
	width: 80%;
	height: auto;
	}
}

@media screen and (min-width: 769px) and (max-width: 1024px) and
	(orientation: portrait) {
	section {
		/* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
		grid-template-columns: repeat(3,1fr);
	}
	#sus {
		padding: 0%;
	}
		#imagen {
		width: 800px;
		height: 800px;
		margin: auto;
		padding: 2%;
		position: fixed;
		top: 300px;
		/* left:var(--ancho-ventana); */
	}
	#modalFoto {
		width: 100%;
		height: auto;
	}
	.video{
	
	width: 80%;
	height: auto;
	}
}

@media screen and (min-height: 769px) and (max-height: 1024px) and
	(orientation: landscape) {
	section {
		grid-template-columns: repeat(4,1fr);
	}
	#sus {
		padding: 0%;
	}
	#imagen {
		width: auto;
		max-height: 600px;
		margin: auto;
		padding: 2%;
		position: fixed;
		left:var(--ancho-ventana);
	}
	#modalFoto {
		width: 100%;
		height: auto;
	}
	.video{
	
	width: 80%;
	height: auto;
	}
}

@media screen and (min-width: 1025px) {
	section {
	
			grid-template-columns: repeat(4,1fr);
	}
	#sus {
		padding: 0%;
	}
	#imagen {
		width: auto;
		max-height: 800px;
		margin: auto;
		padding: 2%;
		position: fixed;
		overflow:scroll;
	}
	#modalFoto {
		width: 100%;
		height: auto;
	}
}
/* 
@media screen and (height >= 1025px) and (orientation: landscape) {
	section {
	
			grid-template-columns: repeat(autofit,4,1fr);
	} 
	#sus {
		padding: 0%;
	}
	#imagen {
		width: 1000px;
		height: 1000px;
		margin: auto;
		padding: 2%;
		position: fixed;
		top: 500px;
	
	}
	#modalFoto {
		width: 100%;
		height: auto;
	} 
} */