@charset "UTF-8";
/******************** IVAN RODERO'SPORTFOLIO  ********************/

/* 
LOADING */
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/

.overlay {
/* This is probably used for modal or page transitions (fades in/out). Controls how opacity and visibility animate. */
	-webkit-transition: opacity 0.6s, visibility 0.1s 0.6s;
	transition: opacity 0.6s, visibility 0.1s 0.6s;
}

/******************** END OF LOADING *******************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/






/******************** SET UP THINGS ********************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/

/****** FONTS ******/

@font-face {
	font-family: 'Futura-Bold';
	src:	url('../fonts/futura/Futura-Bold.eot?#iefix') format('embedded-opentype'),
			url('../fonts/futura/Futura-Bold.woff') format('woff'),
			url('../fonts/futura/Futura-Bold.ttf') format('truetype'),
			url('../fonts/futura/Futura-Bold.svg#webfont') format('svg');
}

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");

/****** END OF FONTS ******/

/****** PREPARING THE PAGE ******/

*, *:after, *:before { 
/* This sets box-sizing: border-box globally, which is now a best practice.
   It makes width/height include padding and border, which is more intuitive when laying out elements.
   Prevents layout bugs caused by box expansion.
   Essential for predictable layouts. */
	-webkit-box-sizing: border-box; 
	-moz-box-sizing: border-box; 
	box-sizing: border-box; 
}

body, html {
/* Removes default spacing around the page.
   Ensures a consistent starting point for font sizing (100% = browser default, typically 16px).
   Standard reset boilerplate. */
	font-size: 100%; 
	padding: 0; 
	margin: 0;
}

.clearfix:before, .clearfix:after {
/* Fixes a common issue when using float elements (like .responsive) that don’t push the height of their container.
   This "hack" ensures the parent container correctly wraps around floated children.
   Use .clearfix on a parent to contain floated children. */
	content: " "; 
	display: table;
}

.clearfix:after {
	content: "";
	display: table;
	clear: both;
}

body {
/* Sets white-on-black colour scheme for the body. */
    color: #fff;
    background: #000;
	overflow-y: scroll;
}

a {
/* Styles links as white by default. */
	color: #fff;
	text-decoration: none;
	font-weight:bold;
}

a:hover {
/* And yellow on hover */
	color: #ffd600;
}

html, body, 
.container {
	position: relative; /* position: relative enables absolute/fixed elements inside. */
	width: 100%; /* Ensures the full layout stretches 100% of the viewport. */
	height: 100%; /* Ensures the full layout stretches 100% of the viewport. */
}


/****** END OF PREPARING THE PAGE ******/


/***************** END OF SET UP THINGS ****************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/

/* 
HEADER */

.funk {
	position:fixed;
    top: 0px;
    height: 10%;
	max-height:100px;
	min-height:40px;
	background-color:#000;
    z-index: 99997 !important;
	display: block;
    margin-left: auto;
    margin-right: auto;
	border-bottom:1px solid #333;
    width: 100%;
}

