@charset "UTF-8";

/* Projelerimiz sayfası — galeri ızgarası + lightbox */

.p-lb-lock {
  overflow: hidden;
}

.page-proje .p-hero {
  position: relative;
  min-height: clamp(320px, 48vw, 480px);
  display: flex;
  align-items: flex-end;
  color: #faf6f0;
  margin-top: var(--head-h);
}

.page-proje .p-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-proje .p-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.02);
}

.page-proje .p-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(26, 20, 16, 0.25) 0%,
    rgba(26, 20, 16, 0.72) 55%,
    rgba(20, 16, 12, 0.88) 100%
  );
}

.page-proje .p-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.page-proje .p-hero__in {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2.75rem;
}

.page-proje .p-bc {
  margin: 0 0 0.75rem;
}

.page-proje .p-bc__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(196, 165, 116, 0.75);
}

.page-proje .p-bc__a {
  color: rgba(250, 246, 240, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 165, 116, 0.35);
  transition: border-color 0.2s, color 0.2s;
}
.page-proje .p-bc__a:hover {
  color: #fff;
  border-color: rgba(196, 165, 116, 0.75);
}
.page-proje .p-bc__item--cur {
  color: rgba(250, 246, 240, 0.5);
  font-weight: 500;
}

.page-proje .p-hero__k {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(196, 165, 116, 0.65);
  margin: 0 0 0.35rem;
}
.page-proje .p-hero__h {
  font-family: var(--font-ed);
  font-size: clamp(1.9rem, 2.8vw + 1rem, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: #faf8f4;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.page-proje .p-hero__d {
  max-width: 40rem;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(245, 240, 235, 0.62);
}

/* Galeri bölümü */
.page-proje .p-sec {
  position: relative;
  padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(4.5rem, 9vw, 7rem);
  background: linear-gradient(180deg, #e8e0d6 0%, #f0e9e0 40%, #e5ddd2 100%);
}

.page-proje .p-sec__head--gal {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}
.page-proje .p-sec__h2 {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: #2c2218;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}
.page-proje .p-sec__sub {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(44, 34, 24, 0.58);
}
.page-proje .p-sec__sub code {
  font-size: 0.85em;
  padding: 0.08rem 0.28rem;
  border-radius: 4px;
  background: rgba(44, 24, 16, 0.06);
}
.page-proje .p-sec::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(196, 165, 116, 0.08), transparent 55%);
  pointer-events: none;
}

/* Masonry-vari ızgara: yükseklik çeşitliliği */
.page-proje .p-gal {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  z-index: 1;
}
@media (max-width: 900px) {
  .page-proje .p-gal {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .page-proje .p-gal {
    grid-template-columns: 1fr;
  }
}

.page-proje .p-gal__fig {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1612;
  box-shadow: 0 10px 40px rgba(44, 24, 16, 0.1);
  border: 1px solid rgba(44, 24, 16, 0.1);
  aspect-ratio: 3 / 4;
  transition: box-shadow 0.45s var(--ease), transform 0.45s var(--ease), border-color 0.3s;
}
/* Her üçüncü kare: biraz farklı oran (masaüstü) */
@media (min-width: 901px) {
  .page-proje .p-gal__fig:nth-child(5n + 1) {
    aspect-ratio: 4 / 5;
  }
  .page-proje .p-gal__fig:nth-child(5n + 3) {
    aspect-ratio: 2 / 3;
  }
}

.page-proje .p-gal__fig:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(44, 24, 16, 0.16);
  border-color: rgba(196, 165, 116, 0.35);
}

.page-proje .p-gal__open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: zoom-in;
  background: #14110e;
  position: relative;
}
.page-proje .p-gal__open:focus-visible {
  outline: 2px solid var(--logo-honey);
  outline-offset: 3px;
}
.page-proje .p-gal__open::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(196, 165, 116, 0.12);
  border-radius: 14px;
  pointer-events: none;
  transition: box-shadow 0.35s;
  z-index: 1;
}
.page-proje .p-gal__fig:hover .p-gal__open::after {
  box-shadow: inset 0 0 0 1px rgba(196, 165, 116, 0.28);
}

.page-proje .p-gal__open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease), filter 0.4s;
  filter: contrast(0.99) saturate(0.98);
  position: relative;
  z-index: 0;
}
.page-proje .p-gal__fig:hover .p-gal__open img {
  transform: scale(1.04);
  filter: contrast(1) saturate(1.02);
}

.page-proje .p-gal__err {
  text-align: center;
  font-size: 0.8rem;
  color: #b45309;
  margin-top: 1.25rem;
}
.page-proje .p-gal__err code {
  font-size: 0.75rem;
  background: rgba(44, 24, 16, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Lightbox */
.p-lb {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.p-lb.is-open {
  opacity: 1;
  pointer-events: auto;
}
.p-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.p-lb__x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f0e8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.p-lb__x:hover {
  background: rgba(196, 165, 116, 0.35);
  color: #fff;
}
.p-lb__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f0e8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.p-lb__nav:hover {
  background: rgba(196, 165, 116, 0.4);
  color: #fff;
}
.p-lb__nav--prev {
  left: 0.5rem;
}
.p-lb__nav--next {
  right: 0.5rem;
}
@media (min-width: 900px) {
  .p-lb__nav--prev {
    left: 1.5rem;
  }
  .p-lb__nav--next {
    right: 1.5rem;
  }
}
.p-lb__stage {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  margin: 0;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(196, 165, 116, 0.2);
}
.p-lb__stage img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  .page-proje .p-gal__fig,
  .page-proje .p-gal__open img,
  .p-lb {
    transition: none;
  }
  .page-proje .p-gal__fig:hover {
    transform: none;
  }
  .page-proje .p-gal__fig:hover .p-gal__open img {
    transform: none;
  }
}

/* Tanıtım PDF ızgarası (REKLAM/REKLAM) */
.page-proje .p-sec--pdf {
  padding-bottom: 0;
}
.page-proje .p-pdf__head {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}
.page-proje .p-pdf__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  color: #2c2218;
  margin: 0 0 0.5rem;
}
.page-proje .p-pdf__intro {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(44, 34, 24, 0.58);
}
.page-proje .p-pdf {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 0.7rem 0.85rem;
}
.page-proje .p-pdf__a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  text-decoration: none;
  background: #faf7f1;
  border: 1px solid rgba(44, 24, 16, 0.12);
  color: #2c2218;
  font-size: 0.86rem;
  line-height: 1.4;
  box-shadow: 0 2px 12px rgba(44, 24, 16, 0.06);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.page-proje .p-pdf__a:hover {
  background: #fff;
  border-color: rgba(196, 165, 116, 0.45);
  box-shadow: 0 4px 20px rgba(44, 24, 16, 0.08);
  transform: translateY(-1px);
}
.page-proje .p-pdf__ico {
  flex: 0 0 auto;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #991b1b;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  border: 1px solid rgba(185, 28, 28, 0.4);
  border-radius: 4px;
  background: rgba(254, 226, 226, 0.7);
}
.page-proje .p-pdf__t {
  text-align: left;
  font-weight: 500;
}
