:root {
  --wine: #6f3e45;
  --rose: #a06e76;
  --paper: #fffaf7;
  --ink: #34262a;
}

html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
button, input, textarea { font-family: "Work Sans", Arial, sans-serif; }

/* Orijinal projenin tek sayfalık nişan hero görünümü */
.single-page { min-height: 100svh; }
.single-page .fh5co-cover {
  height: 100svh;
  min-height: 700px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left top;
}
.single-page .fh5co-cover .overlay { background: rgba(147, 147, 147, .5); }
.single-page .fh5co-cover .display-t,
.single-page .fh5co-cover .display-tc { height: 100svh; min-height: 700px; }
.single-page .fh5co-cover .display-tc { padding-top: 32px; }
.single-page #fh5co-header .display-tc h1 {
  margin: 0;
  font-family: "Amsterdam", Arial, serif;
  font-size: clamp(34px, 6vw, 65px);
  line-height: 1.5;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}
.single-page #fh5co-header .display-tc h2 {
  margin: 18px 0 0;
  color: #fff;
  font-family: "Engagement", cursive;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 400;
}
.single-page #fh5co-header .display-tc h2 small { color: #fff; font-size: .92em; }
.single-page .fingerprint { width: 190px; max-width: 46vw; height: auto; }
.single-page #fh5co-header .display-tc .hero-button {
  padding: 18px 22px;
  background: #fff !important;
  color: #646464 !important;
  border: 0 !important;
  border-radius: 0;
  font-size: 15px;
  font-family: "Sofia Sans Condensed", "Work Sans", sans-serif;
  text-transform: uppercase;
  box-shadow: none;
  touch-action: manipulation;
}
.single-page #fh5co-header .display-tc .hero-button:hover,
.single-page #fh5co-header .display-tc .hero-button:focus {
  box-shadow: 0 14px 30px -15px rgba(0, 0, 0, .75) !important;
}

