/* Wesele Joanny i Tomasza - Stylesheet */

:root {
  --primary-gold: #e4c07d;
  --primary-gold-hover: #d2a758;
  --text-dark: #3a3a3a;
  --text-muted: #666666;
  --text-light: #ffffff;
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-footer: #fbfaf8;
  --border-color: #f0ede6;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-gold-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Banner */
.site-header {
  background-color: #ffffff;
  width: 100%;
  border-bottom: 1px solid #f5f2eb;
}

.banner-wrapper {
  max-width: 1024px;
  margin: 0 auto;
  padding: 15px 15px 0 15px;
  text-align: center;
}

.banner-img {
  width: 100%;
  max-width: 1024px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Navigation bar for subpages */
.site-nav {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 700;
}

.nav-brand:hover {
  color: var(--primary-gold-hover);
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-gold);
  background: #fdfaf4;
}

/* Section styling */
.section {
  padding: 40px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 30px;
}

/* Home Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.card-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  aspect-ratio: 16 / 10;
  cursor: pointer;
  background-color: #222;
}

.card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.4) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  transition: background 0.4s ease;
}

.card-item:hover img {
  transform: scale(1.06);
  opacity: 0.9;
}

.card-item:hover .card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-subtitle {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  color: #f1f1f1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* CTA Button Section */
.cta-section {
  text-align: center;
  margin: 30px 0 50px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-gold);
  color: #000000;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 16px 42px;
  border-radius: 4px;
  border: 1px solid var(--primary-gold);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(228, 192, 125, 0.35);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #3a3a3a;
  border-color: #3a3a3a;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(58, 58, 58, 0.25);
  transform: translateY(-2px);
}

/* Photographer Section */
.photographer-section {
  text-align: center;
  padding: 40px 0 60px;
  border-top: 1px solid var(--border-color);
}

.photographer-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.photographer-avatar-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.photographer-avatar-link:hover {
  transform: scale(1.05);
}

.photographer-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border: 3px solid #ffffff;
  outline: 2px solid var(--primary-gold);
}

/* Gallery Grid */
.gallery-intro {
  text-align: center;
  margin: 20px 0 35px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
  margin-bottom: 50px;
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3 / 2;
  background-color: #f0f0f0;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* Download page styles */
.download-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  background: #fbfaf8;
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.toolbar-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid #dcd7ce;
  padding: 8px 18px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #f0ede6;
}

.download-card {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.download-card.selected {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 2px var(--primary-gold);
}

.download-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
}

.download-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-meta {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.download-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  color: var(--text-dark);
}

.download-checkbox-label input[type="checkbox"] {
  accent-color: var(--primary-gold);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.btn-icon-download {
  color: var(--primary-gold-hover);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 1.1rem;
}

.btn-icon-download:hover {
  color: var(--text-dark);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-img-wrapper {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-radius: 2px;
}

.lightbox-btn {
  position: absolute;
  background: rgba(30, 30, 30, 0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  user-select: none;
}

.lightbox-btn:hover {
  background: rgba(228, 192, 125, 0.9);
  color: #000;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #eee;
  font-size: 0.95rem;
  background: rgba(0,0,0,0.6);
  padding: 6px 16px;
  border-radius: 20px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-footer);
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-credits {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #999;
}
