/* ==============================================
   Photography Section Styles
   ============================================== */

/* Section header */
.photography-header {
  text-align: center;
  margin-bottom: 3rem;
}

.photography-header h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-accent-orange);
  text-shadow: 0 0 8px var(--shadow-orange-light);
}

.photography-header p {
  color: var(--color-text-lighter-gray);
  font-size: 1.25rem;
}

/* Section wrapper for all photo categories */
.photo-section {
  margin: 5rem 0;
  padding-top: 1rem;
  border-top: 2px solid var(--color-accent-orange-light);
}

/* Section headings */
.photo-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-accent-orange);
  text-align: center;
}

.section-description {
  font-size: 1.1rem;
  color: var(--color-text-lighter-gray);
  max-width: 700px;
  margin: 0 auto 2rem auto;
  text-align: center;
  line-height: 1.5;
  font-weight: 400;
}

/* ==============================================
   Portrait Section
   ============================================== */
.portrait-section {
  background-color: rgba(107, 114, 128, 0.2);
  color: var(--color-text-light);
  padding: 5rem 1.5rem;
  position: relative;
  z-index: 2;
}

.portrait-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--color-accent-orange);
}

.portrait-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-accent-orange-light);
}

/* Portrait grid layout */
.portrait-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* left and right columns */
  grid-template-rows: repeat(2, auto); /* two stacked rows on left */
  gap: 1rem;
  align-items: stretch;
}

/* Left horizontal images */
.portrait-layout .horizontal-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Right portrait image spanning both rows */
.portrait-layout .portrait-img {
  grid-row: 1 / span 2; /* spans both rows */
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for all images */
.portrait-layout img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

/* ==============================================
   Events Section
   ============================================== */
.events-section {
  background-color: var(--color-bg-gray-dark); /* correct Events background */
  color: var(--color-text-light);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.events-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--color-accent-orange);
}

.events-section .section-description {
  color: var(--color-text-lighter-gray);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  line-height: 1.5;
}

/* Events grid using portrait-layout but with columns swapped */
.events-section .portrait-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two columns */
  grid-template-rows: repeat(2, auto);
  gap: 1rem;
  align-items: stretch;
  direction: rtl; /* swap left/right columns */
}

.events-section .portrait-layout img {
  direction: ltr; /* keep images from flipping */
}

.events-section .horizontal-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.events-section .portrait-img {
  grid-row: 1 / span 2;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.events-section img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

/* ==============================================
   Real Estate Section
   ============================================== */
.real-estate-section {
  background-color: var(--color-bg-soft-blue-gray); /* original soft blue-gray */
  color: var(--color-text-white);
  padding: 5rem 1.5rem;
  position: relative;
  z-index: 2;
}

.real-estate-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

.real-estate-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Real Estate grid for images side by side */
.real-estate-section .photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two columns side by side */
  gap: 1rem;
  margin: 0 auto;
}

.real-estate-section .photo-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.real-estate-section .photo-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

/* ==============================================
   Back link
   ============================================== */
.back-link {
  display: inline-block;
  margin-top: 3rem;
  color: var(--color-accent-orange);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--color-accent-orange-light);
  text-decoration: underline;
}

/* ==============================================
   Responsive tweaks
   ============================================== */
@media (max-width: 768px) {
  .container {
    padding: 1.25rem 1rem;
  }

  .photography-header h1 {
    font-size: 2.25rem;
  }

  .photo-section h2,
  .events-section h2,
  .portrait-section h2,
  .real-estate-section h2 {
    font-size: 2rem;
  }

  /* Force grids into one column on mobile */
  .photo-grid,
  .portrait-layout,
  .events-section .portrait-layout,
  .real-estate-section .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .photo-grid img.full-row,
  .portrait-layout .portrait-img,
  .events-section .portrait-img,
  .real-estate-section .photo-grid img {
    width: 100%;
    grid-row: auto;
  }
}