/**
 * Resets
 */
/* Import Didot font */
@import url('https://fonts.cdnfonts.com/css/didot') ;


/* Base Typography */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: #F5F5F5;
  background-color: #0A0A0A;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Didot', 'Times New Roman', serif;
  font-weight: 300;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 42px;
  letter-spacing: 0.04em;
  margin-bottom: 30px;
}

h2 {
  font-size: 32px;
  letter-spacing: 0.03em;
  margin-bottom: 25px;
}

h3 {
  font-size: 24px;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

/* Body Text */
p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Links */
a {
  color: #F5F5F5;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #D4AF37;
}



* {
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

::-moz-selection {
	background-color: #09f;
	color: #fff;
}

::selection {
	background-color: #09f;
	color: #fff;
}

:focus {
	outline: 0;
}

customhtml > * {
	position: relative;
    z-index: 10;
}


/* Override Persona.co navigation styling */
.persona-nav a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}



/**
 * Global
 */

body,
html {
	min-height: 100vh;
	margin: 0px;
	padding: 0px;
}

html {
	position: relative;
}

body {
	background: #333;
	color: #000;
}

a:active {
	opacity: 0.7;
}

/**
 * Backdrop
 */

#backdrop {
	position: fixed;
	right: 0;
	top: 0;
	bottom: 0;
	max-width: 100%;
	z-index: 1;
}

/**
 * Container
 */

main {
	background: #fff;
	clear: both;
	overflow: hidden;
	position: absolute;
	max-width: 100%;
	width: 100%;
	z-index: 2;

	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;

	-webkit-flex-wrap: wrap;
	-moz-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;

	-webkit-align-items: center;
	-moz-align-items: center;
	-ms-align-items: center;
	align-items: center;
}

main > div {
	-moz-flex: 1 0 auto;
	-webkit-flex: 1 0 auto;
	flex: 1 0 auto;
	width: 100%;
}


.subpage_overlay {
	display: block;
	pointer-events: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}

body.homepage .subpage_overlay {
	display: none;
}
/**
 * Content
 */

i, em {
	font-style: italic;
}

b, strong {
	font-weight: bold;
}

ul, ol {
	margin: 0;
	padding: 0 0 0 1em;
}

sup {
	top: -0.4em;
	vertical-align: baseline;
	position: relative;
}

sub {
	top: 0.3em;
	vertical-align: baseline;
	position: relative;
}

s {
	
}

.slideshow-nav { 
	margin-bottom: 0.5em; 
}

img {
	border: 0;
	padding: 0;
}

blockquote {
	margin: 0;
	padding: 0 0 0 2em;
}

hr {
	background: rgba(127, 127, 127, 0.2);
	border: 0;
	height: 0.08em;
	display: block;
}

.bodycopy {
	display: none;
}

.container {
	min-height: 100%;
}

.video-thumbnail img {
    margin-bottom: 0; /* Remove the 1em margin */
}

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

.loading[data-loading] {
	display: none;
	position: fixed;
	top: 8px; left: 8px;
	z-index: 100;
}

/**
 * Editor styles
 */

[data-css-presets="true"] main {
	background-color: rgba(0, 0, 0, 0)/*!content_left*/;
	text-align: left /*!text_left*/;
	min-height: 100vh /*!content_stretch*/;
	-webkit-align-items: flex-end /*!vertical_bottom*/;
	align-items: flex-end /*!vertical_bottom*/;
	left: 0 /*!content_left*/;
}

[data-css-presets="true"] .content_padded {
	padding: 2.7rem/*!main_margin*/;
}

[data-css-presets="true"] .content_width {
	width: 100rem/*!content_left*/;
}

[data-css-presets="true"] #backdrop {
	width: 100% /*!background_cover*/;
}

[data-predefined-style="true"] main {
	font-size: 1.3rem;
	font-weight: 400;
	color: rgb(254, 254, 254);
	font-family: "Source Sans Pro", Social /*!Google*/;
	font-style: normal;
	line-height: 1.4;
}

