.emri{
    font-size: 30px;
    color: red;
    font-style: italic;
    font-weight: 900;
    text-align: justify;

}
.header {
    display: flex;
    align-items: center;
    gap: 60px; /* kjo i largon elementet mes veti */
    padding: 15px;
    overflow-x: auto;
    box-sizing: border-box;
}

.item {
    display: flex;
    align-items: center;
}

.header a,
.header select {
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    color: #333;
}
 


.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}


.container img,
.container video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
}

.container p {
  text-align: center;
  font-size: 16px;
  background-color: orange;
  border-radius: 20px;
  margin-top: 6px;
  padding: 6px 10px;
}

/* GRID për gallery */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
}
.grid div {
  display: flex;
  flex-direction: column;
}

.grid p {
  text-align: center;
  font-size: 14px;
  margin-top: 5px;
}
.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.gal-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

/* overlay fillimisht i fshehur */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transition: 0.3s;
  text-align: center;
  padding: 10px;
}

/* kur kalon miun */
.gal-item:hover .overlay {
  opacity: 1;
}
.gal-item::after {
  content: "📷";
  position: absolute;
  top: 5px;
  right: 8px;
  font-size: 18px;
}
/* teksti */
.overlay p {
  font-size: 14px;
  line-height: 1.4;
}


/* MOBILE */
@media (max-width: 480px) {

  /* titulli */
  .emri {
    font-size: 20px;
    text-align: center;
  }

  /* header më i ngjeshur */
  .header {
    gap: 15px;
    padding: 10px;
  }

  .header a,
  .header select {
    font-size: 14px;
  }

  /* container -> 1 kolone */
  .container {
    grid-template-columns: 1fr;
  }

  .container img,
  .container video {
    height: 200px;
  }

  /* grid -> 2 kolona në vend të 4 */
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid img {
    height: 120px;
  }

  /* tekst më i vogël */
  .container p,
  .grid p {
    font-size: 13px;
  }

  /* overlay pak më i lehtë për mobile */
  .overlay p {
    font-size: 12px;
  }
}