.inner-funk {
  max-width: 2020px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ship {
	height:100%;
	padding-left:2%;
}

.ship img {
	height:80%;
	max-height:70px;
	margin-top:2.5%;
}

/****** CONTACT BAR ******/

.contbar {
	display: flex;
	align-items: center;
	padding-right:2%;
}

.contactbar .fap {
	margin:0;
	padding-left:1em;
	
}

.contactbar li {
	display: inline-block;
	list-style-type: none;
	margin-left:.4em;
	text-align: left;
	vertical-align: bottom;
}

.contactbar p {
	text-align: left;
	font-family: Georgia, serif;
	font-style:italic;
	font-size:.9em;
	line-height:.1em
}

.contactbar {
	display: inline-block;
	margin: 0 auto;
	padding-left: 0;
	max-height:60px;
	margin-top:1.5%;
	
}

/********************* END OF HEADER *******************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/

/* 
BODY */


.page {
	position: relative;
	top: 0;
	overflow: auto;
	min-height: 100%;
	width: 75%;
	height: auto;
	font-size: 1.4em;
	-webkit-backface-visibility: hidden;
}

.container {
	padding-left: 0;
	padding-right:0;
	padding-top:1%;
}
.inner-container {
  max-width: 2020px;
  margin: 0 auto;
  padding: 0; /* Optional for side spacing */
}

.container section {
	padding-bottom: 1em;
}

.container h2 {
	margin: 1em 0 0em 0;
	font-weight: 300;
	font-size: 5em;
	line-height:.9em;
	font-family:'Futura-Bold', Arial, sans-serif;
	text-transform:uppercase;
	padding-left:1%;
}

.container p {
	font-family: Georgia, serif;
	font-style:italic;
	font-size: 1.2em;
	line-height:1.6em;
	text-align:justify;
	padding-left:1%;
	padding-right:1%;
	margin-top:0;
}

/********************** END OF BODY ********************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/

/*
INTRO */

/* New Intro */
.intro {
  /*background-color: #0F6;*/
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  
  margin-top: 100px;       /* push it down below .funk */
  height: 80vh;            /* let it use 80% of screen */
  box-sizing: border-box;
  
  padding: 0 20px;
  box-sizing: border-box;
  font-weight: 300;
  font-family: 'Futura-Bold', Arial, sans-serif;
  text-transform: uppercase;

}

.heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* left-align the text inside */
  font-weight: 700;
  line-height: .9;
  word-spacing: -0.05em; /* or try -0.2em for tighter spacing */
  font-size: clamp(1.5rem, 9.5vw, 12rem); /* 
  11vw makes it scale much larger — almost screen-wide
  14rem is the max cap, useful on huge screens (you can go even higher)
  1rem is the minimum on very narrow mobile screens */
  overflow: visible /*hidden*/;
  align-self: flex-start;
}

.texting {
  width: 50vw;
  max-width: 1010px;
  margin-top: -.2rem;
  text-align: left;
  font-size: clamp(0.9rem, 1vw, 1.6rem);
  line-height: 1;
  align-self: flex-start;
  text-transform:none;
  word-break: normal;        /* Allow breaks only between words */
  overflow-wrap: break-word; /* If a word is too long, allow it to wrap */
  hyphens: auto;             /* Optional: adds hyphenation for very long words */
}

.heading span {
  white-space: nowrap; /* prevent wrapping */
}	
	
.heading {
  /*border: 1px dashed red;*/
}	

.highlight {
  position: relative;
  display: inline-block;
  color: inherit; /* keep same text color */
}

.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2em; /* adjust to fine-tune line position under text */
  width: 100%;
  height: 0.2em; /* relative to font size, ~20px at large sizes */
  background-color: #ffd600;
  z-index: 0; /* sends the underline behind the text */
  
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 2s ease-out 0.3s; /* delay before animation */
}

.highlight.animate::after {
  transform: scaleX(1);
}