[data-predefined-style="true"] main a {
	color: rgb(255, 255, 255);
    padding-bottom: 0em;
    border-bottom: 0.08em solid rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

[data-predefined-style="true"] main a:hover {

}

main a.image-link,
main a.icon-link,
main a.image-link:hover,
main a.icon-link:hover {
	border-bottom: 0;
	padding-bottom: 0;
}

[data-predefined-style="true"] h1 {
	font-family: 'Didot', Social /*!Persona*/;
	font-style: normal;
	font-weight: 400;
	padding: 0;
	margin: 0;
	font-size: 5.6rem;
	line-height: 1.2;
	color: rgb(255, 255, 255);
	text-rendering: optimizeLegibility;
}

[data-predefined-style="true"] h1 a {
	color: rgb(255, 255, 255);
}

[data-predefined-style="true"] h2 {
	font-family: 'Dolly Pro', Social /*!Persona*/;
	font-style: normal;
	font-weight: 400;
	padding: 0;
	margin: 0;
	color: rgb(255, 255, 255);
	font-size: 2.6rem;
	line-height: 1.4;
	text-rendering: optimizeLegibility;
}

[data-predefined-style="true"] h2 a {
	color: rgb(255, 255, 255);
}

[data-predefined-style="true"] small {
    display: inline-block;
	font-size: 1.0rem;
	line-height: 1.3;
	font-family: "Helvetica Neue", Social /*!Persona*/;
	font-style: normal;
	font-weight: 400;
	color: rgb(255, 255, 255);
}

[data-predefined-style="true"] small a {
	color: rgb(255, 255, 255);
	border-bottom-width: 0.1em;
}


[data-css-presets="true"] .subpage_overlay {
	background-color: rgba(99, 98, 98, 0.7)/*!subpage_overlay*/;
}
/**
 * Backstage Icon
 */

#backstage_icon {
	display: block;
}

/**
 * Breakpoints
 */

[data-css-presets="true"].mobile #plugin,
[data-css-presets="true"].mobile #backdrop,
.mobile #backdrop,
.mobile #plugin {
	position: relative;
	height: 50vh;
	min-width: 100%;
	width: calc(100% - 80rem) /*!right_fit*/;
	top: 0;
	bottom: auto;
	left: 0 /*!right_fit*/;
}

.mobile main,
[data-css-presets="true"].mobile main {
	position: relative;
	min-height: 10px;
	max-width: 100%;
	width: 100%;
}

.mobile main.content_width,
[data-css-presets="true"].mobile main.content_width {
	max-width: 100%;
	width: 100%;
}

/* Container holding the image and the text */
.container {
  position: relative;
  text-align: center;
  color: white;
}

/* Bottom left text */
.bottom-left {
  position: absolute;
  bottom: 8px;
  left: 16px;
}

/* Top left text */
.top-left {
  position: absolute;
  top: 8px;
  left: 16px;
}

/* Top right text */
.top-right {
  position: absolute;
  top: 8px;
  right: 16px;
}

/* Bottom right text */
.bottom-right {
  position: absolute;
  bottom: 8px;
  right: 16px;
}

/* Centered text */
.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* NEW AINMATIONS */

/* Fade-in animation for headings */
h1, h2, .heading {
  animation: fadeInUp 1s ease forwards;
}

