/* Blog Ek Görseller ve Belgeler */

.entry-gallery,
.entry-documents {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.entry-gallery h2,
.entry-documents h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.entry-documents h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

/* Swiper Slider */
.blog-swiper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.blog-swiper .swiper-slide {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 270px; /* Sabit yükseklik */
}

.blog-swiper .swiper-slide img {
  max-width: 100%;
  max-height: 270px; /* Sabit yükseklik sınırı */
  width: auto;
  height: auto;
  border-radius: 6px;
  object-fit: contain; /* Kırpma yerine sığdır */
  transition: transform 0.3s ease;
}

.blog-swiper .swiper-slide:hover img {
  transform: scale(1.02);
}

.swiper-caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

.blog-swiper .swiper-button-next,
.blog-swiper .swiper-button-prev {
  color: #007bff;
}

.blog-swiper .swiper-pagination-bullet-active {
  background: #007bff;
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.image-modal.is-active {
  display: flex;
}

.image-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 1;
}

.image-modal-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.image-modal-close:hover {
  color: #007bff;
}

/* Document List */
.document-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.document-list li {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  transition: box-shadow 0.2s;
}

.document-list li:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.document-item-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.document-title {
  font-weight: 500;
  color: #333;
  flex: 1;
}

.document-actions-inline {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.85rem;
}

.btn {
  background: #007bff;
  color: #fff;
}

.btn:hover {
  background: #0056b3;
}

.document-download-all {
  margin-top: 1rem;
  text-align: center;
}

.document-download-all .btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .entry-gallery,
  .entry-documents {
    padding: 1rem;
  }

  .document-item-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .document-actions-inline {
    width: 100%;
    justify-content: flex-start;
  }
}
