:root {
  font-family: "Geist Mono", monospace;
  font-optical-sizing: auto;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-image: url('imatges/BYN\ copia.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: "Geist Mono", monospace;
  overflow-x: hidden;
}

.B, .C, .D, .E, .F, .G, .H, .I, .J {
  background-color: #D9D9D9;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 25%);
  grid-auto-rows: 320px;
  width: 100%;
}

.cell {
  border-right: 2px solid #ABABAB;
  border-bottom: 2px solid #ABABAB;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cell:nth-child(4n) {
  border-right: none;
}

.cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #A0FF3C;
  opacity: 0;
  transition: opacity 0.22s ease;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.cell--green {
  background: #A0FF3C;
}
.cell--green::after {
  display: none;
}

.cell--green-70 {
  background: #A0FF3CB2;
}
.cell--green-70::after {
  display: none;
}

.cell--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
}

.cell--photo-green {
  background: #A0FF3CB2;
}
.cell--photo-green img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  mix-blend-mode: multiply;
}
.cell--photo-green::after {
  display: none;
}

.cell--obj img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(.25,.8,.25,1);
}
.cell--obj:hover img {
  transform: scale(1.06);
}
.cell--obj::after {
  display: none;
}

.cell--header {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 18px;
  cursor: default;
}
.cell--header::after {
  display: none;
}

.cell--info {
  justify-content: flex-end;
  align-items: flex-start;
  padding: 18px;
  cursor: default;
}
.cell--info::after {
  display: none;
}

.cell--title {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 14px 16px;
  cursor: default;
}
.cell--title::after {
  display: none;
}

.cell--empty {
  cursor: default;
}
.cell--empty::after {
  display: none;
}

.dot-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #A0FF3C;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}
.dot-logo:hover {
  transform: scale(1.2);
}

.btn-info {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #111111;
  background: #A0FF3C;
  border-radius: 999px;
  border-width: 0px;
  padding: 8px 30px;
  cursor: pointer;
  text-transform: lowercase;
  transition: background 0.2s, color 0.2s;
}
.btn-info:hover {
  background: #111111;
  color: #A0FF3C;
}

.vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Geist Mono", monospace;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: #111111;
  text-transform: uppercase;
  font-weight: 400;
}

.cell-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111111;
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 10;
  pointer-events: none;
}
.cell--obj:hover .cell-label,
.cell--photo:hover .cell-label {
  opacity: 1;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #000000D1;
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #D9D9D9;
  max-width: 500px;
  width: 90%;
  padding: 44px 44px;
  position: relative;
  border: none;
  border-radius: 20px;
}

.modal-box h2 {
  font-family: "Geist Mono", monospace;
  font-size: 24px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  text-transform: uppercase;
  font-weight: 400;
}

.modal-box p {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  line-height: 1.9;
  color: #111111;
  letter-spacing: 0.02em;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  font-family: "Geist Mono", monospace;
  color: #111111;
}
.modal-close:hover {
  color: #555;
}

.modal-tag {
  display: inline-block;
  margin-top: 24px;
  background: #A0FF3C;
  padding: 8px 18px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
}


@media (max-width: 768px) {

  .grid {
    grid-template-columns: repeat(2, 50%);
    grid-auto-rows: 50vw;
  }

  .cell:nth-child(4n) {
    border-right: 2px solid #ABABAB;
  }
  .cell:nth-child(2n) {
    border-right: none;
  }

  .cell--obj img {
    width: 82%;
    height: 82%;
  }

  .dot-logo {
    width: 22px;
    height: 22px;
  }

  .btn-info {
    font-size: 10px;
    padding: 5px 14px;
  }

  .cell-label {
    display: none;
  }

  .modal-box {
    padding: 32px 24px;
  }
  .modal-box h2 {
    font-size: 18px;
  }
  .modal-box p {
    font-size: 11px;
  }
}