html,
body {
  background-color: #000;
  font-family: "raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #fff;
  font-size: 100%;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 200;
  scroll-snap-type: y mandatory;
  margin: 0;
  padding: 0;
}

a {
  color: #fff;
}

:root {
  --gold: #f2a900;
  --transition: all 320ms cubic-bezier(0.215, 0.61, 0.355, 1.0) 0ms;
  --mobile-breakpoint: 768px;
  --small-mobile-breakpoint: 480px;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  background-color: #000;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  transition: all ease-in-out 2s;
  background-image: url("../images/hero.png");
}

#container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
}

section.page,
.video-card {
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  position: relative;
  scroll-snap-align: start;
}

.top-left {
  position: absolute;
  top: 20px;
  left: 20px;
}

.top-right {
  position: absolute;
  top: 20px;
  right: 20px;
}

.bottom-left {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.bottom-right {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

#logo {
  position: absolute;
}

#logo .logotype {
  display: inline-block;
}

#logo img {
  max-width: 180px;
}

#main {
  position: absolute;
  z-index: 100;
}

#home {
  height: 100vh;
  min-height: 100vh;
  background: none !important;
}

#home a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: .6em;
  font-size: 1.25em;
  transition: all ease-in-out .25s;
}

#home a:hover {
  color: var(--gold);
}

#shop-button,
#signup-button {
  position: absolute;
  z-index: 100;
  text-decoration: none;
}

a.button {
  font-size: 1em;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 200;
  display: block;
  overflow: hidden;
  padding: 8px;
  border: solid 1px #fff;
  color: #fff;
  transition: var(--transition);
}

a.button:hover,
.transition:hover {
  background-color: #fff !important;
  color: #000 !important;
}

.transition {
  transition: var(--transition);
}

#gradient {
  position: absolute;
  bottom: 0;
  height: 120px;
  width: 100%;
  box-sizing: border-box;
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  z-index: 0;
}

section.page {
  background: rgba(0, 0, 0, 0.88);
  min-height: 100vh;
}

.page .content {
  width: 100%;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Photos Gallery */
#photos {
}

#photos .content,
#video-gallery-page .content {
  padding: 80px;
}

#gallery,
#video-gallery {
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  padding-bottom: 11px;
  overflow-y: auto;
}

#gallery::before,
#video-gallery::before {
  content: "Scroll →";
  font-size: .82em;
  display: block;
  text-align: right;
  margin-bottom: 6px;
  transition: all .6s ease-in-out;
}

#gallery.hide-tip::before,
#video-gallery.hide-tip::before {
  opacity: 0;
}

#gallery img,
#video-gallery img {
  height: 70vh;
  width: auto;
  scroll-snap-align: center;
  margin: 0 10px;
  vertical-align: middle;
}

#gallery::-webkit-scrollbar,
#video-gallery::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

#gallery::-webkit-scrollbar-track-piece,
#video-gallery::-webkit-scrollbar-track-piece {
  background-color: #000;
}

#gallery::-webkit-scrollbar-thumb:horizontal,
#video-gallery::-webkit-scrollbar-thumb:horizontal {
  height: 5px;
  background-color: #fff;
}

/* Music Accordion */
.accordion {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 50px auto;
}

.accordion ul {
  width: 100%;
  display: table;
  table-layout: fixed;
  margin: 0;
  padding: 0;
}

.accordion ul li {
  display: table-cell;
  vertical-align: bottom;
  position: relative;
  width: 16.666%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  transition: all 500ms ease-in-out;
}

.accordion ul li div.album {
  display: block;
  overflow: hidden;
  width: 100%;
  transition: all 400ms ease-in-out;
}

.accordion ul li div .hover-frame {
  display: block;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 3;
  vertical-align: bottom;
  box-sizing: border-box;
  color: #fff;
  text-decoration: none;
  transition: all 200ms ease;
}

.accordion ul li div .hover-frame * {
  opacity: 0;
  margin: 0;
  width: 100%;
  text-overflow: ellipsis;
  position: relative;
  z-index: 5;
  white-space: nowrap;
  overflow: hidden;
  -webkit-transform: translateX(-20px);
  transform: translateX(-20px);
  -webkit-transition: all 400ms ease;
  transition: all 400ms ease;
}

.accordion ul li div .hover-frame h2 {
  text-overflow: clip;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: center;
  font-family: Helvetica, Arial, sans-serif;
}

.accordion ul li div .hover-frame .listen-button {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  border: solid 1px #fff;
  padding: 12px 8px;
  font-size: .8em;
  letter-spacing: .2em;
  font-weight: bold;
  width: 90%;
  max-width: 225px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
}

.accordion ul:hover li {
  width: 8%;
}

.accordion ul:hover li:hover {
  width: 60%;
}

.accordion ul:hover li:hover .hover-frame {
  background-color: rgba(0, 0, 0, 0.4);
}

