/* Dare Photography Gallery — gallery.css v2.0 */

/* ─── Variables ─── */
.dpg-wrap {
  --cr: #faf8f5;
  --ch: #1e1c1a;
  --gr: #8a8480;
  --gd: #c4a050;
  --gdl: #e8d5a0;
  --gdd: #8a6f2e;
  --dk: #0d0b09;
  --ov: rgba(8,6,4,0.98);
  --rd: #c0392b;
  font-family: 'Montserrat', sans-serif;
}

/* ─── Password Gate ─── */
.dpg-gate {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--cr);
}

.dpg-gate-card {
  background: #fff;
  border: 1px solid var(--gdl);
  border-radius: 8px;
  padding: 40px 44px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 40px rgba(196,160,80,0.1);
}

.dpg-gate-logo {
  height: 70px;
  width: auto;
  margin-bottom: 20px;
}

.dpg-gate-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 26px !important;
  font-weight: 300 !important;
  color: var(--ch) !important;
  margin: 0 0 6px !important;
  border: none !important;
  padding: 0 !important;
}

.dpg-gate-sub {
  font-size: 12px;
  color: var(--gr);
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}

.dpg-gate-msg {
  font-size: 13px;
  color: var(--gr);
  line-height: 1.7;
  margin: 0 0 22px;
}

.dpg-gate-err {
  font-size: 12px;
  color: var(--rd);
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

.dpg-gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dpg-gate-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gdl);
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--ch);
  background: var(--cr);
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
  letter-spacing: 0.1em;
}

.dpg-gate-input:focus { border-color: var(--gd); }

.dpg-gate-btn {
  padding: 12px 20px;
  background: var(--ch);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.dpg-gate-btn:hover { background: var(--gd); }

.dpg-gate-help {
  font-size: 11px;
  color: var(--gr);
  margin: 14px 0 0;
  opacity: 0.7;
}

/* ─── Hero ─── */
.dpg-hero {
  text-align: center;
  padding: 48px 20px 36px;
  background: #fff;
  border-bottom: 1px solid #ede8df;
}

.dpg-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gd);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.dpg-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(26px, 5vw, 52px) !important;
  font-weight: 300 !important;
  color: var(--ch) !important;
  line-height: 1.1 !important;
  margin: 0 0 10px !important;
  border: none !important;
  padding: 0 !important;
}

.dpg-meta {
  font-size: 11px;
  color: var(--gr);
  letter-spacing: 0.14em;
  margin: 0 0 4px;
}

.dpg-divider {
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gd), transparent);
  margin: 14px auto;
}

.dpg-message {
  font-size: 13px;
  color: var(--gr);
  line-height: 1.75;
  max-width: 460px;
  margin: 0 auto;
}

/* ─── Tabs ─── */
.dpg-tabs-wrap {
  background: #fff;
  border-bottom: 1px solid #ede8df;
  overflow-x: auto;
  scrollbar-width: none;
}
.dpg-tabs-wrap::-webkit-scrollbar { display: none; }

.dpg-tabs {
  display: flex;
  padding: 0 24px;
  min-width: max-content;
}

.dpg-tab {
  padding: 13px 18px;
  border: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gr);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.dpg-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--gd);
  transition: left 0.25s, right 0.25s;
}

.dpg-tab:hover { color: var(--ch); }
.dpg-tab.active { color: var(--ch); }
.dpg-tab.active::after { left: 18px; right: 18px; }

.dpg-tab-cnt {
  font-size: 8px;
  opacity: 0.5;
  margin-left: 3px;
}

/* ─── Loading / Error ─── */
.dpg-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 80px 20px;
  color: var(--gr);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.dpg-spinner {
  width: 38px; height: 38px;
  border: 2px solid rgba(196,160,80,0.2);
  border-top-color: var(--gd);
  border-radius: 50%;
  animation: dpg-spin 0.8s linear infinite;
}

@keyframes dpg-spin { to { transform: rotate(360deg); } }

