* { margin:0; padding:0; box-sizing:border-box; }

body.mobile-env .buttonblock {
  grid-template-columns: repeat(4, auto);
  gap: 5px;
  justify-content: center;
}

body.mobile-env .buttonblock .btn {
  width: 65px;
  height: 65px;
  font-size: 15px;
  line-height: 1.1;
}

body.mobile-env .band {
  padding: 28px 20px;
}

body.mobile-env .page {
  align-items: flex-end;
  padding-bottom: 10vh;
}

body.mobile-env .band {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  text-align: center;
}

body.mobile-env .textblock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 370px;
  margin: 0 auto 14px auto;
}

body.mobile-env .textblock h1 {
  width: 100%;
  font-size: 34px;
  font-weight: 200;
  letter-spacing: .44em;
  margin-bottom: 6px;
  line-height: 1.1;
  text-align: left;
  white-space: nowrap;
}

body.mobile-env .title-line {
  width: 100%;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .040em;
  margin-bottom: 5px;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

body.mobile-env .tagline {
  width: 100%;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .039em;
  margin-bottom: 0;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

body.mobile-env .buttonblock {
  grid-template-columns: repeat(4, 50px);
  gap: 25px;
  justify-content: center;
  width: 100%;
  max-width: 350px;
  margin: 0 0 5px 0;
}

body.mobile-env .buttonblock .btn {
  width: 50px;
  height: 50px;
  font-size: 13px;
  line-height: 1.05;
}

@media (max-width: 380px) {
  body.mobile-env .band {
    padding: 12px 8px;
  }

  body.mobile-env .textblock {
    max-width: 350px;
    margin: 0 auto 12px auto;
  }

  body.mobile-env .textblock h1 {
    font-size: 28px;
    letter-spacing: .42em;
    margin-bottom: 5px;
  }

  body.mobile-env .title-line {
    font-size: 11px;
    letter-spacing: .035em;
    margin-bottom: 4px;
  }

  body.mobile-env .tagline {
    font-size: 9px;
    letter-spacing: .04em;
  }

  body.mobile-env .buttonblock {
    grid-template-columns: repeat(4, 46px);
    gap: 16px;
    max-width: 294px;
    margin: 0 0 4px 0;
  }

  body.mobile-env .buttonblock .btn {
    width: 46px;
    height: 46px;
    font-size: 12px;
    line-height: 1.05;
  }
}

body {
  font-family:'Poppins',sans-serif;
  background:black;
  color:white;
  overflow-x:hidden;
}

.pattern-layer {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  pointer-events:none;
  z-index:0;

  background-image:
    linear-gradient(rgba(200,200,200,0.1) 50%, transparent 20%),
    linear-gradient(90deg, rgba(200,200,200,0.1) 50%, transparent 20%);

  background-size: 4px 4px;
}

video#bgvideo {
  position:fixed;
  top:0; left:0;
  width:100vw; height:100vh;
  object-fit:cover;
  z-index:-1;
  filter:blur(0px) saturate(100%);
  transition:filter 1000ms ease;
  will-change:filter;
}

.page {
  height:100vh;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  position:relative;
  z-index:1;
  padding-bottom:6vh;
}

.band {
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:20px;
  background:rgba(0,0,0,0.85);
  box-shadow:0 0 6px rgba(0,0,0,0.6);
}

.textblock {
  display: inline-block;
  width: fit-content;
  max-width: none;
}

.textblock h1 {
  font-size:37px;
  font-weight:200;
  letter-spacing:.445em;
  text-transform:uppercase;
}

.textblock p {
  font-size:14px;
  font-weight:300;
  letter-spacing:.047em;
  line-height:1.4;
}

.title-line {
  font-size: 18px;
  margin-bottom: 3px;
}

.tagline {
  font-family: 'Poppins', monospace;
  font-size: 11px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.buttonblock {
  display:grid;
  grid-template-columns:repeat(4,45px);
  grid-template-rows:1fr;
  gap:15px;
  align-items:center;
}

.buttonblock .btn {
  width:45px;
  height:45px;
  background:rgba(255,255,255,0.1);
  border:1px solid rgba(255,255,255,0.25);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.05;
  font-size:11px;
  letter-spacing:0.5px;
  cursor:pointer;
  transition:0.2s;
}

.buttonblock .btn:hover {
  background:rgba(255,255,255,0.25);
  transform:scale(1.05);
}

/* MODAL */

#modal-overlay {
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  background:rgba(0,0,0,0.75);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:10;
}

#modal-window {
  background:#111;
  position:relative;
  width:80vw;
  aspect-ratio:16 / 9;
  max-width:calc((100vh - 140px) * 16 / 9);
  max-height:calc(100vh - 140px);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
  border-radius:8px;
}