.accordion ul:hover li:hover .hover-frame * {
  opacity: 1;
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.accordion ul li span {
  background: rgba(0, 0, 0, 0.8);
  position: absolute;
  top: 0;
  left: -250px;
  height: 100vh;
  max-width: 250px;
  box-sizing: border-box;
  padding: 0 18px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  transition: all 400ms ease-in-out;
}

.accordion ul:hover li:hover span {
  left: 0px;
}

.accordion ul:hover li:hover div {
  background-size: auto 100%;
  transition: all 400ms ease-in-out;
}

.accordion ul li:nth-child(1) {
  background-color: #000;
}

.accordion ul li:nth-child(1) div {
  background-image: url("../images/album1.jpg");
  background-size: cover;
  background-position: right top;
}

.accordion ul li:nth-child(2) div {
  background-image: url("../images/album2.jpg");
  background-size: cover;
  background-position: right top;
}

.accordion ul li:nth-child(3) div {
  background-image: url("../images/album3.jpg");
  background-size: cover;
  background-position: right top;
}

.accordion ul li:nth-child(4) div {
  background-image: url("../images/album4.jpg");
  background-size: cover;
  background-position: right top;
}

/* Videos */
#videos {
  font-family: "Raleway", sans-serif;
}

#videos .video-card {
  position: relative;
  height: 100vh;
  font-size: 1.3em;
}

#videos .video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-align: center;
  display: flex;
  justify-content: center;
}

#videos .video-details .title {
  font-weight: bold;
  font-size: .9em;
  margin-bottom: 10px;
}

#videos .video-details {
  position: absolute;
  bottom: 22px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
  text-align: center;
  left: 0;
}

#videos .button {
  max-width: 200px;
  margin: auto;
  box-sizing: border-box;
  font-size: .65em;
  letter-spacing: 2px;
  font-weight: bold;
}

#videos video {
  object-fit: cover;
  width: 100%;
}

/* Video Gallery */
#video-gallery {
}

#video-gallery .video-link {
  display: inline-block;
  width: 450px;
  height: calc(450px * (9 / 16));
  border: solid 1px #fff;
  position: relative;
  text-decoration: none;
  background-size: cover;
  transition: var(--transition);
}

#video-gallery .video-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
  width: 100%;
  height: 100%;
  transition: all 250ms ease-in-out;
}

#video-gallery .video-link:hover {
  color: var(--gold);
}

#video-gallery .video-link:hover::after {
  opacity: 0.6;
}

#video-gallery .video-link + .video-link {
  margin-left: 50px;
}

#video-gallery .song-title {
  font-size: .8em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* Popup */
.popup {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 0%;
  opacity: 0;
  transition: opacity 500ms, height 0s 500ms;
  background: rgba(0, 0, 0, 0.55);
  background-size: cover;
  font-size: 14px;
  color: #fff;
  overflow: hidden;
}

.popup.open {
  position: fixed;
  z-index: 100;
  min-height: 470px;
  opacity: 1;
  height: 100%;
  -webkit-overflow-scrolling: touch;
  transition: opacity 500ms, height 0s 0s;
  overflow: auto;
  z-index: 99999999;
}

.popup .close {
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: normal;
  font-size: 1.0em;
  line-height: 1em;
  position: absolute;
  right: 30px;
  top: 12px;
  transition: all 300ms;
  z-index: 10000;
}

.popup .close:hover {
  opacity: 0.7;
}

.popup .frame-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 25px;
  background: rgba(0, 0, 0, 0.8);
}

.popup .frame {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: block;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Newsletter Signup */
#newsletter-signup h2,
h3 {
  text-align: center;
}

#newsletter-signup form {
  max-width: 675px;
}

#newsletter-signup .form-row {
  display: flex;
}

#newsletter-signup .form-row.column {
  flex-direction: column;
}

#newsletter-signup input,
#newsletter-signup select {
  font-family: "raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  background-color: transparent;
  border: solid 1px #fff;
  outline: none;
  box-sizing: border-box;
  letter-spacing: .23em;
  font-size: .68em;
  padding: 7px;
  height: 40px;
  width: 100%;
  margin-bottom: 10px;
  color: #fff;
}

.form-row input[name="field_last_name"] {
  margin-left: 10px;
}

#newsletter-signup button {
  color: #fff;
  font-family: "raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: transparent;
  letter-spacing: 2px;
  padding: 11px 24px;
  display: block;
  margin: 20px auto;
  border: solid 1px #fff;
  font-size: .99em;
  transition: all 300ms ease-out;
  cursor: pointer;
}

#newsletter-signup button:hover {
  color: #000;
  background-color: #fff;
}

#newsletter-signup .legal {
  text-align: center;
  font-size: 10px;
}

#newsletter-signup a {
  text-decoration: none;
  display: inline-block;
  margin: 0 3px;
}

#thankyou {
  display: none;
}

/* Footer */
#social {
  margin: 15px auto;
}

#social #follow {
  margin-bottom: 15px;
}