/* Orijinal FlipClock görünümü; mobilde taşmayacak şekilde yerel uygulama */
.flipTimebox {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin: 30px auto 36px;
  color: #fff;
}
.flip-unit { min-width: 64px; text-align: center; }
.flip-unit > span {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-family: "Sofia Sans Condensed", "Work Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
}
.flip-unit strong { display: flex; justify-content: center; gap: 3px; }
.flip-unit strong i {
  position: relative;
  display: grid;
  place-items: center;
  width: 29px;
  height: 48px;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(#292929 49%, #191919 50%);
  color: #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .55);
  font: normal 34px/1 Georgia, serif;
  text-shadow: 0 1px 1px #000;
}
.flip-unit strong i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid #050505;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.flipTimebox > b { padding-bottom: 10px; font: 700 25px/1 Georgia, serif; }

/* Mobil fotoğraf yükleme paneli */
.upload-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}
.upload-modal.is-open { visibility: visible; pointer-events: auto; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(22, 10, 14, .7);
  opacity: 0;
  transition: opacity .25s;
  z-index: 0;
}
.upload-modal.is-open .modal-backdrop { opacity: 1; }
.upload-sheet {
  position: relative;
  width: min(620px, 100%);
  max-height: 94dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: 22px 22px 0 0;
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -15px 60px rgba(0, 0, 0, .25);
  transform: translateY(105%);
  transition: transform .3s ease;
  outline: 0;
  z-index: 1;
}
.upload-modal.is-open .upload-sheet { transform: translateY(0); }
.sheet-handle { width: 46px; height: 5px; margin: -8px auto 17px; border-radius: 5px; background: #d7cac7; }
.sheet-close {
  position: absolute;
  right: 16px;
  top: 15px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1e5e2;
  color: var(--wine);
  font-size: 27px;
  line-height: 35px;
}
.sheet-heading { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.sheet-heading img { width: 42px; height: 42px; }
.sheet-heading span { color: var(--rose); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.sheet-heading h2 { margin: 1px 0 0; color: var(--wine); font-family: "Sacramento", cursive; font-size: 36px; line-height: 1; }
.sheet-intro { margin: 15px 0; color: #66575a; font-size: 13px; line-height: 1.55; }
.photo-form label:not(.drop-zone), .login-card label {
  display: block;
  margin: 13px 0 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.photo-form > input, .photo-form textarea, .login-card input {
  box-sizing: border-box;
  width: 100%;
  padding: 13px;
  border: 1px solid #dfd3cf;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.drop-zone {
  display: block;
  margin-top: 17px;
  padding: 22px 12px;
  border: 2px dashed #c8a8ad;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}
.drop-zone.dragging { background: #f5e9e8; border-color: var(--wine); }
.drop-zone i, .drop-zone strong, .drop-zone span { display: block; }
.drop-zone i { color: var(--rose); font-size: 30px; }
.drop-zone span { margin-top: 5px; color: #786a6d; font-size: 11px; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-summary { min-height: 19px; margin: 8px 0; color: var(--wine); font-size: 12px; }
.file-summary.error { color: #9b2525; }
.upload-submit, .login-card button {
  width: 100%;
  min-height: 52px;
  padding: 14px;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.button-loading { display: none; }
.photo-form.is-submitting .button-label { display: none; }
.photo-form.is-submitting .button-loading { display: inline; }
.photo-form.is-submitting .upload-submit { opacity: .7; }
.privacy-copy { margin: 14px 0 0; color: #857578; font-size: 11px; text-align: center; }
.upload-alert { margin: 12px 0; padding: 11px; border-radius: 5px; font-size: 13px; }
.upload-alert.success { background: #e7f5ec; color: #24683c; }
.upload-alert.error, .validation { background: #fbe8e8; color: #9b2525; }
body.modal-open { overflow: hidden; touch-action: none; }

/* Yönetici ekranları */
.admin-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: linear-gradient(135deg, #2e161d, var(--wine)); }
.login-card { box-sizing: border-box; width: min(440px, 100%); padding: 42px; border-radius: 10px; background: #fff; box-shadow: 0 25px 80px #17090d; text-align: center; }
.login-card img { width: 80px; }
.login-card h1, .gallery-admin h1 { color: var(--wine); font-family: "Sacramento", cursive; }
.login-card h1 { margin-bottom: 8px; font-size: 48px; }
.login-card form { text-align: left; }
.login-card .back-link { display: block; text-align: left; }
.back-link { color: var(--rose); }
.field-validation-error { color: #9b2525; font-size: 12px; }
.gallery-admin { box-sizing: border-box; min-height: 100vh; padding: 40px 5%; background: #f8f2ef; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 35px; }
.admin-header h1 { margin: 12px 0 0; font-size: 48px; }
.admin-header button, .photo-actions button { padding: 10px 16px; border: 0; border-radius: 5px; background: var(--wine); color: #fff; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.gallery-view-switch { display: inline-flex; gap: 5px; margin-bottom: 32px; padding: 5px; border-radius: 10px; background: #eadfe1; }
.gallery-view-switch button { padding: 10px 17px; border: 0; border-radius: 7px; background: transparent; color: #6f5b5f; font-weight: 600; }
.gallery-view-switch button.active { background: #fff; color: var(--wine); box-shadow: 0 3px 12px rgba(70, 38, 45, .1); }
.gallery-view-switch button span { margin-left: 4px; font-size: 10px; }
.album-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 34px 28px; }
.album-card { min-width: 0; padding: 12px 12px 16px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 10px 32px rgba(60, 30, 35, .1); color: var(--ink); text-align: left; transition: transform .2s, box-shadow .2s; }
.album-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(60, 30, 35, .16); }
.photo-stack { position: relative; display: block; height: 205px; margin-bottom: 14px; }
.stack-photo, .stack-file { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); border: 5px solid #fff; border-radius: 8px; object-fit: cover; box-shadow: 0 5px 14px rgba(35, 20, 23, .25); }
.stack-photo-0 { z-index: 3; transform: rotate(-1deg); }
.stack-photo-1 { z-index: 2; transform: translate(-5px, -5px) rotate(-5deg); }
.stack-photo-2 { z-index: 1; transform: translate(6px, -4px) rotate(5deg); }
.stack-file { display: grid; place-items: center; background: #eee4e5; color: var(--rose); font-size: 52px; }
.photo-stack > strong { position: absolute; right: 2px; bottom: 2px; z-index: 4; display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 7px; border: 3px solid #fff; border-radius: 20px; background: var(--wine); color: #fff; font-size: 12px; }
.album-info { display: block; padding: 0 5px; }
.album-info b, .album-info small { display: block; }
.album-info b { color: var(--wine); font-size: 15px; }
.album-info small { margin-top: 3px; color: #8d7c7f; font-size: 11px; }
.all-files-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; border-bottom: 1px solid #ded1d3; }
.all-files-heading h2 { margin-bottom: 12px; color: var(--wine); font-size: 22px; }
.all-files-heading span { color: #8a777b; font-size: 12px; }
.album-modal { position: fixed; inset: 0; z-index: 11000; display: grid; place-items: center; padding: 24px; visibility: hidden; pointer-events: none; }
.album-modal.is-open { visibility: visible; pointer-events: auto; }
.album-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(24, 12, 16, .78); opacity: 0; transition: opacity .2s; }
.album-modal.is-open .album-backdrop { opacity: 1; }
.album-dialog { position: relative; z-index: 1; box-sizing: border-box; width: min(1050px, 100%); max-height: calc(100dvh - 48px); padding: 28px; overflow-y: auto; border-radius: 14px; background: #f8f2ef; transform: scale(.96); opacity: 0; transition: transform .2s, opacity .2s; }
.album-modal.is-open .album-dialog { transform: scale(1); opacity: 1; }
.album-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.album-dialog > header span { color: var(--rose); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.album-dialog > header h2 { margin: 2px 0; color: var(--wine); font-size: 24px; }
.album-dialog > header p { margin: 0; color: #8a777b; font-size: 12px; }
.album-close { flex: 0 0 auto; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #eadfe1; color: var(--wine); font-size: 28px; line-height: 39px; }
body.album-open { overflow: hidden; }
.gallery-filters { display: flex; gap: 10px; margin: 0 0 30px; padding: 4px 0 12px; overflow-x: auto; scrollbar-width: thin; }
.gallery-filters button { flex: 0 0 auto; min-width: 112px; padding: 10px 13px; border: 1px solid #dbcdd0; border-radius: 8px; background: #fff; color: #69575b; text-align: left; }
.gallery-filters button.active { border-color: var(--wine); background: var(--wine); color: #fff; }
.gallery-filters button span { margin-left: 5px; padding: 2px 6px; border-radius: 20px; background: rgba(128, 91, 98, .12); font-size: 10px; }
.gallery-filters button.active span { background: rgba(255, 255, 255, .2); }
.gallery-filters button small { display: block; margin-top: 4px; color: inherit; font-size: 10px; opacity: .75; }
.upload-group { margin-bottom: 45px; }
.upload-group[hidden] { display: none; }
.group-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 15px; padding-bottom: 12px; border-bottom: 1px solid #ded1d3; }
.group-header span { color: var(--rose); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.group-header h2 { margin: 3px 0 0; color: var(--ink); font-size: 20px; }
.group-header strong { color: #8a777b; font-size: 12px; }
.photo-card { overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 8px 30px rgba(60, 30, 35, .1); }
.photo-card > a { display: block; height: 260px; background: #eee; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card video { width: 100%; height: 100%; object-fit: contain; background: #171717; }
.file-preview { display: grid; place-content: center; gap: 10px; width: 100%; height: 100%; color: var(--wine); text-align: center; }
.file-preview i { font-size: 48px; }
.file-preview span { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.photo-meta { padding: 18px; }
.photo-meta h2 { margin: 0; color: var(--wine); font-size: 20px; }
.photo-meta time, .photo-meta small { color: #888; font-size: 11px; }
.photo-meta p { margin: 12px 0; font-family: Georgia, serif; font-style: italic; }
.photo-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; }
.photo-actions form { margin: 0; }
.photo-actions a { color: var(--wine); font-weight: 600; }
.photo-actions button { padding: 7px 12px; background: #8f3535; }
.empty-gallery { padding: 100px; text-align: center; }
.empty-gallery i { color: #c9aeb3; font-size: 60px; }

@media (min-width: 768px) {
  .upload-modal { align-items: center; padding: 25px; }
  .upload-sheet { max-height: 90vh; padding: 30px 38px; border-radius: 16px; }
  .sheet-handle { display: none; }
}

@media (max-width: 767px) {
  .single-page .fh5co-cover,
  .single-page .fh5co-cover .display-t,
  .single-page .fh5co-cover .display-tc { min-height: 620px; }
  .single-page .fh5co-cover { background-position: left top; }
  .single-page .fh5co-cover .display-tc { padding: 18px 7px 25px; }
  .single-page #fh5co-header .display-tc h1 { font-size: clamp(25px, 8.6vw, 36px); }
  .single-page .fingerprint { width: 155px; max-width: 43vw; }
  .single-page #fh5co-header .display-tc h2 { margin-top: 12px; font-size: 16px; }
  .flipTimebox { gap: 3px; margin: 19px auto 25px; }
  .flip-unit { min-width: 57px; }
  .flip-unit > span { font-size: 10px; }
  .flip-unit strong { gap: 2px; }
  .flip-unit strong i { width: 26px; height: 43px; font-size: 29px; }
  .flipTimebox > b { padding-bottom: 9px; font-size: 20px; }
  .single-page #fh5co-header .display-tc .hero-button { padding: 15px 18px; font-size: 13px; }
  .upload-sheet { padding-right: 20px; padding-left: 20px; }
  .sheet-heading h2 { font-size: 32px; }
  .gallery-admin { padding: 25px 18px; }
  .admin-header { align-items: flex-start; }
  .admin-header h1 { font-size: 38px; }
  .album-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .album-card { padding: 8px 8px 12px; }
  .photo-stack { height: 150px; }
  .album-info b { font-size: 13px; }
  .album-modal { align-items: end; padding: 0; }
  .album-dialog { width: 100%; max-height: 94dvh; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .album-dialog > header h2 { font-size: 19px; }
  .album-dialog .admin-grid { grid-template-columns: 1fr; }
  .gallery-filters { margin-right: -18px; }
  .group-header h2 { font-size: 17px; }
}

@media (max-height: 700px) and (max-width: 767px) {
  .single-page .fingerprint { width: 112px; }
  .single-page #fh5co-header .display-tc h2 { margin-top: 8px; }
  .flipTimebox { margin: 13px auto 18px; }
  .flip-unit strong i { height: 38px; font-size: 26px; }
}
/* Private Google Drive connection status in the admin gallery. */
.drive-status{max-width:1180px;margin:0 auto 22px;padding:15px 18px;border:1px solid rgba(255,255,255,.12);border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:rgba(255,255,255,.05)}
.drive-status div{display:flex;flex-direction:column;gap:3px}.drive-status strong{font-size:15px}.drive-status span{font-size:13px;opacity:.7}.drive-status a{white-space:nowrap;padding:10px 15px;border-radius:999px;background:#fff;color:#181714;text-decoration:none;font-weight:700;font-size:13px}.drive-status.is-connected{border-color:rgba(91,190,117,.45)}
.drive-notice{max-width:1180px;margin:0 auto 14px;padding:12px 16px;border-radius:12px;background:#eee8da;color:#27231b;font-size:14px}
@media(max-width:600px){.drive-status{align-items:flex-start;flex-direction:column}.drive-status a{width:100%;text-align:center}}
