/* Global box-sizing fix */
* { box-sizing: border-box; }

/* Reset */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  color: white;
  background-color: black;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Top Navigation (single clean definition) */
.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  /* default state — for your current testing you set fully transparent;
     normally you can use rgba(0,0,0,0.7) for the 'Home' state. */
  background-color: rgba(0,0,0,0.7);
  transition: background-color 1s cubic-bezier(.22,.9,.36,1), box-shadow 0.5s ease;
  z-index: 100;
}

/* Hide hamburger button by default (desktop) */
.hamburger {
  display: none;
}


/* Opaque state when inside Works */
.top-nav.opaque {
  background-color: rgba(0,0,0,1); /* fully opaque when in Works */
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.top-nav .logo { display: inline-block; height: 50px; }
.top-nav .logo img { display: block; height: 50px; }
.top-nav .nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 40px;
  font-weight: 500;
  font-size: 1.2em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.top-nav .nav-links a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: white;
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}

.top-nav .nav-links a:hover::after { width: 100%; }

#home:target ~ .top-nav .nav-links a[href="#home"],
#works:target ~ .top-nav .nav-links a[href="#works"],
#contact:target ~ .top-nav .nav-links a[href="#contact"] { font-weight: 600; }

#home:target ~ .top-nav .nav-links a[href="#home"]::after,
#works:target ~ .top-nav .nav-links a[href="#works"]::after,
#contact:target ~ .top-nav .nav-links a[href="#contact"]::after { width: 100%; }

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('/images/blurred-bg.png') no-repeat center center;
  background-size: cover;
  opacity: 0;
  z-index: 0;
  animation: fadeInHeroBG 5s ease forwards;
  animation-delay: 0.2s;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  width: 90%;
}

.hero-text h1 { font-size: 3.5em; font-weight: 500; margin: 0; letter-spacing: 1px; }
.hero-text p { font-size: 1.6em; margin: 0 0 10px 0; letter-spacing: 1px; }
.hero-text hr {
  width: 100%;
  max-width: 1500px;
  border: 1px solid white;
  margin: 10px auto;
  transform: scaleX(0);
  transform-origin: left;
  animation: growLine 1s ease forwards;
  animation-delay: 1.2s;
}

/* See More Arrow */
.see-more-btn {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 5rem;
  font-weight: 200;
  color: white;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0s ease; /* fade duration */
  animation: bounceArrow 2s infinite; /* bounce always running */
}

/* Force the arrow to fully hide and stop its animations */
/* Fade-out instead of snapping away */
.see-more-btn {
  transition: opacity 0s ease;
}

.see-more-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  /* no visibility here! handled in JS */
}

.see-more-btn::before {
  content: "⌄";
  display: block;
  font-size: 2rem;
  margin-bottom: 15px;
  transform: scaleX(1.5); /* stretches horizontally */
}

.see-more-btn::after {
  content: "";
  display: block;
  width: 25px;
  height: 2px;
  background: white;
  margin-top: -10px;
  border-radius: 2px;
  transform: translateX(3.3%);
}

@keyframes fadeInArrow {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 0.6; transform: translateY(0); }
}

@keyframes bounceArrow {
  0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Home Section scroll fix */
#home {
  scroll-margin-top: 80px; /* matches navbar height */
}

/* Works Section */
#works {
  scroll-margin-top: 80px; /* ensures anchor links account for fixed navbar */
}

#works .gallery {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: repeat(4, 1fr); /* 4 artworks per row */
  grid-auto-rows: auto;     
  gap: 0px 0px;                               /* no extra gaps */
  justify-content: center;
  align-items: stretch;
  --artwork-width: 300px;                 /* fallback */
}

.gallery-item {
  flex: 0 0 25%;
  max-width: 25%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0px;
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: auto;           /* maintain aspect ratio */
  object-fit: contain;    /* keep full image visible */
  border-radius: 0px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin-bottom: -4px;
}

.gallery-item:hover img {
  transform: scale(1.05); /* zoom on hover */
}

/* -----------------------------
   Modal Overlay
   ----------------------------- */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; 
  height: 100vh;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.9);
  z-index: 200;
  justify-content: center;
  align-items: center;
  /* Initial state for transition */
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
}

.modal.show {
  /* Final state for transition */
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);

}

