.theme-fleet-grid {
  box-sizing: border-box;
}

.theme-fleet-grid__header {
  text-align: center;
  margin-bottom: 24px;
}

.theme-fleet-grid__eyebrow {
  font-weight: 700;
  color: #163029;
  margin: 0 0 24px;
  padding: 0;
  font-family: "Aptos";

  font-size: 24px;
  line-height: 120%;
}

.theme-fleet-grid__title {
  font-weight: 800;
  color: #163029;
  margin: 0 0 70px 0;
  font-family: "Exo";
  font-weight: 700;
  /* font-size: 58px; */
  font-size: clamp(32px, 5vw, 58px);
  line-height: 100%;
  letter-spacing: 0.02em;

  @media (max-width: 480px) {
    margin-bottom: 40px;
  }
}

.theme-fleet-grid__filters {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 120px;
  padding: 4px;
  background: #ececec;
  border-radius: 40px !important;

  @media (max-width: 480px) {
    margin-bottom: 60px;
  }
}

.theme-fleet-grid__filters {
  display: flex;
  justify-content: center;
  max-width: max-content;
}

.theme-fleet-grid__filter.item {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 40px !important;
  font-size: 14px;
  font-weight: 600;
  color: #3b3b3b;
  text-align: center;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.theme-fleet-grid__filter.item.is-active {
  background: #ffffff;
  color: #163029;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.theme-fleet-grid__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  row-gap: 80px;
}

@media (max-width: 998px) {
  .theme-fleet-grid__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
}

@media (max-width: 600px) {
  .theme-fleet-grid__grid {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }
}

.theme-fleet-grid__card {
  all: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  cursor: pointer;
  width: 100%;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.theme-fleet-grid__card.is-hidden {
  display: none;
}

.theme-fleet-grid__card.is-leaving {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.theme-fleet-grid__card.is-entering {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  pointer-events: none;
}

.theme-fleet-grid__card-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 16px;
}

.theme-fleet-grid__card-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.theme-fleet-grid__card:hover .theme-fleet-grid__card-image img {
  transform: scale(1.04);
}

.theme-fleet-grid__card-title {
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  font-family: "Aptos";
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 120%;

  color: #163029;
}

.theme-fleet-grid__card-subtitle {
  font-family: "Aptos";
  font-size: 16px;
  font-weight: 400;
  line-height: 160%;
  color: #163029;
  text-align: center;
  margin-top: 4px;
}

/* Modal */
.theme-fleet-modal {
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
  /* max-width: 660px; */
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  margin: 0 0 auto;
  border: none;
  /* border-radius: 24px; */
  padding: 40px;
  background: #f8f8f8;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.theme-fleet-modal::backdrop {
  background: rgba(9, 30, 24, 0);
  transition: background-color 0.25s ease;
}

@starting-style {
  .theme-fleet-modal[open] {
    opacity: 0;
    transform: translateY(12px);
  }

  .theme-fleet-modal[open]::backdrop {
    background: rgba(9, 30, 24, 0);
  }
}

.theme-fleet-modal__close {
  all: unset;
  position: fixed;
  top: 24px;
  right: 24px;
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border: 1px solid #ececec; */
  /* border-radius: 8px; */
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.theme-fleet-modal__close::before,
.theme-fleet-modal__close::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000000;
}

.theme-fleet-modal__close::before {
  top: 50%;
  width: 100%;
  height: 1px;
  transform: translateY(-50%) rotate(45deg);
}

.theme-fleet-modal__close::after {
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-50%) rotate(45deg);
}

.theme-fleet-modal__title {
  margin: 0 0 16px;
  font-weight: 400;
  font-family: "Aptos", sans-serif;
  font-size: 32px;
  line-height: 120%;
  text-transform: uppercase;
  color: #163029;
}

.theme-fleet-modal__title-rest {
  font-weight: 800;
}

.theme-fleet-modal__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.theme-fleet-modal__badge {
  padding: 6px 16px;
  background: #163029;
  color: #ffffff;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
}

.theme-fleet-modal__class {
  color: #7b868c;
  font-size: 14px;
}

.theme-fleet-modal__button-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 60px;
}

