/* =====================================================
   GALLERY SECTION
===================================================== */

.mosaic-section {
  position: relative;
  z-index: 3;

  display: flex;
  justify-content: center;
  overflow: hidden;
  
  height: 100vh;
  min-height: 300px;
  padding: 0 20px;
}

/* Overlay fade */
.mosaic-section::before,
.mosaic-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 2;
  pointer-events: none;
}



/* =====================================================
   MOSAIC GRID / FLEX
===================================================== */

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;   /* максимальная ширина контейнера */

  height: 100%;
}
/* =====================================================
   COLUMNS
===================================================== */

.column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =====================================================
   IMAGE WRAPPER
===================================================== */

.image-wrapper {
  position: relative;
  display: block;
  width: 550px;
  max-width: 100%;
  margin-top: 30px;
  min-height: 1px;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* =====================================================
   WATERMARK
===================================================== */

.watermark {
  position: absolute;
  bottom: 20px;
  left: 10px;
  font-size: 25px;
  color: rgba(229, 240, 241, 0.5);
  pointer-events: none;
  user-select: none;
}

/* =====================================================
   HELPERS
===================================================== */

.img_top {
  margin-bottom: -30px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1750px) and (min-width: 901px) {
  .mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

  }
.image-wrapper {
  width: 80%;
}
  .column.right { display: none; } 
}

@media (max-width: 900px) {
  .mosaic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0;
  }

  .column {
    width: 100%;
    transform: none;
  }

  .image-wrapper {
    width: 90%;
    max-width: 400px;
    margin: 10px 0;
  }

  .mosaic-section {
    height: 70vh;       
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .mosaic-section::before,
  .mosaic-section::after { height: 40px; }
}

@media (max-width: 600px) {
  .mosaic-section { height: 55vh; min-height: 250px; }
}

.watermark {
  position: absolute;
  bottom: 20px;       
  left: 10px;         
  font-size: 25px;
  color: rgba(229, 240, 241, 0.5);
  pointer-events: none;
  user-select: none;    
}
