@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@font-face {
  font-family: "Jersey25";
  src: url('extras/Jersey25-Regular.ttf') format('truetype');
  font-display: swap;
}
/* =========================
   SQUARE / 3D SECTION
========================= */

#squareLightbox .lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

#squareLightboxImg {
  width: 70vmin;
  height: 70vmin;
  object-fit: contain;
  max-width: 90vw;
  max-height: 90vh;
}

#squareGallery {
  display: flex;
  flex-direction: row;
  gap: 0;
  width: 100vw;
}

#squareGallery .gallery-item {
  width: 50vw;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

#squareGallery iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* =========================
   BASE
========================= */

body {
  padding: 0;
  margin: 0;
  background: #fdf6e3;
  color: #657b83;
  font-family: "Ubuntu Mono", monospace;
}

p { margin: 0; }

/* =========================
   HEADER
========================= */

header {
  background: #eee8d5;
  font-family: "Jersey25", monospace;
  padding: 1rem 2rem;
  border-bottom: 1px solid #93a1a1;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.menu {
  display: flex;
  gap: 2rem;
}

.menu a {
  text-decoration: none;
  color: #586e75;
  font-size: 42px;
  letter-spacing: 1px;
}

.menu a:hover {
  color: #268bd2;
}

/* =========================
   GALLERY LAYOUT
========================= */

.gallery {
  column-count: 3;
  column-gap: 25px;
  margin: 20px 200px;
  padding: 20px 0;
}

@media (max-width: 900px) {
  .gallery {
    column-count: 3;
    margin: 20px;
  }
}

@media (max-width: 600px) {
  .gallery {
    column-count: 3;
    margin: 12px;
  }
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 25px;
  break-inside: avoid;
  position: relative;
}

/* =========================
   IMAGE
========================= */

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  background: #eee8d5;
  object-fit: cover;
  cursor: pointer;
}

/* =========================
   CAPTION (IN-IMAGE, ON HOVER ONLY)
========================= */

.gallery-item .caption {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  padding: 12px;

  font-family: "Ubuntu Mono", monospace;
  font-size: 13px;
  color: #fdf6e3;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0)
  );

  opacity: 0;
  transition: opacity 0.25s ease;

  pointer-events: none;
}

.gallery-item:hover .caption {
  opacity: 1;
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(253, 246, 227, 0.95);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 3100;
  background: none;
  border: none;
  color: #586e75;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.7;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  font-size: 40px;
  color: #586e75;
  background: none;
  border: none;
  cursor: pointer;
}

.lightbox .prev { left: 0; }
.lightbox .next { right: 0; }

.lightbox .prev:hover,
.lightbox .next:hover {
  color: #268bd2;
}

/* =========================
   TEXT BLOCKS
========================= */

.text-section {
  padding: 40px 50px 60px;
  max-width: 700px;
}

.text-heading {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #93a1a1;
  margin-bottom: 8px;
}

.text-body {
  font-size: 22px;
  color: #586e75;
  line-height: 1.7;
}

.text-block { margin-bottom: 1.5rem; }
.text-hr { border: none; border-top: 1px solid #eee8d5; margin: 1.5rem 0; }

/* =========================
   SECTION LABEL
========================= */

.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #93a1a1;
  padding: 40px 50px 10px;
  border-bottom: 1px solid #eee8d5;
}

/* =========================
   CONTACT / LINKS
========================= */

.contact-link,
.section-label a {
  color: #268bd2;
  text-decoration: none;
  border-bottom: 1px solid #93a1a1;
}

.contact-link:hover,
.section-label a:hover {
  border-color: #268bd2;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  border-top: 1px solid #eee8d5;
  padding: 30px 50px;
  display: flex;
  color: #268bd2;
  justify-content: space-between;
  font-family: "Ubuntu Mono", monospace;
  font-size: 12px;
}

.site-footer a {
  color: #268bd2;
  text-decoration: none;
  border-bottom: 1px solid #93a1a1;
}

.site-footer a:hover {
  border-color: #268bd2;
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #fdf6e3; }
::-webkit-scrollbar-thumb { background: #93a1a1; }

/* =========================
   REMOVE OLD UI SYSTEMS
========================= */

.item-overlay,
.gallery-item .info,
.buy-btn,
.item-price,
.item-badge {
  display: none !important;
}

/* =========================
   PRICE + BUY OVERLAY
========================= */

.price-tag {
  position: absolute;
  top: 10px;
  left: 10px;

  font-family: "Ubuntu Mono", monospace;
  font-size: 12px;

  background: rgba(253, 246, 227, 0.85);
  color: #586e75;

  padding: 4px 6px;
  border: 1px solid #eee8d5;

  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;

  pointer-events: none;
}

.buy-btn {
  position: absolute;
  top: 10px;
  right: 10px;

  font-family: "Ubuntu Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  background: #fdf6e3;
  color: #586e75;

  padding: 6px 10px;
  border: none;
  cursor: pointer;

  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;

  text-decoration: none;
}

/* SHOW ONLY ON HOVER */
.gallery-item:hover .price-tag,
.gallery-item:hover .buy-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.caption-buy {
  font-family: "Ubuntu Mono", monospace;
  font-size: 12px;
  color: #fdf6e3;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(253, 246, 227, 0.4);
  padding: 3px 7px;
  text-decoration: none;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: auto;
}

.caption-buy:hover {
  background: rgba(38, 139, 210, 0.6);
  border-color: #268bd2;
}

.lightbox-buy {
  display: none;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: black;
  padding: 8px 18px;
  font-family: "Ubuntu Mono", monospace;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  z-index: 10;
}