.modal-content {
  display: flex;
  width: 60%;
  max-width: 1200px;
  height: 50%;
  background: #000;
  border-radius: 0px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.modal.show .modal-content {
  opacity: 1;
  transform: translateY(-10px);
}

/* Left Side - Image */
.modal-left {
  flex: 0 0 53%;
  display: flex;
  justify-content: left;
  align-items: center;
  padding: 12px; /* optional padding */
}

.modal-left img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0px;
  display: block;
}

/* Right Side - Text + Links */
.modal-right {
  flex: 0 0 40%;
  padding: 20px 0px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start ;
  color: white;
  overflow-y: auto; /* scroll if content overflows */
}

.modal-right h3 {
  font-size: 2em;
  margin-bottom: 10px;
}

.modal-right .p2-style {
  font-size: 1.4em;
  opacity: 0.9;
  margin: 0px 0;
  line-height: 1.5em;
}

.modal-right p {
  font-size: 1.1em;
  margin: 5px 0;
  line-height: 1.5em;
  opacity: 0.8;

}


.modal-right .credits-label {
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 5px;
  opacity: 1;
}

/* Modal Links */
.modal-links {
  margin-top: 30px;
  margin-left: 0px;
  display: flex;
  gap: 0px;
  align-items: center;
}

.modal-links a {
  display: inline-block;   /* ensures proper sizing */
  width: 50px;
  height: 50px;
  flex: 0 0 20%;          /* prevent stretching */
}

.modal-links a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Close Button */
.close {
  position: absolute;
  top: -5px;
  right: 10px;
  font-size: 3rem;
  color: white;
  opacity: 0.5;
  cursor: pointer;
  z-index: 250;
  transition: color 0.3s;
}

.close:hover { color: #ddd; }

/* Contact Section */
#contact-container {
  display: flex;
  flex-direction: column;
}

#contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: black;
  color: white;
  padding: 118px 0px 0px 0px;
}

/* Force Montserrat for everything in the contact form */
#contact,
#contact h2,
#contact form,
#contact input,
#contact textarea,
#contact button,
#contact input::placeholder,
#contact textarea::placeholder {
  font-family: 'Montserrat', sans-serif;
}

#contact h2 { font-size: 2.5em; margin-bottom: 50px; }

#contact form {
  display: flex;
  flex-direction: column;
  width: 400px;
  max-width: 90%;
}

#contact input, #contact textarea {
  margin-bottom: 15px;
  padding: 12px;
  font-size: 1em;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #111;
  color: white;
}

#contact textarea {
  min-height: 200px;  /* default height */
  max-height: 400px;  /* optional max */
  resize: vertical;   /* allow user to resize vertically only */
}


#contact button {
  padding: 12px;
  font-size: 1em;
  font-weight: 600;
  background-color: white;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#contact button:hover { background-color: #ddd; }

.socials-footer {
  margin-top: -80px;
  background-color: #000;
  color: white;
  text-align: center;
  padding: 10px 0px;
}

.socials {
  display: flex;            /* line up icons horizontally */
  justify-content: center;  /* center the group */
  gap: 25px;                /* space between links */
  flex-wrap: wrap;          /* wrap on smaller screens */
}

.socials a {
  display: flex;
  align-items: center;
  gap: 8px;                 /* space between icon and text */
  color: white;
  filter: brightness(80%);
  text-decoration: none;
  font-weight: 500;
}

.socials img {
  width: 20px;
  height: 20px;
}

.socials a.grammy img {
  width: auto;      /* natural width */
  height: 35px;     /* adjusts height for better visual balance */
}


.socials-footer a:hover {
  filter: brightness(100%);
}


/* Animations */
.top-nav .logo img, .hero-text h1, .hero-text p {
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

/* Staggered fade-in for DESKTOP nav links on page load */
@media (min-width: 481px) {
  .top-nav .nav-links a {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
  }
  .top-nav .nav-links a:nth-child(1) { animation-delay: 0.3s; }
  .top-nav .nav-links a:nth-child(2) { animation-delay: 0.5s; }
  .top-nav .nav-links a:nth-child(3) { animation-delay: 0.7s; }
}

.top-nav .logo img { animation-delay: 0.1s; }
.hero-text h1 { animation-delay: 0.8s; }
.hero-text p  { animation-delay: 1.2s; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes growLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadeInHeroBG { from { opacity: 0; } to { opacity: 1; } }

/* -----------------------------
   Works Section - auto-fit artworks
   ----------------------------- */
#works .gallery {
  --artwork-width: 300px; /* fallback */
}

.gallery-item img {
  width: var(--artwork-width);
  height: auto;           /* maintain aspect ratio */
  object-fit: contain;    /* optional, keeps full image visible */
}



#contact-container {
  position: relative; /* allow overlay to cover this section */
}