.theme-fleet-modal__button {
  padding-top: 14px;
  padding-right: 14.5px;
  padding-bottom: 14px;
  padding-left: 14.5px;
  background-color: #B7E5D2;
  border-radius: 100px;
}

.theme-fleet-modal__gallery {
  position: relative;
  width: 100%;
  min-width: 0;
  margin-bottom: 24px;
  overflow: hidden;
}

.theme-fleet-modal__gallery-slides {
  display: flex;
  align-items: stretch;
  gap: 24px;

  width: 100%;
  min-width: 0;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;

  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  /* position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  touch-action: pan-y;
  cursor: grab;
  user-select: none; */
}

.theme-fleet-modal__gallery-slides::-webkit-scrollbar {
  display: none;
}

.theme-fleet-modal__gallery-slides.is-swiping {
  cursor: grabbing;
  scroll-snap-type: none;
}

.theme-fleet-modal__gallery-slide {
  position: relative;
  top: auto;
  left: auto;

  display: block;
  flex: 0 0 42%;

  width: 42%;
  min-width: 0;
  height: clamp(340px, 35vw, 500px) !important;

  object-fit: cover;
  border-radius: 32px;

  opacity: 1;
  visibility: visible;
  transform: scale(0.96);

  scroll-snap-align: start;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;

  transition:
    opacity 0.55s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  /* position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85) translateX(0);
  transform-origin: left center;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none; */
}

/* .theme-fleet-modal__gallery-slide.is-next {
  opacity: 0.8;
  visibility: visible;
  transform: scale(1) translateX(120%);
  z-index: 1;
}

.theme-fleet-modal__gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateX(0);
  z-index: 2;
  pointer-events: auto;
} */

.theme-fleet-modal__gallery-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.theme-fleet-modal__gallery-slide.is-next {
  opacity: 1;
  transform: scale(0.985);
}

.theme-fleet-modal__gallery-slide.is-entering-next {
  animation: theme-fleet-slide-in-next 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-fleet-modal__gallery-slide.is-entering-previous {
  animation: theme-fleet-slide-in-previous 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes theme-fleet-slide-in-next {
  from {
    opacity: 0.35;
    transform: translateX(24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes theme-fleet-slide-in-previous {
  from {
    opacity: 0.35;
    transform: translateX(-24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.theme-fleet-modal__gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 10;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;
  padding: 0;

  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  color: #163029;

  cursor: pointer;
  transform: translateY(-50%);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

.theme-fleet-modal__gallery-nav i {
  font-size: 17px;
  line-height: 1;
}

.theme-fleet-modal__gallery-nav--prev {
  left: 20px;
}

.theme-fleet-modal__gallery-nav--next {
  right: 20px;
}

.theme-fleet-modal__gallery-nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.theme-fleet-modal__gallery-nav:focus-visible {
  outline: 2px solid #163029;
  outline-offset: 3px;
}

.theme-fleet-modal__gallery-nav.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.theme-fleet-modal__gallery-dots.items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.theme-fleet-modal__gallery-dot.item {
  all: unset;
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border-radius: 50% !important;
  background: #7b868c;
  border: 2px solid #f8f8f8;
  cursor: pointer;
}

.theme-fleet-modal__gallery-dot.item.is-active {
  border: 2px solid #7b868c;
  background: #ffffff;
}

.theme-fleet-modal__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 20px;
}

.theme-fleet-modal__spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-fleet-modal__spec-label {
  font-weight: 700;
  color: #163029;
  margin: 0;
  font-size: 15px;
}

.theme-fleet-modal__spec-value {
  color: #163029;
  margin: 0;
  font-size: 16px;
}

.theme-fleet-modal__nav {
  display: none;
  /* display: flex; */
  justify-content: space-between;
  margin-top: 24px;
}

.theme-fleet-modal__nav-prev,
.theme-fleet-modal__nav-next {
  all: unset;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ececec;
  border-radius: 50%;
  font-size: 18px;
}

html.theme-fleet-modal-open,
body.theme-fleet-modal-open {
  overflow: hidden;
  height: 100%;
}


@media (max-width: 480px) {
  .theme-fleet-modal__specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .theme-fleet-modal__gallery-slides {
    aspect-ratio: 16 / 10;
  }
}