/* ==========================================================
   ABOUT  (text · gallery · pixel reveal grid)
   ========================================================== */

.aboutPanel {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.pixel {
  width: 100%;
  height: 100px; /* change as needed */
  background-color: #FF0000;
  opacity: 0;
}
/* =========================
   ABOUT
========================= */

.about {
  position: relative;
  width: 100%;
  min-height: 100vh;

  background: #ff3b1f;

  overflow: hidden;

  padding: 10vh 5vw;
}


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

.aboutGallery {
  position: relative;

  width: 100%;
  min-height: 90vh;
  margin-top: 10vh;
}


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

.aboutGalleryItem {
  position: absolute;

  overflow: hidden;

  background: #ff3b1f;
}


/* IMAGE */

.aboutGalleryItem img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  filter:
    grayscale(100%)
    contrast(120%)
    brightness(72%)
    sepia(35%)
    saturate(220%)
    hue-rotate(325deg);

  display: block;
  border-radius: 5px;
}

/* spinning brand badge – mobile collage only */
.aboutBadge {
  display: none;
}


/* =========================
   POSITIONS
========================= */

.aboutGallery1 {
  width: 20vw;
  height: 20vw;

  left: 4vw;
  top: 50vh;

  z-index: 2;
}


.aboutGallery2 {
  width: 40vw;
  height: 48vw;

  left: 50%;
  top: 4vh;

  transform: translateX(-50%);

  z-index: 3;
}


.aboutGallery3 {
  width: 20vw;
  height: 20vw;

  right: 4vw;
  top: 10vh;

  z-index: 2;
}


/* =========================
   PIXEL GRID
========================= */

.pixelGrid {
  position: absolute;

  inset: 0;

  display: grid;

  /*
    Change these to control
    pixel size
  */
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);

  z-index: 5;

  pointer-events: none;
}


/* Individual red pixels */

.pixel {
  width: 100%;
  height: 100%;

  background: #ff3b1f;
}

.aboutTexts{
  padding-top: 10vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.subText{
  color: white;
  font-size: 0.7rem;
  font-family: 'font1bold';
  display: flex;
  align-items: center;
  gap:0.5vw;
}
.subText i{
  font-size: 0.5rem;
}
.titleAbout{
  font-size: 2.5rem;
  font-family: 'Poppins';
  text-align: center;
  line-height: 1.2;
  width: 60%;
  font-weight: 600;
  margin-top: 4vh;
  color:#f0ece2;
}
.titleAbout span{
  color: white;
}
.titleAbout .strong{
  display: inline;
  color: white;
  font-family: 'font1bold';
}
.titleAboutInfo{
  font-size: 1rem;
  font-family: 'font1regular';
  color: #f0ece2;
  width: 50%;
  text-align: center;
  margin-top: 4vh;

}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

  .titleAbout {
    width: 88%;
    font-size: clamp(1.9rem, 4.6vw, 2.5rem);
  }

  .titleAboutInfo {
    width: 75%;
    font-size: 1.05rem;
  }

  .subText {
    font-size: 0.8rem;
  }
}


/* =========================
   MOBILE  (≤700px)

   The desktop gallery is absolutely positioned in vw units,
   which doesn't hold up on a phone. Here it becomes an
   overlapping, slightly tilted collage:

       ┌──────────────┐
       │              │   1 large portrait (right)
       │      2       │
     ┌─┴────┐         │
     │  1   │  ┌──────┴─┐  2 square, overlaps the portrait (left)
     │      │  │   3    │  3 tall card, offset lower (right)
     └──────┘  │        │
               └────────┘

   Cream frames lift each photo off the red; a brand badge
   sits on the seam and turns as you scroll (js/about.js).
========================= */

@media (max-width: 700px) {

  .about {
    padding: 10vh 6vw 8vh;
  }

  .aboutTexts {
    padding-top: 6vh;
  }

  .titleAbout {
    width: 100%;
    font-size: 1.7rem;
    margin-top: 3vh;
  }

  .titleAboutInfo {
    width: 100%;
    font-size: 0.9rem;
    margin-top: 3vh;
  }

}


@media (max-width: 900px) {

  .about {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  /* --- collage --- */

  .aboutGallery {
    position: relative;

    display: grid;
    grid-template-columns: repeat(12, 1fr);

    min-height: 0;
    margin-top: 9vh;
    padding-bottom: 4vh;
  }

  .aboutGalleryItem,
  .aboutGallery1,
  .aboutGallery2,
  .aboutGallery3 {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;

    height: auto;

    border: 1px solid #f0ece2ac;
    border-radius: 16px;

    box-shadow: 0 22px 40px -22px rgba(70, 8, 0, 0.7);
  }

  .aboutGalleryItem img {
    border-radius: inherit;
  }

  /* large portrait – the anchor of the collage */
  .aboutGallery2 {
    grid-column: 3 / 13;
    grid-row: 1;

    width: auto;
    aspect-ratio: 4 / 5;

    z-index: 1;
  }

  /* square, tucked over the portrait's lower-left corner */
  .aboutGallery1 {
    grid-column: 1 / 7;
    grid-row: 2;

    width: auto;
    aspect-ratio: 1 / 1;
    margin-top: -14vw;

    transform: rotate(-5deg);
    z-index: 3;
  }

  /* tall card, dropped lower on the right so the rhythm zig-zags */
  .aboutGallery3 {
    grid-column: 6 / 13;
    grid-row: 2;

    width: auto;
    aspect-ratio: 4 / 5;
    margin-top: 4vw;

    transform: rotate(4deg);
    z-index: 2;
  }

  /* --- badge on the seam between the two lower photos ---
     It is a real grid item (row 2), so it stays glued to the
     photos at every phone width – no magic pixel offsets. */

  .aboutBadge {
    position: relative;
    z-index: 4;

    grid-column: 1 / 13;
    grid-row: 2;
    justify-self: start;
    align-self: start;

    margin-left: 28%;      /* % of the grid width → scales with the photos */
    margin-top: 4vw;

    display: grid;
    place-items: center;

    width: 25vw;
    height: 25vw;
    max-width: 118px;
    max-height: 118px;

    border-radius: 50%;
    background: #0d0d0d;

    box-shadow: 0 14px 28px -12px rgba(70, 8, 0, 0.75);
  }

  .aboutBadge img {
    display: block;
    width: 58%;
    height: 58%;
  }

}


/* tablet: keep the collage a comfortable size, centred */
@media (min-width: 701px) and (max-width: 900px) {

  .about {
    padding-top: 12vh;
    padding-bottom: 10vh;
  }

  .aboutGallery {
    width: 100%;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .aboutBadge {
    max-width: 150px;
    max-height: 150px;
  }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 420px) {

  .titleAbout {
    font-size: 1.4rem;
  }

  .titleAboutInfo {
    font-size: 0.85rem;
  }

}
