

/*
Theme Name: Fiyaka Child
Template: Divi
Version: 1.0
*/

@import url("../Divi/style.css");
/* ---------- GENEL GÖRSEL OPTİMİZASYON KURALLARI ---------- */

/* Tüm img etiketleri için varsayılan sınırlama */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Divi resim modüllerine özel düzenleme */
.et_pb_image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

body.fiyaka-lightbox-open {
  overflow: hidden;
}

.fiyaka-gallery-wrapper {
  padding: 20px 10px;
}

.fiyaka-gallery {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.fiyaka-gallery::-webkit-scrollbar {
  display: none;
}

.fiyaka-card {
  flex: 0 0 300px;
  background: #fff;
  border-radius: 16px;
  box-shadow: inset 0 0 2px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.fiyaka-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.12);
}

.fiyaka-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.fiyaka-card img:hover {
  transform: scale(1.05);
}

.fiyaka-card .info {
  padding: 14px;
  background: #f9f9f9;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.9em;
}

.fiyaka-card .info h4 {
  margin: 0 0 8px;
  font-size: 1.05em;
  background: linear-gradient(to right, #1e3a8a, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.fiyaka-card .info p {
  margin: 0;
  color: #444;
}

/* Mobil ekranlar için özel ayarlar */
@media screen and (max-width: 480px) {
  .fiyaka-card {
    flex: 0 0 90%;
  }

  .fiyaka-card img {
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
  }

  .fiyaka-card .info {
    padding: 12px;
    font-size: 0.85em;
  }

  .fiyaka-card .info h4 {
    font-size: 1em;
  }
}