.dpg-error {
  margin: 24px;
  padding: 20px 24px;
  background: #fff5f5;
  border: 1px solid #fcc;
  border-radius: 4px;
  color: var(--rd);
  font-size: 13px;
  line-height: 1.6;
}

.dpg-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--gr);
  font-size: 13px;
}

/* ─── Gallery ─── */
.dpg-gallery { padding: 28px 20px 64px; max-width: 1400px; margin: 0 auto; }

.dpg-gallery-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.dpg-section-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 26px !important;
  font-weight: 300 !important;
  color: var(--ch) !important;
  margin: 0 !important;
  border: none !important;
  padding: 0 !important;
}

.dpg-section-count {
  font-size: 10px;
  color: var(--gr);
  letter-spacing: 0.1em;
}

/* 3-col masonry */
.dpg-grid { columns: 3; column-gap: 10px; }
@media (max-width: 768px) { .dpg-grid { columns: 2; } }
@media (max-width: 480px) { .dpg-grid { columns: 1; } }

.dpg-item {
  break-inside: avoid;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 3px;
  background: #e8e4dc;
}

.dpg-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  vertical-align: bottom;
}

.dpg-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,5,2,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 12px;
}

.dpg-item:hover img { transform: scale(1.05); }
.dpg-item:hover .dpg-ov { opacity: 1; }

.dpg-num {
  font-size: 9px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  font-weight: 600;
}

.dpg-acts { display: flex; gap: 6px; }

.dpg-ibt {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.28);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  color: white;
}

.dpg-ibt:hover { background: rgba(255,255,255,0.28); transform: scale(1.08); }
.dpg-ibt svg { width: 13px; height: 13px; }

/* ─── Lightbox ─── */
.dpg-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--ov);
  flex-direction: column;
}

.dpg-lb.open { display: flex; }

.dpg-lb-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

.dpg-lb-left { display: flex; align-items: center; gap: 10px; }
.dpg-lb-logo { height: 32px; width: auto; }

.dpg-lb-info { display: flex; flex-direction: column; gap: 1px; }

.dpg-lb-section {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.dpg-lb-ctr {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
}

.dpg-lb-right { display: flex; align-items: center; gap: 8px; }

.dpg-lb-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  background: transparent;
  border: 1px solid rgba(196,160,80,0.4);
  color: var(--gd);
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s; border-radius: 2px;
}

.dpg-lb-btn:hover { background: rgba(196,160,80,0.15); border-color: var(--gd); }
.dpg-lb-btn svg { width: 12px; height: 12px; }

.dpg-lb-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}

.dpg-lb-close:hover { background: rgba(255,255,255,0.14); color: white; }
.dpg-lb-close svg { width: 14px; height: 14px; }

.dpg-lb-body {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 14px 64px;
  overflow: hidden;
}

@media (max-width: 600px) { .dpg-lb-body { padding: 10px 48px; } }
@media (max-width: 480px) { .dpg-lb-body { padding: 10px 42px; } }

.dpg-lb-img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  min-height: min(560px, 62vh);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 3px;
  transition: opacity 0.12s ease;
  box-shadow: 0 12px 80px rgba(0,0,0,0.7);
  display: block;
}

@media (max-width: 600px) { .dpg-lb-img { min-height: 0; max-height: calc(100vh - 170px); } }

.dpg-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.8);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 2;
}

.dpg-lb-nav:hover { background: rgba(196,160,80,0.22); border-color: var(--gd); color: white; }
.dpg-lb-nav svg { width: 16px; height: 16px; }
.dpg-lb-prev { left: 11px; }
.dpg-lb-next { right: 11px; }

@media (max-width: 480px) {
  .dpg-lb-nav { width: 34px; height: 34px; }
  .dpg-lb-prev { left: 5px; }
  .dpg-lb-next { right: 5px; }
}

.dpg-lb-ftr {
  padding: 9px 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; gap: 10px;
}