/* Contact Form Overlay */
#blur-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 1.5em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;          /* hidden by default */
  pointer-events: none; /* prevent clicks */
  transition: opacity 2s ease; /* smooth fade */
  z-index: 50;
}

/* Fade in */
#blur-overlay.fade-in {
  opacity: 1;
  transition: opacity 1.5s ease; /* 👈 independent fade-in duration */
}

/* Fade out */
#blur-overlay.fade-out {
  opacity: 0;
  transition: opacity 2s ease; /* 👈 independent fade-out duration */
}



/* Cloudflare Turnstile Widget */


.cf-turnstile {
  width: 100% !important;
  max-width: 100%;
}








/* -----------------------------
   Mobile / Tablet Design
----------------------------- */


/* iPad 13" / Large tablets */ 
@media (max-width: 1032px) {
  .hero::before {
    background: url('/images/blurred-bg-mobile.png') no-repeat center center;
    background-size: 100% auto;
    background-position: center 450%;
    height: 100vh;
    transform: scale(1.24);
    transform-origin: center center;
    margin-left: 0px;
  }

    /* Works Section */
  #works {
    scroll-margin-top: 80px;
    margin-top: -31px;
  }

  #works .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-bottom: 0;
  }

  .gallery-item {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }

  .gallery-item img {
    width: calc(100% - 0px);
    margin-bottom: -5px;
  }

  /* Modal Overlay */
  .modal-content {
    flex-direction: column;
    width: 55%;
    height: auto;
    justify-content: center;
    position: relative;
    /* Make container invisible and allow overflow */
    background: none;
    overflow: visible;
    border-radius: 0;
  }

  .modal-left, .modal-right {
    flex: 1 1 100%;
    padding: 10px;
    margin-top: 0px;
    background: #000;
  }

  .modal-left {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .modal-right {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .modal-left img {
    max-width: 100%;
    max-height: auto;
    object-fit: contain;
    border-radius: 0px;
    display: block;
  }

  .modal-right h3 {
    font-size: 240%;
    margin-top: -10px;
    margin-left: 10px;
    padding: 5px;
  }

  .modal-right .p2-style {
    font-size: 170%;
    padding: 5px;
    margin-top: -15px;
    margin-left: 10px;
  }

  .modal-right p {
    font-size: 170%;
    margin: -5px 15px;
    line-height: 1.5em;
    opacity: 0.8;
  }

  .modal-right .credits-label {
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
    opacity: 1;
  }

  .modal-links {
    margin-top: 20px;
    margin-left: 0px;
    display: flex;
    gap: 0px;
    align-items: center;
    padding: 15px;
  }

  .modal-links a {
    display: inline-block;
    width: auto;
    height: 50px;
    margin-right: 20px;
    margin-left: 10px;
    flex: 0 0 10%;
  }

  .modal-links a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  /* Close button adjustment for mobile */
  .close {
    top: -40px; /* Position above the modal content */
    right: -40px;
    font-size: 3rem;
    z-index: 250; /* Ensure it's clickable */
  }

  /* Contact Form */
  #contact {
    min-height: 92vh;
    padding: 0px 0 170px;
    justify-content: center;
    margin-top: 0px;
    margin-bottom: -50px;
  }

  #contact h2 {
    font-size: 2.3em;
    margin-top: 0px;
  }

  #contact form {
    width: 50%;
  }

  #contact input, #contact textarea, #contact button {
    font-size: 1em;
    height: 55px;
  }

  #contact textarea {
    min-height: 250px;  /* default height */
  }


}

/* iPad 11" / tablets */ 
@media (max-width: 834px) {
  .hero::before {
    background: url('/images/blurred-bg-mobile.png') no-repeat center center;
    background-size: 100% auto;
    background-position: center -200%;
    height: 100vh;
    transform: scale(1.32);
    transform-origin: center center;
    margin-left: 0px;
  }

  .hero-text hr {
    width: 105%;
    margin-left: -19px;
  }

  #works .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-bottom: 0;
  }

  .gallery-item {
    flex: 0 0 50%;
    max-width: 50%;
  }


}