.logo-icon {
  display: inline-block;
  height: .72em; /* match parent text size */
  aspect-ratio: 280 / 100;
  width: auto;
  background-image: url('../img/eyes1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: baseline; /* aligns with bottom of text */
  margin-right: 0.1em;
  transition: background-image 0.3s ease;
  
}

.logo-icon:hover {
  background-image: url('../img/eyes2.png');
}

/* MARQUEE */

.marquee {
  width: 100vw;
  overflow: hidden;
  background-color: #000;
  color: #fff;
  font-family: 'Futura-Bold', Arial, sans-serif;
  text-transform: uppercase;
  font-size: 2rem;
  padding: 1rem 0;
  margin-left: calc(-50vw + 50%);
  position: relative;
  margin-bottom:10vh;
}

.marquee-content {
  display: flex; /* Switch to flex to avoid inline gaps */
  animation: scrollLoop 60s linear infinite;
}

.marquee-content span {
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: .6rem; /* or adjust as needed */
}

@keyframes scrollLoop {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/********************** END OF INTRO ********************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/

/*
POPUP */

.white-popup {
	border-radius: 8px;
	position: relative;
	background: #fff;
	color:#000;
	padding: 2%;
	width: auto;
	max-width: min(1200px, 80vw);
	margin: 100px auto;
}

.white-popup h1 {
	font-size:4.6em!important;
	font-family:'Futura-Bold', Arial, sans-serif;
	text-transform:uppercase;
	line-height:.9em;
	padding-top:.6em;
	padding-bottom:.5em;
	border-bottom:1px solid #999;
	margin: 0;	
}

.subheadline {
  display: block;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: normal;
  font-size: 0.5em; /* or use clamp() if responsive needed */
  line-height: 1;
  margin-top: 0.2em;
  text-transform: none; /* optional: override uppercase */
}

.white-popup h2 {
	font-size:2.6em!important;
	font-family:'Futura-Bold', Arial, sans-serif;
	text-transform:uppercase;
	line-height:1em;
	padding-bottom:.2em;
	padding-top:1em;	
}

.white-popup p {
	font-family:Georgia, serif;
	font-style:italic;
	font-size: 1em;
	line-height:1.5em;
	text-align:left;
	width:80%;
} 

.white-popup p.Footnote {
	font-family:Georgia, serif;
	font-style:italic;
	font-size: .8em;
	line-height:1.2em;
	text-align:left;
	width:100%;
}

.white-popup img.grande {
	float:left;
	width:100%;
	display:inline-block;
	margin-top:1em;
	margin-bottom:1em;
}

.white-popup video.grande {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: cover;   /* good if your video is slightly off ratio */
}

button.mfp-close{
	color:#000!important;
	opacity: 1
}

.mfp-close:hover,
.mfp-close:focus {
	color: #ffd600!important;
}

/*END OF POPUP *****************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/

/*
GALLERY */

div.gallery {	
	
}

div.gallery:hover {
	
}

div.gallery img {
	width: 100%;
	height: auto;
	margin:0;
}

.responsive {
	padding: 0;
	float: left;
	width: calc(25% - 30px); /* Subtract 2 × 10px margin */
	margin: 15px; /* 20px gap = 10px on each side */
}

.gallery-row {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	gap: 0; /* just in case it's set somewhere */
}

.gallery {
	display: block;
	margin: 0;
	padding: 0px;
}

/* ✳️ Make images fill their container */
.gallery img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

/* ✳️ OLD LAYOUT — for the 4 original projects not inside gallery-row */
body > .responsive {
	width: 24.99999%;
	float: left;
	padding: 0;
	box-sizing: border-box;

}

/* ✳️ NEW LAYOUT — inside custom gallery rows */
.gallery-row.full .responsive {
	width: 100% !important;
	float: none !important;
	padding: 0;
	box-sizing: border-box;
}

.gallery-row.half .responsive {
	width: calc(50% - 30px) !important;
	float: none !important;
	padding: 0;
	box-sizing: border-box;
}

/* ✳️ Hover overlay description on gallery images */
.gallery {
	position: relative;
	overflow: hidden;
}

.gallery .desc {
	font-family: Georgia, serif;
	font-style:italic;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1em 1em 1em 2%; /* top, right, bottom, left */
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 1em;
	opacity: 0;
	transition: opacity 0.3s ease;
	text-align: left;
	display: flex;
	flex-direction: column;
	justify-content: center;
	pointer-events: none;
}

.gallery:hover .desc {
	opacity: 1;
}
.gallery .desc .line1 {
	font-family: 'Futura-Bold', Arial, sans-serif;
	text-transform: uppercase;
	font-style:normal;
	font-size: 2.6rem;
	line-height:2.4rem;
	word-break:normal;
}

.gallery .desc span {
	display: block;
}

/* One item per row (full-width image) */
.gallery-row.full .gallery img {
	height: 80vh;
	object-fit: cover;
	aspect-ratio: auto;
}

/* Two items per row (half-width each) */
.gallery-row.half .gallery img {
	height: 70vh;
	object-fit: cover;
	aspect-ratio: auto;
}

/* Four items per row (legacy layout) */
.gallery-row.default .gallery img,
.gallery-row.default .responsive .gallery img, 
.responsive:not(.gallery-row .responsive) .gallery img {
	height: 60vh;
	object-fit: cover;
	aspect-ratio: auto;
}

/*END OF GALLERY ***************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/

/*
ME */
.space-magic {
	height:5rem!important;
}

.meme {
	padding: 1rem 1rem;
	max-width: 2020px;
	margin: 0 auto;
}

.inside-meme {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.meme-photo {
	flex: 1;
	max-width: 48%;
}

.meme-photo img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.meme-text {
	flex: 1;
	font-family: Georgia, serif;
	font-style: italic;
	font-weight:normal;
	 font-size: clamp(0.9rem, 1vw, 1.6rem);
	line-height: 1.6;
	text-align: justify;
}

.meme-text h3{
	font-size: 1.6em;
	line-height:1.2em;
	font-family:'Futura-Bold', Arial, sans-serif;
	text-transform:uppercase;
	font-style:normal;
	margin-bottom:6rem;
}

/*END OF ME ********************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/

/*
WHY */

.why-width {
	width: 100%;
	max-width: 2020px;
	margin: 0 auto;
	padding: 1rem;
}

.why-short {
	width: 100%;
	margin: 4rem 0 0rem 0;
}


/* MAIN HEADING */

.why-heading {
	padding-bottom: 1rem;
}

.why-heading h2 {
	margin: 0;
	padding: 0;

	font-family: 'Futura-Bold', Arial, sans-serif;
	font-size: clamp(1.1rem, 1.4vw, 1.6rem);
	font-weight: normal;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0;
}


/* MAIN EXPERIENCE */

.why-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	padding: 1rem 0 5rem 0;
}

.why-stat {
	min-width: 0;
}

.why-number {
	margin: 0;

	font-family: 'Futura-Bold', Arial, sans-serif;
	font-size: clamp(4rem, 7vw, 8rem);
	font-weight: normal;
	line-height: 0.8;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.why-number-big {
	margin: 0;

	font-family: 'Futura-Bold', Arial, sans-serif;
	font-size: clamp(8rem, 14vw, 16rem);
	font-weight: normal;
	line-height: 0.8;
	letter-spacing: -0.04em;
	text-transform: uppercase;
}

.why-stat-title {
	margin-top: 1rem;
	font-family: Georgia, serif !important;
	font-style: italic;
	font-size: clamp(1.8rem, 2vw, 2.4rem);
	line-height: 1;
}

.why-stat-detail {
	margin: 1.3rem 0 0 0 !important;
	padding: 0 !important;
	max-width: 24rem;
	font-family: Georgia, serif !important;
	font-style: italic;
	font-size: clamp(1rem, 1vw, 1rem) !important;
	line-height: 1.5 !important;
	text-align: left !important;
}


/* SECTION LABEL */

.why-section-label {
	padding: 1.2rem 0;
	font-family: 'Futura-Bold', Arial, sans-serif;
	font-size: clamp(0.8rem, .8vw, 1rem);
	line-height: 1;
	text-transform: uppercase;
}


/* EDUCATION */

.why-background {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	padding: 3rem 0 3.5rem 0;
}

.why-background-item h3 {
	margin: 0 0 0.6rem 0;
	padding: 0;
	font-family: 'Futura-Bold', Arial, sans-serif;
	font-style: normal;
	font-size: clamp(2.6rem, 2.2vw, 4rem);
	font-weight: normal;
	line-height: 1;
	text-transform: uppercase;
}

.why-background-item p {
	margin: 0 !important;
	padding: 0 !important;
	max-width: 24rem;
	font-family: Georgia, serif !important;
	font-style: italic;
	font-size: clamp(1rem, 1vw, 1rem) !important;
	line-height: 1.5 !important;
	text-align: left !important;
}


/* FINAL EXPERIENCE STATEMENT */

.why-footer {
	display: grid;
	grid-template-columns: 2fr 2fr;
	gap: 2rem;
	padding: 3rem 0;
}

.why-footer-label {
	font-family: 'Futura-Bold', Arial, sans-serif;
	font-size: clamp(1.3rem, 1.6vw, 2rem);
	line-height: 1;
	text-transform: uppercase;
}

.why-footer p {
	margin: 0 !important;
	padding: 0 !important;
	max-width: 80rem;
	font-family: Georgia, serif !important;
	font-style: italic;
	font-size: clamp(1rem, 1.25vw, 1.5rem) !important;
	line-height: 1.5 !important;
	text-align: left !important;
}


/* TABLET */

@media screen and (max-width: 60em) {

	.why-stats,
	.why-background {
		gap: 1.5rem;
	}

	.why-number {
		font-size: clamp(3.5rem, 8vw, 6rem);
	}

}


/* MOBILE */

@media screen and (max-width: 43.75em) {

	.why-width {
		padding: 1rem;
	}

	.why-short {
		margin: 2rem 0 5rem 0;
	}


	/* STATS */

	.why-stats {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 0;
	}

	.why-stat {
		padding: 2.5rem 0;
	}

	.why-stat:last-child {
		border-bottom: 0;
	}

	.why-number {
		font-size: clamp(4rem, 18vw, 6rem);
	}

	.why-stat-title {
		margin-top: .8rem;
	}

	.why-stat-detail {
		margin-top: 1rem !important;
	}


	/* EDUCATION */

	.why-background {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 0;
	}

	.why-background-item {
		padding: 2rem 0;
	}

	.why-background-item:last-child {
		border-bottom: 0;
	}


	/* FINAL ROW */

	.why-footer {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 2.5rem 0;
	}

}

/*END OF WHY ********************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/

/* 
CONTACT */

.tato {
	width:100%; 
	position:absolute;
}
.contact li {
	display: block;
	list-style-type: none;
	margin: 0 1em;
	text-align: left;
	vertical-align: top;
}
.contact p {
	text-align: left;
}
.contact {
	display: inline-block;
	margin: 0 auto;
	min-width:180px;
	padding-left: 0;
}
.cont {
	text-align: left;
}

/*END OF CONTACT ***************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/

/* 
FOOTER */

.site-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	padding: 1rem 2%;
	border-top: 1px solid #333;
	font-family: Georgia, serif;
	font-style: italic;
	font-size: 0.9rem;
	line-height: 1.4;
}

.footer-left,
.footer-right {
	
}

.footer-right {
	text-align: right;
}

/*END OF FOOTER ****************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/


/* 
RESPONSIVENESS */

@media screen and (max-width: 58em) { /* Reduces base font size at ~928px wide. */
body { 
	font-size: 100%; 
}
}

@media only screen and (min-width: 49.4375px) {
.tato {
	display:none;
}
}

@media screen and (max-width: 49.4375em) { /* (~791px) This is the main responsive break */
.page {
	width: 100%;
}

.tato {
	position: relative; /* instead of absolute */
    display: block;
    margin-bottom: 1.6rem; /* adds breathing room above footer */
}

.cont p {
	text-align: left;
	font-family: 'Futura-Bold', Arial, sans-serif;
	text-transform:uppercase;
	font-style:normal;
	font-size: clamp(1rem, 6vw, 2rem)!important;
    line-height: 1;
}

.cont a {
	color: #ffd600;
}

.page-left {
	padding-right: 15%; /* Used for main content spacing on smaller screens */
}

.contbar {
	display:none;
}

/* FOOTER */

.site-footer {
	flex-direction: column;
	align-items: flex-start;
}

.footer-right {
	margin-top: 0.5rem;
	text-align: left;
	font-size:12px;
}

.awesome-text {
	display: block;
	margin-top: 0.1rem; /* optional spacing */
}  
}

@media screen and (max-width: 43.75em) { /* ~700px */  
/* INTRO */
.intro {
    padding: 4rem 1rem;
    height: auto;                /* no fixed height */
    margin-top: 80px;
	width: 100%;

}
  
.logo-icon {
	width: 100%;
	display:inline-block;
    aspect-ratio: 280 / 100;
	height: .72em;
	background-image: url('../img/eyes1.png'); /* ✅ ADD THIS */
    background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
    margin-bottom: 1.6rem!important;
	vertical-align:baseline;
}
  
.heading span:first-child .logo-icon {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 280 / 100;
	margin-bottom: 1rem;
}
  
.heading {
	font-size: clamp(1.2rem, 9vw, 2.8rem)!important;
    line-height: 1;
}

.heading span {
	display: inline-block;
	width: 100%;
	box-sizing: border-box;
}

/* Force the last line not to break between "building" and "brands" */
.heading span:last-child {
	white-space: nowrap!important;
	overflow-wrap: normal!important;
	word-break: keep-all!important;
	width: auto;
}

/* Ensure highlight doesn't stretch full width */
.highlight {
	position: relative;
	display: inline-block;
	color: inherit; /* keep same text color */
}

.highlight::after {
	width:100%;
	max-width:100%;
}

body, html {
	overflow-x: hidden;
}
  
.texting {
    width: 100%;
    max-width: 100%;
    font-size: 1em;
	letter-spacing:.04em;
    margin-top: 1.6rem;
}
  
/* END OF INTRO */
.responsive {
    width: 49.99999%;
    margin: 0;
    float: none !important;
    padding: 0 !important;
}

.white-popup img {
    width: 100%;
    display: inline-block;
}

.white-popup {
    max-width: 98%;
	padding: 5%;
}
  
.white-popup h1 {
	font-size:2.2em!important;
	letter-spacing:.05em;
	line-height:.9em;
	padding-bottom:1em;
}

.subheadline {
	font-size: 0.6em; /* or use clamp() if responsive needed */
	line-height: 1.1em;
	margin-top: 0.2em;
}

.white-popup h2 {
	font-size:1.6em!important;
	line-height:1em;
	padding-bottom:.3em;
	padding-top:1em;	
}

.white-popup p {
	font-size: 1em;
	letter-spacing:.03em;
	line-height:1.6em;
	text-align:justify;
}

.gallery-row.half .responsive {
    width: 100% !important;
}

.responsive .gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
	margin: 0 0 1.6em 0;
}

.responsive .gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Optional hard fallback to enforce height */
.responsive .gallery img {
    height: auto;
    max-height: calc(100vw / 2 * 1.6); /* width/2 * 9/16 = height */
}

.marquee-content {
	animation: scrollLoop 20s linear infinite;
}

/* ME */
.inside-meme {
	flex-direction: column;
	align-items: flex-start;
}

.meme-photo, .meme-text {
	width: 100%;
	max-width: 100%;
}

.meme-text {
	font-size: 1em;
	line-height: 1.6;
	text-align: justify;
}

/* END OF ME */
}

@media screen and (max-width: 42.5em) { /* (~680px) Further scales down: */
  body { 
    font-size: 100%; 
  }
}

@media screen and (max-width: 39.375em) { /* (~630px) */
  .container {
    padding-top: 5%;
  }
}

@media screen and (max-width: 31.25em) { /* ~500px */
  /* Stack all .responsive elements on small screens */
  .responsive {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
  }

  .gallery-row.half .responsive {
    width: 100% !important;
  }
}

@media screen and (max-width: 20em) { /* Tiny screens get smaller font size for readability. */
  body { 
    font-size: 70%; 
  }	
}

/**************** END OF RESSPONSIVENESS ***************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/
/*******************************************************/

