html * {
  font-family: "Inter", sans-serif;
}
/*body {
  background-image: url('../img/bg_main.jpg');
  background-repeat: no-repeat; 
  background-size: cover;
  background-attachment: fixed;
}*/

/* Modal fade animations */
@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

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

/* Modal content styles */
.modal.fade .modal-dialog {
  animation: fadeIn 0.3s ease-in-out;
  transform: none !important;
  margin: 0;
  max-width: 100%;
  width: 100%;
  height: 100%;
}

.modal.fade.show .modal-dialog {
  animation: fadeIn 0.3s ease-in-out;
}

.modal.fade.hide .modal-dialog {
  animation: fadeOut 0.3s ease-in-out;
}

.modal-content {
  border: none;
  border-radius: 0;
  background: transparent;
  height: 100vh;
  width: 100vw;
  margin: 0;
  max-width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content .img-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content .img-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: none !important;
  display: block;
  margin: 0 auto;
}

.modal-content .btn-outline-light {
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.1);
  --bs-btn-active-bg: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.modal-content .btn i {
  font-size: 0.8em;
}

@media (max-width: 768px) {
  .modal-content .img-container {
      padding: 0;
      height: 100%;
  }

  .modal-content .d-flex {
      flex-direction: column;
      gap: 0.5rem !important;
  }

  .modal-content .btn {
      width: 100%;
  }

  .modal-body .container {
      padding: 15px;
  }

  .modal-body .row {
      flex-direction: column;
      height: 100%;
  }

  .modal-body .col-md-6 {
      width: 100%;
      max-width: 100%;
      flex: 0 0 100%;
  }

  .modal-body iframe {
      margin-bottom: 15px;
  }
}

@media (max-width: 991.98px) {
  /* Tablet and below */
  .modal-content .img-container {
      height: 50vh;
      min-height: 300px;
      width: 100%;
      padding: 15px;
  }

  .modal-body .d-flex {
      min-height: auto !important;
      padding: 15px 0;
  }

  .modal-body .container {
      padding: 0 15px;
      height: 100%;
      display: flex;
      flex-direction: column;
  }

  .modal-body .row {
      flex: 1;
      margin: 0;
  }

  .modal-body .col-md-6 {
      padding: 0;
      flex: 0 0 100%;
      max-width: 100%;
  }

  .modal-body iframe {
      margin: 0 0 15px 0;
      min-height: 120px;
  }

  /* Mobile specific */
  @media (max-width: 575.98px) {
      .modal-content .img-container {
          height: 40vh;
          min-height: 250px;
      }

      .modal-body .d-flex {
          padding: 10px 0;
      }
  }

  /* Tablet specific */
  @media (min-width: 576px) and (max-width: 991.98px) {
      .modal-content .img-container {
          height: 60vh;
      }
  }
}

.btn-close {
  background: white
      url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e")
      center/1em auto no-repeat !important;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
  z-index: 1;
  border-radius: 50%;
  padding: 0.5rem;
}

.btn-close:hover {
  opacity: 0.8;
}

/* Grid Layout */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 350px);
  gap: 0;
  width: 700px; /* 400px * 2 */
  margin: 0 auto;
  padding: 0;
  justify-content: center;
}

.grid-item {
  /*width: 350px;
  height: 350px;*/
  margin: 0;
  padding: 0;
  /*line-height: 0;*/
  position: relative;
  overflow: hidden;
}

.grid-item {
  cursor: pointer;
}

/* Reset cursor for modal content */
.modal-content {
  cursor: auto;
}

/* Add pointer cursor to clickable elements in modal */
.modal-content a,
.modal-content button,
.modal-content [data-bs-toggle],
.modal-content [role="button"] {
  cursor: pointer;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Hover effect for grid images */
.grid-item img:hover {
  transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 820px) {
  .grid-container {
      width: 100%;
      grid-template-columns: repeat(2, 50vw);
  }

  .grid-item {
      width: 50vw;
      height: 50vw;
  }

  @media (max-width: 480px) {
      .grid-container {
          grid-template-columns: 1fr 1fr;
          gap: 1px;
      }

      .grid-item {
          width: 50vw;
          height: 50vw;
      }
  }
}

/* Typography */
/*.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
}*/
.h6,
h6 {
  font-size: 0.9rem !important;
}
p {
  color: #444;
  font-size: 0.9rem;
}

.small,
small {
  font-size: 0.75em !important;
}
.smaller,
smaller {
  font-size: 0.8em !important;
}
.credits_small {
  font-size: 0.7em !important;
}
.nav-link {
  text-transform: uppercase !important;
  font-size: 0.85em !important;
}
figcaption .credits_small {
  font-size: 0.8em !important;
}
.blockquote-footer::before {
  content: "——" !important;
  font-weight: bolder;
  color: #cc9900;
}
.tracks {
  font-size: 0.75em !important;
}

/* track bg */
.modal_bg_track_1 {
  background-image: url("../img/1_garden_grid.jpg");
  background-size: cover;
  background-position: center;
}
.modal_bg_track_2 {
  background-image: url("../img/2_ulat.jpg");
  background-size: cover;
  background-position: center;
}
.modal_bg_track_3 {
  background-image: url("../img/3_brianna.jpg");
  background-size: cover;
  background-position: center;
}
.modal_bg_track_4 {
  background-image: url("../img/4_x.jpg");
  background-size: cover;
  background-position: center;
}

/* links */
a:link {
  text-decoration: none;
  color: #cc9900;
}

a:visited {
  text-decoration: none;
  /*color: #ffffff;*/
}

a:hover {
  color: #fff;
  text-decoration: none;
  background-color: #cc9900;
}

a:active {
  text-decoration: none;
}
li span:hover {
  color: #cc9900;
  text-decoration: none;
}
.list-group-item {
  background-color: transparent !important; /* Use !important if needed to override Bootstrap's default */
}
.list-group-item span {
  color: black;
}
.no_hover:hover {
  background-color: transparent !important;
}
.card-footer a:link {
  color: #ffffff !important;
}
.buy_now_buttons a:link {
  color: #ffffff
}
.buy_now_buttons a:visited {
  color: #ffffff
}
/* Contact email icon hover */
.contact-email i {
  transition: color 0.2s ease-in-out;
}

.contact-email:hover i {
  color: #cc9900 !important;
}
.buy_grid a:link {
  color: #ffffff
}
.fa-bars {
  font-size: 1.5rem!important;
  color: #cc9900!important;
}

/* Ensure images in cards/columns do not overflow their containers */
.card .card-top img,
.card .card-img-top,
.col img {
  max-width: 100%;
  height: auto;
}

/* footer */
.card-footer {
  background-color: transparent !important;
  border-top: none !important;
}

/* Footer card button links */
.card-footer .btn-link {
  color: #ffffff !important;
  text-decoration: none;
}

.card-footer .btn-link:hover {
  color: #ffffff !important;
  opacity: 0.8;
  text-decoration: underline;
}