#social a {
  font-size: 18px;
  margin-top: 5px !important;
}

#footer {
  scroll-snap-align: start;
  text-align: center;
  font-size: 10px;
  background: rgba(0, 0, 0, 1);
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
  border-top: solid 1px rgba(255, 255, 255, 0.4);
}

#footer a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin: 0 4px;
}

/* Responsive */
@media (orientation: portrait) {
  #photos .content,
  #video-gallery-page .content {
    padding: 22px;
  }

  #gallery .landscape {
    width: 100vw;
    height: auto;
  }

  #newsletter-signup .frame {
    align-items: flex-start;
  }

  #newsletter-signup .form-row {
    flex-direction: column;
  }

  #newsletter-signup .form-row.mobile-row {
    flex-direction: row !important;
  }

  .form-row input[name="field_last_name"] {
    margin-left: 0;
  }

  .accordion {
    height: 100vw;
  }

  .accordion ul li span {
    height: 100vw;
  }

  #videos .video-card {
    min-height: 50vh !important;
    height: 50vh;
  }
}

@media (max-width: 768px) {
  #photos .content,
  #video-gallery-page .content {
    padding: 22px;
  }

  #gallery .landscape {
    width: 100vw;
    height: auto;
  }

  #newsletter-signup .frame {
    align-items: flex-start;
  }

  #newsletter-signup .form-row {
    flex-direction: column;
  }

  #newsletter-signup .form-row.mobile-row {
    flex-direction: row !important;
  }

  .form-row input[name="field_last_name"] {
    margin-left: 0;
  }

  .accordion {
    height: 100vw;
  }

  .accordion ul li span {
    height: 100vw;
  }

  #videos .video-card {
    min-height: 50vh !important;
    height: 50vh;
  }

  /* بهبود منوی ناوبری در موبایل */
  #main {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
  }

  #main a {
    margin: 0 15px;
    font-size: 1em;
  }

  /* بهبود دکمه‌های بالای صفحه */
  #shop-button,
  #signup-button {
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
  }

  /* تنظیم اندازه لوگو */
  #logo img {
    max-width: 140px;
  }

  /* بهبود آکاردئون آلبوم‌ها */
  .accordion ul {
    display: block;
  }

  .accordion ul li {
    display: block;
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
  }

  .accordion ul li div.album {
    height: 100%;
  }

  .accordion ul:hover li {
    width: 100%;
  }

  .accordion ul:hover li:hover {
    width: 100%;
  }

  .accordion ul li span {
    position: relative;
    left: 0;
    height: auto;
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
  }

  .accordion ul li div .hover-frame * {
    opacity: 1;
    transform: translateX(0);
  }

  /* بهبود گالری در موبایل */
  #gallery {
    white-space: nowrap !important; /* حفظ حالت افقی */
    padding: 15px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* برای اسکرول نرم در iOS */
    scrollbar-width: thin; /* برای Firefox */
  }

  #gallery img {
    height: 50vh !important; /* ارتفاع نسبی برای موبایل */
    width: auto !important;
    max-width: none !important;
    margin: 0 10px !important;
    object-fit: contain;
    border-radius: 5px;
    display: inline-block;
    vertical-align: middle;
  }

  #gallery::before {
    display: block; /* نمایش پیام اسکرول */
    font-size: 0.7em;
    margin-bottom: 10px;
  }

  #photos .content {
    padding: 15px !important;
    height: 100vh !important; /* حفظ ارتفاع کامل */
    overflow-x: hidden;
  }

  /* اضافه کردن استایل برای اسکرول افقی بهتر */
  #gallery::-webkit-scrollbar {
    height: 6px;
  }

  #gallery::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }

  #gallery::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
  }

  /* اطمینان از اینکه تصاویر بزرگ به درستی نمایش داده می‌شوند */
  .landscape {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* اضافه کردن استایل‌های مخصوص موبایل‌های کوچک */
@media (max-width: 480px) {
  #logo img {
    max-width: 120px;
  }

  #main a {
    margin: 0 10px;
    font-size: 0.9em;
  }

  #shop-button,
  #signup-button {
    font-size: 0.9em;
    padding: 6px 10px;
  }

  .popup .frame {
    padding: 10px;
  }

  #newsletter-signup h2 {
    font-size: 1.5em;
  }

  #videos .video-card {
    min-height: 40vh !important;
    height: 40vh;
  }

  #videos .video-details .title {
    font-size: 0.8em;
  }

  #videos .button {
    font-size: 0.6em;
  }

  #footer {
    font-size: 9px;
  }

  #gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
}

/* نشانگر اسکرول افقی */
.scroll-indicator {
  text-align: center;
  padding: 5px;
  font-size: 0.8em;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

.scroll-indicator.hide {
  opacity: 0;
}

.scroll-indicator.hidden {
  display: none;
}

/* استایل برای حالت فعال گالری هنگام کشیدن */
#gallery.active {
  cursor: grabbing;
}