#modal-content {
  width:100%;
  height:100%;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:visible;
}

/* MEDIA FIX */

#modal-content img,
#modal-content video,
#modal-content iframe {
  width:100%;
  height:100%;
  object-fit:contain; /* changed from cover */
  border-radius:8px;
  display:block;
}

/* CLOSE */

#modal-close {
  position:absolute;
  top:10px;
  right:10px;
  font-size:24px;
  background:none;
  border:none;
  color:white;
  cursor:pointer;
  z-index:20;
}

/* ARROWS */

.gallery-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:48px;
  color:white;
  background:rgba(0,0,0,0.3);
  border:none;
  cursor:pointer;
  padding:10px;
  z-index:15;
  display:none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#modal-window:hover .gallery-arrow {
  opacity: 1;
}

#arrow-prev { left:10px; }
#arrow-next { right:10px; }

/* LOADER */

#loaderWrapper {
  position:absolute;
  bottom:10%;
  width:80%;
  max-width:600px;
  text-align:center;
  display:none;
  z-index:12;
}

#loaderBar {
  width:100%;
  height:6px;
  background:rgba(255,255,255,0.2);
  margin-top:8px;
  border-radius:3px;
  overflow:hidden;
}

#loaderBarInner {
  height:100%;
  width:0%;
  background:white;
}

/* INDICATORS */

#gallery-indicators {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 14px);
  display: flex;
  gap: 20px;
  z-index: 30;
  pointer-events: none;
}

.gallery-indicator {
  width:15px;
  height:15px;
  border:1px solid rgba(255,255,255,0.4);
  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(4px);
}

.gallery-indicator.active {
  background:rgba(255,155,100,0.9);
}

/* MOBILE */

@media(max-width:800px){
  .band { flex-direction:column; }

  #modal-window {
    width:92%;
    max-width:92%;
  }

  #gallery-indicators {
    gap:12px;
    transform:translate(-50%, 10px);
  }

  .gallery-indicator {
    width:14px;
    height:14px;
  }

  .gallery-arrow {
    font-size:36px;
  }
}

/* 🔥 LANDSCAPE MOBILE MODE */

@media (max-width: 900px) and (orientation: landscape) {
  #modal-window {
    width: min(96vw, calc(90vh * 16 / 9));
    height: min(90vh, calc(96vw * 9 / 16));
    aspect-ratio: 16 / 9;
    max-width: none;
    max-height: none;
  }

  #modal-content {
    width: 100%;
    height: 100%;
  }

  #gallery-indicators {
    transform: translate(-50%, 6px);
    gap: 10px;
  }

  .gallery-arrow {
    font-size: 32px;
  }

  #modal-close {
    top: 6px;
    right: 8px;
    font-size: 20px;
  }
}

/* TEMP BUTTON COLOR GROUPING */

.buttonblock .btn:nth-child(1) {
  border-color: rgba(190, 85, 35, 1);
}

.buttonblock .btn:nth-child(2),
.buttonblock .btn:nth-child(3),
.buttonblock .btn:nth-child(4),
.buttonblock .btn:nth-child(5){
  border-color: rgba(255, 255, 255, 0.8);
}