.dpg-lb-fn {
  font-size: 9px; color: rgba(255,255,255,0.2);
  font-family: monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 180px;
}

.dpg-lb-save {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; transition: all 0.2s; border-radius: 2px;
}

.dpg-lb-save:hover { background: rgba(255,255,255,0.08); color: white; }
.dpg-lb-save svg { width: 12px; height: 12px; }

/* ─── Share Sheet ─── */
.dpg-ss {
  display: none;
  position: fixed; inset: 0;
  z-index: 100000;
  background: rgba(0,0,0,0.75);
  align-items: flex-end; justify-content: center;
}

@media (min-width: 600px) { .dpg-ss { align-items: center; } }
.dpg-ss.open { display: flex; }

.dpg-ss-card {
  background: #151210;
  border: 1px solid rgba(196,160,80,0.2);
  border-radius: 12px 12px 0 0;
  padding: 22px 22px 28px;
  width: 100%; max-width: 420px;
  animation: dpg-su 0.26s cubic-bezier(0.34,1.2,0.64,1);
}

@media (min-width: 600px) {
  .dpg-ss-card { border-radius: 10px; padding: 28px 32px; animation: dpg-fs 0.2s ease; }
}

@keyframes dpg-su  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes dpg-fs  { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.dpg-ss-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 5px;
}

.dpg-ss-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; color: rgba(255,255,255,0.8); font-style: italic;
}

.dpg-ss-logo { height: 32px; width: auto; }

.dpg-ss-x {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: none;
  color: rgba(255,255,255,0.5); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.dpg-ss-x svg { width: 11px; height: 11px; }

.dpg-ss-div { height: 1px; background: rgba(255,255,255,0.07); margin: 10px 0 14px; }

.dpg-ss-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 300; color: #faf8f5;
  margin: 0 0 3px;
}

.dpg-ss-sub {
  font-size: 10px; color: var(--gr);
  letter-spacing: 0.1em; margin: 0 0 16px;
}

.dpg-ss-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 7px; margin-bottom: 7px;
}

@media (max-width: 360px) { .dpg-ss-grid { grid-template-columns: repeat(2,1fr); } }

.dpg-ss-opt {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 11px 8px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #faf8f5; font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
  user-select: none;
}

.dpg-ss-opt:hover { background: rgba(255,255,255,0.09); border-color: rgba(196,160,80,0.4); transform: translateY(-2px); }
.dpg-ss-opt:active { transform: scale(0.96); }

.dpg-ss-ic { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.dpg-ss-ic svg { width: 17px; height: 17px; }

.dpg-wa .dpg-ss-ic { background: rgba(37,211,102,0.15); color: #25D366; }
.dpg-em .dpg-ss-ic { background: rgba(196,160,80,0.15); color: var(--gd); }
.dpg-fb .dpg-ss-ic { background: rgba(24,119,242,0.15); color: #1877F2; }
.dpg-tw .dpg-ss-ic { background: rgba(0,0,0,0.25); color: #e0e0e0; }
.dpg-ig .dpg-ss-ic { background: rgba(225,48,108,0.15); color: #E1306C; }
.dpg-dl .dpg-ss-ic { background: rgba(196,160,80,0.15); color: var(--gdl); }
.dpg-cp .dpg-ss-ic { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }

.dpg-ss-dismiss {
  width: 100%; padding: 10px; text-align: center;
  font-size: 11px; color: var(--gr); cursor: pointer;
  font-family: 'Montserrat', sans-serif; background: none; border: none;
  margin-top: 2px;
}
.dpg-ss-dismiss:hover { color: #faf8f5; }

/* ─── Toast ─── */
.dpg-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: #1e1c1a; color: #faf8f5;
  padding: 9px 20px; border-radius: 40px;
  font-size: 11px; letter-spacing: 0.08em;
  border: 1px solid var(--gd);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none; z-index: 100001; white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
}

.dpg-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