/*(iPhone 16 Plus/ProMax*/
@media (max-width: 480px) {
  .hero::before {
    background: url('/images/blurred-bg-mobile.png') no-repeat center center;
    background-size: 100% auto;
    background-position: center -100%;
    height: 70vh;
    transform: scale(1.61);
    transform-origin: center center;
    margin-left: 20px;
  }

  .hero-text h1 {
    font-size: 2.2em;
    letter-spacing: -0.05em;
  }
  .hero-text hr {
    width: 115%;
    margin-left: -25px;
  }
  .hero-text p {
    font-size: 1.3em;
    letter-spacing: 0em;
  }
  .see-more-btn {
    font-size: 3rem;
    bottom: 110px;
  }


  /* Hamburger button visible only on mobile */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50px;
    height: 22px;
    background: none;
    opacity: 0.5;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
  }


  /* Top Nav */
  .top-nav {
    justify-content: center;
    padding: 10px 0;
  }

  .top-nav .logo img {
    height: 45px;
  }

  .top-nav .nav-links {
    display: flex; /* keep flex for layout */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 0px 0px;
    gap: 10px;
    z-index: 150;
    
    /* Properties for fade effect */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  /* Nav links shown when hamburger is active */
  .top-nav .nav-links.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .top-nav .nav-links a {
    margin: -5px;
    text-align: center;
    font-size: 1.2em;
    padding: 0 0 25px;
    
    /* For staggered fade-in on mobile */
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out; /* For fade out */
  }

  /* Staggered fade-in for links when menu is opened */
  .top-nav .nav-links.show a {
    opacity: 1;
    transform: translateY(0);
    transition-property: opacity, transform;
    transition-duration: 0.3s;
    transition-timing-function: ease-in;
  }

  .top-nav .nav-links.show a:nth-child(1) {
    transition-delay: 0.15s;
  }
  .top-nav .nav-links.show a:nth-child(2) {
    transition-delay: 0.25s;
  }
  .top-nav .nav-links.show a:nth-child(3) {
    transition-delay: 0.35s;
  }


  /* Works Section */
  #works {
    scroll-margin-top: 70px;
    margin-top: -82px;
  }

  #works .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-bottom: 0;
  }

  .gallery-item img {
    width: calc(100% - 0px);
    margin-bottom: -5px;
  }

  /* Modal Overlay */
  .modal-content {
    width: 73%;
    margin-top: -65px;
  }

  .modal-left, .modal-right {
    flex: 1 1 100%;
    padding: 10px;
    margin-top: 0px;
  }

  .modal-left img {
    max-width: 100%;
    max-height: auto;
    object-fit: contain;
    border-radius: 0px;
    display: block;
  }

  .modal-right h3 {
    font-size: 1.3em;
    margin-top: -10px;
    margin-left: 0px;
    padding: 5px;
  }

  .modal-right .p2-style {
    font-size: 1.1em;
    padding: 5px;
    margin-top: -15px;
    margin-left: 0px;
  }

  .modal-right p {
    font-size: 1.05em;
    margin: -5px 5px;
    line-height: 1.5em;
    opacity: 0.8;
  }

  .modal-right .credits-label {
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
    opacity: 1;
  }

  .modal-links {
    margin-top: 20px;
    margin-left: 0px;
    display: flex;
    gap: 0px;
    align-items: center;
    padding: 5px;
  }

  .modal-links a {
    display: inline-block;
    width: auto;
    height: 40px;
    margin-right: 10px;
    margin-left: 0px;
    flex: 0 0 20%;
  }

  .modal-links a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  /* Contact Form */
  #contact {
    min-height: 82vh;
    padding: 0px 0 100px;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: -70px;
  }

  #contact h2 {
    font-size: 2.3em;
    margin-top: 0px;
  }

  #contact form {
    margin-top: -10px;
    width: 80%;
  }

  #contact input, #contact textarea, #contact button {
    font-size: 1em;
    height: 50px;
  }

  #contact textarea {
    min-height: 200px;  /* default height */
  }



  /* Socials Footer */
  .socials-footer {
    margin-top: 0px;
    margin-bottom: 15px;
  }

  .socials {
    margin-top: 0px;
    justify-content: center;
    gap: 25px;
  }

  .socials a {
    gap: 0;
    font-size: 0;
  }

  .socials a img {
    width: 25px;
    height: 25px;
  }

  /* Cut off right part of Grammy image */
  .socials a.grammy {
    display: inline-block;
    width: 25px;           /* only show the icon width */
    height: 31px;          /* match original height */
    overflow: hidden;      /* hide everything outside this box */
  }

  .socials a.grammy img {
    width: auto;           /* keep original aspect ratio */
    height: 100%;          /* fill container height */
    object-fit: initial;      /* no scaling */
    object-position: left center; /* anchor left side of image */
  }

}







