*{
  margin : 0px;
  padding : 0px;
  width : 100%;
}

.box {
  width: 100%;
  min-height: 40vh;          /* thori space */
  padding-top: 10px;         /* image ko upar feel */
}

.box img {
  display: block;            /* removes inline gap */
  max-width: 100%;
  height: auto;              /* 👈 NO SQUEEZE */
  margin: 0 auto;            /* horizontally center */
}
  
  .image-overlay {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.0); /* Black with 50% opacity */
    color: #FFFFFF;
    text-shadow: 0 12px 10px black;
    font-weight: bold;
    font-family: 'Bell MT';
    font-size: 18px;
    padding-top: 15%;
    text-align: center;
  }

  .image-overlay p{
    width: 100%;
    height: 15vh;
  }

.partition {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.portion{
  margin-top: 2%;
  box-shadow: 5px 5px 10px rgb(0, 0, 0);
}

/* Section title */
.portion h1 {
  cursor: pointer;
  color: rgb(12, 12, 70);
  text-align: center;
  font-weight: bold;
}

/* dropdown hidden by default */
.content {
  display: none;
  margin-bottom: 20px;
}

/* dropdown open */
.content.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* city card */
.block {
  text-align: center;
}

.block img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.block a {
  display: block;
  margin-top: 8px;
  text-decoration: none;
  color: rgb(12, 12, 70);
  font-weight: bold;
}

@media screen and (max-width: 524px) and (min-width: 330px) {
  .box {
    min-height: 40vh;
    padding-top: 8px;
  }

  .box img {
    max-width: 100%;
    height: 40vh;
    margin-top: 5vh;
  }

  .image-overlay {
    height: 50vh;
  }

  .image-overlay p{
    height: 10vh;
  }

  .image-overlay p strong {
    font-size: 20px;
  }

  .partition {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}


/* dropdown open */
.content.active {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* city card */
.block {
  width: 100%;
  height: 40%;
  margin-top: 10%;
}

.block img {
  width: 100%;
  height: 100%;
}

}

@media screen and (min-width: 525px) and (max-width: 768px) {
  .box {
    min-height: 40vh;
    padding-top: 8px;
  }

  .box img {
    max-width: 100%;
    height: 40vh;
    margin-top: 5vh;
  }

  .image-overlay {
    height: 50vh;
  }

  .image-overlay p{
    height: 10vh;
  }

  .image-overlay p strong {
    font-size: 20px;
  }

  .partition {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}


/* dropdown open */
.content.active {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* city card */
.block {
  width: 100%;
  height: 60%;
  margin-top: 15%;
}

.block img {
  width: 100%;
  height: 100%;
}

}

@media screen and (min-width: 769px) and (max-width: 900px) {
  .box {
    min-height: 40vh;
    padding-top: 8px;
  }

  .box img {
    max-width: 100%;
    height: 40vh;
    margin-top: 0vh;
  }

  .image-overlay {
    height: 50vh;
  }

  .image-overlay p{
    height: 10vh;
  }

  .image-overlay p strong {
    font-size: 20px;
  }

  .partition {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}


/* dropdown open */
.content.active {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* city card */
.block {
  width: 100%;
  height: 70%;
  margin-top: 5%;
}

.block img {
  width: 90%;
  height: 100%;
}
}

@media screen and (min-width: 901px) and (max-width: 1200px) {
  .box {
    min-height: 40vh;
    padding-top: 8px;
  }

  .box img {
    max-width: 100%;
    height: 40vh;
    margin-top: 0vh;
  }

  .image-overlay {
    height: 50vh;
  }

  .image-overlay p{
    height: 10vh;
  }

  .image-overlay p strong {
    font-size: 20px;
  }

  .partition {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}


/* dropdown open */
.content.active {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* city card */
.block {
  width: 100%;
  height: 70%;
  margin-top: 5%;
}

.block img {
  width: 90%;
  height: 100%;
}
}