/* Fade-in animation for paragraphs with delay */
p, .text-block {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

/* Hover effect for navigation links */
nav a, .nav-link, .menu-item a {
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

nav a:hover, .nav-link:hover, .menu-item a:hover {
  color: #ff5a5f !important; /* Change to your preferred color */
  letter-spacing: 0.03em;
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: Staggered animation for different elements */
h1 { animation-delay: 0.1s; }
h2 { animation-delay: 0.2s; }
.heading { animation-delay: 0.3s; }

/* Optional: Add a subtle scale effect to project items on hover */
.project-item, .work-item, .portfolio-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover, .work-item:hover, .portfolio-item:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Optional: Add colorful borders to navigation items */
nav a, .nav-link, .menu-item a {
  position: relative;
}

nav a::after, .nav-link::after, .menu-item a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ff5a5f; /* Change to your preferred color */
  transition: width 0.3s ease;
}

nav a:hover::after, .nav-link:hover::after, .menu-item a:hover::after {
  width: 100%;
}

/* Logo animation for your specific logo - simplified to just scale down */
img[src*="PaprStudios-WH.png"] {
  animation: logoScaleDown 1.5s ease-out forwards;
  transform-origin: top left;
  margin: 0 !important; /* Prevent any margin from causing gaps */
  padding: 0 !important; /* Prevent any padding from causing gaps */
  display: inline-block !important;
  vertical-align: top !important;
}

@keyframes logoScaleDown {
  0% {
    transform: scale(2);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Basic hover effect using simpler CSS */
a.image-link:hover img {
  -webkit-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -ms-transform: scale(1.2);
  transform: scale(1.2);
}

a.image-link img {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

/* Colorful navigation underlines */
a[href*="Discography"], a[href*="Mix-Tape"], a[href*="About"], a[href*="contact"] {
  position: relative;
  text-decoration: none;
}

a[href*="Discography"]::after, a[href*="Mix-Tape"]::after, a[href*="About"]::after, a[href*="contact"]::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  transition: width 0.3s ease;
}

a[href*="Discography"]::after { background-color: #ff5a5f; }
a[href*="Mix-Tape"]::after { background-color: #3498db; }
a[href*="About"]::after { background-color: #2ecc71; }
a[href*="contact"]::after { background-color: #f1c40f; }

a[href*="Discography"]:hover::after, a[href*="Mix-Tape"]:hover::after, a[href*="About"]:hover::after, a[href*="contact"]:hover::after {
  width: 100%;
}

/* Fade-in text animation */
h1, h2, h3 {
  animation: fadeIn 1.2s ease forwards;
}

p, small {
  animation: fadeIn 1.5s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Subtle background color shift */
body {
  background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Simple border animations */
.content-section, div[grid-col] {
  position: relative;
  overflow: hidden;
}

.content-section::before, div[grid-col]::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  animation: borderFlow 3s infinite linear;
}

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

/* Text color transitions */
a:not(.image-link):not(.icon-link) {
  transition: color 0.3s ease;
}

a:not(.image-link):not(.icon-link):hover {
  color: #ff5a5f !important;
}

/* Colorful navigation underlines for your specific navigation items */
a[href*="Brands"], a[href*="Singles"], a[href*="Albums"], a[href*="Films"], a[href*="Theater"] {
  position: relative;
  text-decoration: none;
  padding-bottom: 2px;
}

a[href*="Brands"]::after, a[href*="Singles"]::after, a[href*="Albums"]::after, a[href*="Films"]::after, a[href*="Theater"]::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  transition: width 0.3s ease;
}

/* Different colors for each navigation item */
a[href*="Brands"]::after { background-color: #ff5a5f; }
a[href*="Singles"]::after { background-color: #3498db; }
a[href*="Albums"]::after { background-color: #2ecc71; }
a[href*="Films"]::after { background-color: #f1c40f; }
a[href*="Theater"]::after { background-color: #9b59b6; }

/* Animation on hover */
a[href*="Brands"]:hover::after, a[href*="Singles"]:hover::after, a[href*="Albums"]:hover::after, a[href*="Films"]:hover::after, a[href*="Theater"]:hover::after {
  width: 100%;
}

/* === MOBILE PORTRAIT MODE RESPONSIVE VIDEO GRIDS === */

/* Video Grid Base Styles - Add these to your existing CSS */
.video-grid-4,
.video-grid-3,
.video-grid-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 0;
  padding: 0;
}

.video-grid-4 .video-block {
  flex: 1 1 calc(25% - 1.5rem); /* Four columns on desktop */
}

.video-grid-3 .video-block {
  flex: 1 1 calc(33.333% - 1.5rem); /* Three columns on desktop */
}

.video-grid-2 .video-block {
  flex: 1 1 calc(50% - 1.5rem); /* Two columns on desktop */
}

/* Video Block Styles */
.video-block {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

/* === RESPONSIVE BREAKPOINTS FOR MOBILE === */

/* Large Tablet (901px - 1024px) */
@media (max-width: 1024px) and (min-width: 901px) {
  .video-grid-4 .video-block {
    flex: 1 1 calc(33.333% - 1.5rem); /* Three columns on large tablets */
  }
  .video-grid-3 .video-block {
    flex: 1 1 calc(50% - 1rem); /* Two columns on large tablets */
  }
  .video-grid-2 .video-block {
    flex: 1 1 calc(50% - 1rem); /* Keep two columns */
  }
}

/* Tablet Portrait (768px - 900px) */
@media (max-width: 900px) and (min-width: 769px) {
  .video-grid-4 .video-block,
  .video-grid-3 .video-block {
    flex: 1 1 calc(50% - 1rem); /* Two columns on tablets */
  }
  .video-grid-2 .video-block {
    flex: 1 1 100%; /* Single column for 2-column grid on tablets */
  }
  
  /* Reduce gap on tablets */
  .video-grid-4,
  .video-grid-3,
  .video-grid-2 {
    gap: 1.5rem;
  }
}

/* Mobile Landscape (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
  .video-grid-4 .video-block,
  .video-grid-3 .video-block {
    flex: 1 1 calc(50% - 1rem); /* Two columns on large phones */
  }
  .video-grid-2 .video-block {
    flex: 1 1 100%; /* Single column for 2-column grid */
  }
  
  /* Reduce gap on mobile */
  .video-grid-4,
  .video-grid-3,
  .video-grid-2 {
    gap: 1rem;
  }
  
  /* Reduce video block margin */
  .video-block {
    margin-bottom: 1.5rem;
  }
}

/* Mobile Portrait (up to 480px) - This is the key addition for iPhone portrait mode */
@media (max-width: 480px) {
  .video-grid-4 .video-block,
  .video-grid-3 .video-block,
  .video-grid-2 .video-block {
    flex: 1 1 100% !important; /* Force single column on small phones */
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Minimal gap on small phones */
  .video-grid-4,
  .video-grid-3,
  .video-grid-2 {
    gap: 1rem;
    flex-direction: column; /* Force column layout */
  }
  
  /* Reduce video block margin */
  .video-block {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
  }
  
  /* Adjust padding for small screens */
  body {
    padding: 1rem;
  }
  
  /* Responsive typography for mobile portrait */
  h1 {
    font-size: 32px;
    margin-bottom: 20px;
  }
  
  h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
  }
  
  small {
    font-size: 12px;
    line-height: 1.4;
  }
}

/* Extra Small Mobile Portrait (up to 375px) - iPhone SE and smaller */
@media (max-width: 375px) {
  body {
    padding: 0.75rem;
  }
  
  .video-grid-4,
  .video-grid-3,
  .video-grid-2 {
    gap: 0.75rem;
  }
  
  .video-block {
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 22px;
  }
  
  h3 {
    font-size: 18px;
  }
}

/* Very Small Mobile Portrait (up to 320px) - Older iPhones */
@media (max-width: 320px) {
  body {
    padding: 0.5rem;
  }
  
  .video-grid-4,
  .video-grid-3,
  .video-grid-2 {
    gap: 0.5rem;
  }
  
  .video-block {
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  h3 {
    font-size: 16px;
  }
}

/* === ORIENTATION-SPECIFIC RULES === */

/* Portrait orientation on mobile devices */
@media (max-width: 768px) and (orientation: portrait) {
  .video-grid-4 .video-block,
  .video-grid-3 .video-block,
  .video-grid-2 .video-block {
    flex: 1 1 100% !important; /* Single column in portrait */
    max-width: 100% !important;
  }
  
  .video-grid-4,
  .video-grid-3,
  .video-grid-2 {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Landscape orientation on mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
  .video-grid-4 .video-block,
  .video-grid-3 .video-block {
    flex: 1 1 calc(50% - 1rem); /* Two columns in landscape */
  }
  .video-grid-2 .video-block {
    flex: 1 1 calc(50% - 1rem); /* Two columns in landscape */
  }
}

/* === TOUCH-FRIENDLY IMPROVEMENTS FOR MOBILE === */
@media (max-width: 768px) {
  /* Larger touch targets */
  .play-button {
    width: 80px;
    height: 80px;
  }
  
  .play-button::before {
    border-width: 16px 0 16px 24px;
  }
  
  /* Better hover states for touch devices */
  .video-thumbnail:active img {
    transform: scale(1.02);
  }
  
  /* Improve text readability on mobile */
  .title-bar {
    font-size: 12px;
    padding: 4px 8px;
    max-width: 85%;
  }
  
  /* Ensure video containers are properly sized */
  .video-container {
    width: 100%;
    max-width: 100%;
  }
  
  /* Safari/iOS specific fixes for mobile - Applied directly without @supports */
  .video-block {
    /* Force iOS Safari to properly render the element */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    
    /* Prevent iOS Safari rendering glitches */
    -webkit-perspective: 1000px;
    perspective: 1000px;
    
    /* Additional Safari/iOS fixes */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
    /* Ensure proper isolation */
    isolation: isolate;
  }
  
  .video-container {
    /* Ensure proper rendering on iOS */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    
    /* Force iOS to use hardware acceleration */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    
    /* Additional Safari/iOS fixes */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
    /* Prevent overflow issues that can cause black boxes */
    overflow: hidden;
    
    /* Ensure proper background handling */
    background-clip: padding-box;
  }
}

/* === HIGH DPI DISPLAY ADJUSTMENTS === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .video-thumbnail img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}