/* Small phones (iPhone 13) */
@media (max-width: 420px) {

  /* Hero */
  .hero::before {
    background: url('/images/blurred-bg-mobile.png') no-repeat center center;
    background-size: 100% auto;
    background-position: center 15%;
    height: 90vh;
    transform: scale(1.58);
    transform-origin: center center;
    margin-left: 20px;
  }

  .hero-text h1 {
    font-size: 2em;
    letter-spacing: -0.05em;
  }
  .hero-text hr {
    width: 115%;
    margin-left: -25px;
  }
  .hero-text p {
    font-size: 1.2em;
    letter-spacing: 0em;
  }
  .see-more-btn {
    font-size: 3rem;
    bottom: 110px;
  }

  /* Top Nav */
  .top-nav {
    justify-content: center;
    padding: 10px 0;
  }

  .top-nav .logo img {
    height: 45px;
  }

  /* Hamburger button is already defined and cascades down */

  /* Nav links shown when hamburger is active */
  .top-nav .nav-links {
    padding: 10px 0;
  }

  .top-nav .nav-links a {
    padding: 0 0 20px;
  }

  /* Works Section */
  #works {
    scroll-margin-top: 70px;
    margin-top: -82px;
  }

  #works .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-bottom: 0;
  }

  .gallery-item img {
    width: calc(100% - 0px);
    margin-bottom: -5px;
  }

  /* Modal Overlay */
  .modal-content {
    width: 73%;
    margin-top: -65px;
  }

  .modal-left, .modal-right {
    flex: 1 1 100%;
    padding: 10px;
    margin-top: 0px;
  }

  .modal-right h3 {
    font-size: 1.3em;
    margin-top: -10px;
    padding: 5px;
  }

  .modal-right .p2-style {
    font-size: 1.1em;
    padding: 5px;
    margin-top: -15px;
  }

  .modal-right p {
    font-size: 1.05em;
    margin: -5px 5px;
    line-height: 1.5em;
    opacity: 0.8;
  }

  .modal-right .credits-label {
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
    opacity: 1;
  }

  .modal-links {
    margin-top: 20px;
    margin-left: 0px;
    display: flex;
    gap: 0px;
    align-items: center;
    padding: 5px;
  }

  .modal-links a {
    display: inline-block;
    width: auto;
    height: 40px;
    margin-right: 10px;
    flex: 0 0 20%;
  }

  .modal-links a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  /* Contact Form */
  #contact {
    min-height: 80vh;
    padding: 0px 0 0px;
    justify-content: center;
    margin-top: 0;
    margin-bottom: -30px;
  }

  #contact h2 {
    font-size: 2.3em;
    margin-top: 0px;
  }

  #contact form {
    margin-top: -35px;
    width: 80%;
  }

  #contact input, #contact textarea, #contact button {
    font-size: 1em;
    height: 47px;
  }

  /* Socials Footer */
  .socials-footer {
    margin-top: 10px;
    margin-bottom: 5px;
  }

  .socials {
    margin-top: 0px;
    justify-content: center;
    gap: 25px;
  }

  .socials a {
    gap: 0;
    font-size: 0;
  }

  .socials a img {
    width: 25px;
    height: 25px;
  }

  /* Cut off right part of Grammy image */
  .socials a.grammy {
    display: inline-block;
    width: 25px;           /* only show the icon width */
    height: 31px;          /* match original height */
    overflow: hidden;      /* hide everything outside this box */
  }

  .socials a.grammy img {
    width: auto;           /* keep original aspect ratio */
    height: 100%;          /* fill container height */
    object-fit: initial;      /* no scaling */
    object-position: left center; /* anchor left side of image */
  }

}


/* Instagram InApp browser) */

