.project-showcase-ready.mp-gallery {
  display: block;
  margin: 48px 0 10px;
  padding: 0;
  overflow: visible;
}

.project-showcase-ready .mp-shot {
  transform: none;
  cursor: zoom-in;
}

.project-showcase-ready .mp-shot:focus-visible {
  outline: 3px solid rgba(79, 224, 228, 0.5);
  outline-offset: 5px;
}

.project-showcase-ready .mp-shot--featured {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 48px 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: linear-gradient(145deg, #171822, #0b0c13);
  box-shadow: 0 34px 90px -36px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(79, 224, 228, 0.04);
}

.project-showcase-ready .mp-shot--featured::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 24px 21px, #ff5f57 0 5px, transparent 5.6px),
    radial-gradient(circle at 44px 21px, #febc2e 0 5px, transparent 5.6px),
    radial-gradient(circle at 64px 21px, #28c840 0 5px, transparent 5.6px),
    rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.project-showcase-ready .mp-shot--featured::after {
  content: attr(data-browser-url);
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 18px;
  left: 92px;
  height: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.43);
  font-size: 11px;
  font-weight: 500;
  line-height: 22px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.project-showcase-ready .mp-shot--featured:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 224, 228, 0.34);
  box-shadow: 0 40px 100px -38px rgba(0, 0, 0, 0.94), 0 0 42px rgba(79, 224, 228, 0.055);
}

.project-showcase-ready .mp-shot--featured img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  object-position: top;
}

.mp-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.mp-gallery__thumbs .mp-shot {
  position: relative;
  width: auto;
  aspect-ratio: 16 / 10;
  padding: 5px;
  overflow: hidden;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 18px 38px -24px rgba(0, 0, 0, 0.9);
}

.mp-gallery__thumbs .mp-shot::after {
  content: "↗";
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  background: rgba(5, 5, 13, 0.82);
  color: #4fe0e4;
  font-size: 16px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.mp-gallery__thumbs .mp-shot:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 224, 228, 0.36);
}

.mp-gallery__thumbs .mp-shot:hover::after,
.mp-gallery__thumbs .mp-shot:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.mp-gallery__thumbs .mp-shot img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
}

.mp-lightbox[hidden] {
  display: none;
}

.mp-lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2, 2, 8, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mp-lightbox__dialog {
  position: relative;
  display: grid;
  width: min(1160px, 94vw);
  height: min(880px, 90vh);
  place-items: center;
  outline: none;
}

.mp-lightbox__image-wrap {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: #080910;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.58);
}

.mp-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mp-lightbox__close,
.mp-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(5, 5, 13, 0.82);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.mp-lightbox__close:hover,
.mp-lightbox__nav:hover {
  border-color: rgba(79, 224, 228, 0.48);
  background: rgba(79, 224, 228, 0.15);
}

.mp-lightbox__close:focus-visible,
.mp-lightbox__nav:focus-visible {
  outline: 3px solid rgba(79, 224, 228, 0.5);
  outline-offset: 4px;
}

.mp-lightbox__close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
}

.mp-lightbox__nav {
  top: 50%;
  width: 48px;
  height: 72px;
  border-radius: 18px;
  font-size: 28px;
  transform: translateY(-50%);
}

.mp-lightbox__nav:hover {
  transform: translateY(-50%) scale(1.05);
}

.mp-lightbox__nav--prev {
  left: 16px;
}

.mp-lightbox__nav--next {
  right: 16px;
}

.mp-lightbox__count {
  position: absolute;
  bottom: 16px;
  left: 50%;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(5, 5, 13, 0.78);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  transform: translateX(-50%);
}

body.mp-lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .mp-gallery__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .project-showcase-ready.mp-gallery {
    margin: 34px 0 8px;
    padding: 0;
  }

  .project-showcase-ready .mp-shot--featured {
    aspect-ratio: 3 / 4;
    padding: 42px 6px 6px;
    border-color: rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background:
      radial-gradient(circle at 78% -8%, rgba(79, 224, 228, 0.12), transparent 36%),
      linear-gradient(150deg, #191b26, #090a11 70%);
    box-shadow:
      0 28px 68px -30px rgba(0, 0, 0, 0.95),
      0 0 0 1px rgba(79, 224, 228, 0.04);
  }

  .project-showcase-ready .mp-shot--featured::before {
    height: 37px;
    background:
      radial-gradient(circle at 19px 18px, #ff5f57 0 4px, transparent 4.6px),
      radial-gradient(circle at 34px 18px, #febc2e 0 4px, transparent 4.6px),
      radial-gradient(circle at 49px 18px, #28c840 0 4px, transparent 4.6px),
      rgba(255, 255, 255, 0.025);
  }

  .project-showcase-ready .mp-shot--featured::after {
    top: 7px;
    right: 12px;
    left: 68px;
    height: 23px;
    font-size: 9px;
    line-height: 21px;
  }

  .project-showcase-ready .mp-shot--featured img {
    border-radius: 17px;
  }

  .mp-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    overflow: visible;
  }

  .mp-gallery__thumbs .mp-shot {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 4px;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
    box-shadow: 0 18px 38px -24px rgba(0, 0, 0, 0.92);
  }

  .mp-gallery__thumbs .mp-shot::after {
    display: none;
  }

  .mp-gallery__thumbs .mp-shot::before {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: grid;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(5, 5, 13, 0.72);
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
  }

  .mp-gallery__thumbs .mp-shot:nth-child(1)::before { content: "02"; }
  .mp-gallery__thumbs .mp-shot:nth-child(2)::before { content: "03"; }
  .mp-gallery__thumbs .mp-shot:nth-child(3)::before { content: "04"; }
  .mp-gallery__thumbs .mp-shot:nth-child(4)::before { content: "05"; }

  .mp-gallery__thumbs .mp-shot img {
    border-radius: 14px;
  }

  .mp-lightbox {
    padding: 12px;
  }

  .mp-lightbox__dialog {
    width: 100%;
    height: min(88vh, 760px);
  }

  .mp-lightbox__image-wrap {
    border-color: rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    background: linear-gradient(145deg, #11131c, #05060b);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62);
  }

  .mp-lightbox__nav {
    top: auto;
    bottom: 14px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    transform: none;
  }

  .mp-lightbox__nav:hover {
    transform: scale(1.05);
  }

  .mp-lightbox__nav--prev {
    left: 14px;
  }

  .mp-lightbox__nav--next {
    right: 14px;
  }

  .mp-lightbox__count {
    bottom: 19px;
  }
}

@media (max-width: 360px) {
  .project-showcase-ready .mp-shot--featured {
    border-radius: 21px;
  }

  .mp-gallery__thumbs {
    gap: 8px;
  }

  .mp-gallery__thumbs .mp-shot {
    border-radius: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-showcase-ready .mp-shot,
  .mp-gallery__thumbs .mp-shot::after,
  .mp-lightbox__close,
  .mp-lightbox__nav {
    transition: none;
  }
}
