.parent {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-gap: 10px;
  height: 100vh;
}
.album {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.album img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.album-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}
.album:hover .album-title {
  transform: translateY(0);
}
.div1 {
  grid-area: 1 / 1 / 2 / 2;
}
.div2 {
  grid-area: 1 / 2 / 2 / 3;
}
.div3 {
  grid-area: 1 / 3 / 3 / 5;
}
.div4 {
  grid-area: 2 / 2 / 3 / 3;
}
.div5 {
  grid-area: 2 / 1 / 3 / 2;
}
.div6 {
  grid-area: 3 / 1 / 5 / 3;
}
.div7 {
  grid-area: 3 / 3 / 4 / 4;
}
.div8 {
  grid-area: 3 / 4 / 4 / 5;
}
.div9 {
  grid-area: 4 / 3 / 5 / 4;
}
.div10 {
  grid-area: 4 / 4 / 5 / 5;
}

.modal-content {
  background-color: transparent;
  border: none;
}
.swiper {
  width: 100%;
  height: 100%;
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


a {
  text-decoration: none;
}

.text-overflow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  /* عرض دلخواه */
}

.parent {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-gap: 10px;
  min-height: 80vh;
  margin-bottom: 2rem;
}

.album {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.album img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.album:hover .album-title {
  transform: translateY(0);
}

.div1 {
  grid-area: 1 / 1 / 2 / 2;
}

.div2 {
  grid-area: 1 / 2 / 2 / 3;
}

.div3 {
  grid-area: 1 / 3 / 3 / 5;
}

.div4 {
  grid-area: 2 / 2 / 3 / 3;
}

.div5 {
  grid-area: 2 / 1 / 3 / 2;
}

.div6 {
  grid-area: 3 / 1 / 5 / 3;
}

.div7 {
  grid-area: 3 / 3 / 4 / 4;
}

.div8 {
  grid-area: 3 / 4 / 4 / 5;
}

.div9 {
  grid-area: 4 / 3 / 5 / 4;
}

.div10 {
  grid-area: 4 / 4 / 5 / 5;
}

.modal-content {
  background-color: transparent;
  border: none;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.error-message {
  text-align: center;
  color: red;
  font-weight: bold;
  padding: 20px;
}


.modal-body {
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.swiper-slide img {
  max-width: 100%;
  max-height: 90vh;
  /* حداکثر ارتفاع تصویر */
  width: auto;
  height: auto;
  object-fit: contain;
}

/* برای ویدیوها */
.swiper-slide video {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
}