@media (max-height: 662px) {


  /* Hero */
  .hero::before {
    background: url('/images/blurred-bg-mobile.png') no-repeat center center;
    background-size: 100% auto;
    background-position: center -330%;
    height: 80vh;
    transform: scale(1.77);
    transform-origin: center center;
    margin-left: 20px;
  }

  .hero-text h1 {
    font-size: 1.9em;
    letter-spacing: -0.04em;
  }
  .hero-text hr {
    width: 115%;
    margin-left: -25px;
  }
  .hero-text p {
    font-size: 1.1em;
    letter-spacing: 0em;
  }


    /* Works Section */
  #works {
    scroll-margin-top: 70px;
    margin-top: 0px;
  }

  /* Modal Overlay */
  .modal-content {
    width: 73%;
    margin-top: 50px;
  }


  /* Contact Form */
  #contact {
    min-height: 73vh;
    padding: 0px 0 20px;
    margin-top: 0px;
    margin-bottom: 10px;
  }


  #contact h2 {
    font-size: 2.1em;
    margin-top: 60px;
  }

  #contact form {
    margin-top: -30px;
    width: 80%;
  }

  #contact input, #contact textarea, #contact button {
    font-size: 1em;
    height: 45px;
  }

  #contact textarea {
  min-height: 180px;  /* default height */
  max-height: 400px;  /* optional max */
  resize: vertical;   /* allow user to resize vertically only */
}

  /* Socials Footer */
  .socials-footer {
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .socials {
    margin-top: 0px;
    justify-content: center;
    gap: 25px;
  }

  .socials a {
    gap: 0;
    font-size: 0;
  }

  .socials a img {
    width: 23px;
    height: 23px;
  }

  /* Cut off right part of Grammy image */
  .socials a.grammy {
    display: inline-block;
    width: 25px;           /* only show the icon width */
    height: 29px;          /* match original height */
    overflow: hidden;      /* hide everything outside this box */
  }

  .socials a.grammy img {
    width: auto;           /* keep original aspect ratio */
    height: 100%;          /* fill container height */
    object-fit: initial;      /* no scaling */
    object-position: left center; /* anchor left side of image */
  }

}




/* Smaller phones (iPhone 12mini) */
@media (max-width: 385px) {

  /* Hero */
  .hero::before {
    background: url('/images/blurred-bg-mobile.png') no-repeat center center;
    background-size: 100% auto;
    background-position: center 15%;
    height: 100vh;
    transform: scale(1.59);
    transform-origin: center center;
    margin-left: 20px;
  }

  .hero-text h1 {
    font-size: 1.9em;
    letter-spacing: -0.06em;
  }
  .hero-text hr {
    width: 115%;
    margin-left: -25px;
  }
  .hero-text p {
    font-size: 1.1em;
    letter-spacing: 0em;
  }


  /* Modal Overlay */
  .modal-content {
    width: 73%;
    margin-top: -40px;
  }


  /* Contact Form */
  #contact {
    min-height: 73vh;
    padding: 0px 0 0;
    margin-top: 0;
    margin-bottom: 0px;
  }

  #contact h2 {
    font-size: 2.1em;
    margin-top: 60px;
  }

  #contact form {
    margin-top: -30px;
    width: 80%;
  }

  #contact input, #contact textarea, #contact button {
    font-size: 1em;
    height: 45px;
  }

  #contact textarea {
  min-height: 180px;  /* default height */
  max-height: 400px;  /* optional max */
  resize: vertical;   /* allow user to resize vertically only */
}

  /* Socials Footer */
  .socials-footer {
    margin-top: 5px;
    margin-bottom: 5px;
  }

  .socials {
    margin-top: 0px;
    justify-content: center;
    gap: 25px;
  }

  .socials a {
    gap: 0;
    font-size: 0;
  }

  .socials a img {
    width: 23px;
    height: 23px;
  }

  /* Cut off right part of Grammy image */
  .socials a.grammy {
    display: inline-block;
    width: 25px;           /* only show the icon width */
    height: 29px;          /* match original height */
    overflow: hidden;      /* hide everything outside this box */
  }

  .socials a.grammy img {
    width: auto;           /* keep original aspect ratio */
    height: 100%;          /* fill container height */
    object-fit: initial;      /* no scaling */
    object-position: left center; /* anchor left side of image */
  }

}
