
/* ============================================================
   PHOTO GRID — SIMPLE UNIFORM GRID (CAT SECTIONS)
   ============================================================ */

.cat-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.cat-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.cat-label-num {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #c6a43b;
}

.cat-label-name {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1a1a1a;
  white-space: nowrap;
}

.cat-label-line {
  flex: 1;
  height: 1px;
  background: #ddd;
}

.sub-label {
  margin-bottom: 18px;
}

.sub-name {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  font-weight: 500;
}

.divider {
  max-width: 1200px;
  margin: 56px auto;
  padding: 0 32px;
}

.divider hr {
  border: none;
  border-top: 1px solid #e5e5e5;
}

/* --- Simple uniform grid: every image same size, clean rows --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 8px;
  align-items: start;
}

.photo-grid.g2 {
  grid-template-columns: repeat(2, 1fr);
}

.photo-grid.g4 {
  grid-template-columns: repeat(4, 1fr);
}

.pc {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #f2f0eb;
  aspect-ratio: 4 / 3;
}

.pc.r34 {
  aspect-ratio: 3 / 4;
}

.pc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.pc:hover img {
  transform: scale(1.05);
}

/* Floor plan grid: show full drawing, no crop */
.photo-grid.g4 .pc img {
  object-fit: contain;
  background: #fff;
  padding: 12px;
}

@media (max-width: 992px) {
  .photo-grid.g3,
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-grid.g4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cat-label-name { font-size: 1.3rem; }
  .photo-grid,
  .photo-grid.g2,
  .photo-grid.g3,
  .photo-grid.g4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
}

@media (max-width: 480px) {
  .photo-grid,
  .photo-grid.g2,
  .photo-grid.g3,
  .photo-grid.g4 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .divider { margin: 36px auto; }
  .cat-section { padding: 0 16px; }
}

/* ============================================================
   END PHOTO GRID
   ============================================================ */


.gallery-hero {
  padding: 160px 0 100px;
  background: #1a1a1a;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.gallery-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.gallery-hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.hero-desc {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin: 0 0 32px 0;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: 0.3s;
  cursor: pointer;
}

.hero-location:hover {
  border-bottom-color: #c6a43b;
  gap: 20px;
}

.hero-location i {
  transition: 0.3s;
}

.hero-location:hover i {
  transform: translateX(6px);
}

.gallery-day {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 32px;
  background: transparent;
}

.gallery-day--image-only,
.gallery-inspired--image-only {
  grid-template-columns: 1fr;
}

.gallery-day--image-only .day-image,
.gallery-inspired--image-only .inspired-image {
  min-height: 480px;
}

.day-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}

.day-content h2 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  letter-spacing: 1px;
}

.day-content p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: #555;
}

.day-image {
  overflow: hidden;
  border-radius: 12px;
  min-height: 400px;
}

.day-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-inspired {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 32px;
}

.inspired-image {
  overflow: hidden;
  border-radius: 12px;
  min-height: 400px;
}

.inspired-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inspired-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}

.inspired-content h2 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  letter-spacing: 1px;
}

.inspired-content p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: #555;
}

.gallery-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 32px;
}

.gallery-grid-three .grid-item {
  overflow: hidden;
  border-radius: 12px;
  min-height: 300px;
}

.gallery-grid-three .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 32px;
}

.gallery-grid-two .grid-item {
  overflow: hidden;
  border-radius: 12px;
  min-height: 350px;
}

.gallery-grid-two .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-footer-banner {
  background: #1a1a1a;
  padding: 60px 0 80px;
  text-align: center;
}

.gallery-footer-banner h2 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 3px;
  margin: 0;
}

.gallery-cta {
  text-align: center;
  padding: 60px 32px 80px;
  background: #f8f6f0;
}

.gallery-cta h2 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.gallery-cta p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 32px;
  font-weight: 300;
}

.gallery-cta .btn-cta {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  padding: 16px 48px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.4s ease;
  border-radius: 40px;
  border: 2px solid #1a1a1a;
}

.gallery-cta .btn-cta:hover {
  background: transparent;
  color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
  .gallery-hero-content h1 {
    font-size: 3.2rem;
  }
  .day-content h2,
  .inspired-content h2 {
    font-size: 2.4rem;
  }
  .gallery-footer-banner h2 {
    font-size: 3rem;
  }
  .day-image {
    min-height: 320px;
  }
  .inspired-image {
    min-height: 320px;
  }
  .gallery-grid-three {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid-three .grid-item {
    min-height: 260px;
  }
  .gallery-grid-three .grid-item:last-child {
    grid-column: span 2;
  }
  .gallery-grid-two .grid-item {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .gallery-hero {
    padding: 130px 0 60px;
    min-height: auto;
  }
  
  .gallery-hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
    text-align: center;
  }
  
  .gallery-hero-content h1 {
    font-size: 2.6rem;
    line-height: 1.1;
  }
  
  .hero-desc {
    font-size: 0.85rem;
    margin: 0 auto 16px;
  }
  
  .hero-location {
    justify-content: center;
  }

  .gallery-day {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px auto;
    padding: 0 14px;
  }
  
  .day-content {
    text-align: center;
    padding: 0;
    order: 1;
  }
  
  .day-content h2 {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .day-content p {
    font-size: 0.85rem;
  }
  
  .day-image {
    min-height: 200px;
    border-radius: 10px;
    order: 0;
  }

  .gallery-inspired {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px auto;
    padding: 0 14px;
  }
  
  .inspired-content {
    text-align: center;
    padding: 0;
    order: 1;
  }
  
  .inspired-content h2 {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .inspired-content p {
    font-size: 0.85rem;
  }
  
  .inspired-image {
    min-height: 200px;
    border-radius: 10px;
    order: 0;
  }

  .gallery-grid-three {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 40px auto;
    padding: 0 14px;
  }
  
  .gallery-grid-three .grid-item {
    min-height: 220px;
    border-radius: 10px;
  }
  
  .gallery-grid-three .grid-item:last-child {
    grid-column: span 1;
  }

  .gallery-grid-two {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0 auto 40px;
    padding: 0 14px;
  }
  
  .gallery-grid-two .grid-item {
    min-height: 220px;
    border-radius: 10px;
  }

  .gallery-footer-banner {
    padding: 40px 0 60px;
  }
  
  .gallery-footer-banner h2 {
    font-size: 2.6rem;
    letter-spacing: 2px;
  }
  
  .gallery-cta {
    padding: 40px 20px 60px;
  }
  
  .gallery-cta h2 {
    font-size: 1.6rem;
  }
  
  .gallery-cta .btn-cta {
    padding: 14px 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .gallery-hero-content h1 {
    font-size: 2rem;
    letter-spacing: 2px;
  }
  
  .hero-desc {
    font-size: 0.82rem;
  }
  
  .day-content h2,
  .inspired-content h2 {
    font-size: 1.8rem;
  }
  
  .day-content p,
  .inspired-content p {
    font-size: 0.85rem;
  }
  
  .day-image {
    min-height: 180px;
  }
  
  .inspired-image {
    min-height: 180px;
  }
  
  .gallery-grid-three .grid-item {
    min-height: 160px;
  }
  
  .gallery-grid-two .grid-item {
    min-height: 160px;
  }
  
  .gallery-hero {
    padding: 120px 0 40px;
  }
  
  .gallery-day {
    margin: 24px auto;
    padding: 0 10px;
  }
  
  .gallery-inspired {
    margin: 24px auto;
    padding: 0 10px;
  }
  
  .gallery-grid-three {
    padding: 0 10px;
    margin: 24px auto;
  }
  
  .gallery-grid-two {
    padding: 0 10px;
    margin: 0 auto 24px;
  }
  
  .gallery-cta {
    padding: 30px 16px 40px;
  }
  
  .gallery-cta h2 {
    font-size: 1.3rem;
    letter-spacing: 2px;
  }
  
  .gallery-cta p {
    font-size: 0.85rem;
  }
  
  .gallery-cta .btn-cta {
    padding: 12px 24px;
    font-size: 0.75rem;
  }
}

/* ============================================================
   SECTION LABEL ROW (like Floor Plans header)
   ============================================================ */

.gallery-section-label-row {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 32px;
  text-align: center;
}

.gallery-section-label-row .section-label {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c6a43b;
  margin-bottom: 12px;
  display: block;
}

.gallery-section-label-row h2 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0;
}

@media (max-width: 768px) {
  .gallery-section-label-row {
    padding: 0 16px;
    margin: 60px auto 0;
  }
  .gallery-section-label-row h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .gallery-section-label-row {
    padding: 0 10px;
    margin: 40px auto 0;
  }
  .gallery-section-label-row h2 {
    font-size: 1.3rem;
    letter-spacing: 2px;
  }
}

/* ============================================================
   SHOWCASE SECTION (FACADE & INTERIOR)
   ============================================================ */

.gallery-showcase {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 32px;
}

.gallery-showcase .section-label {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c6a43b;
  margin-bottom: 12px;
  display: block;
  text-align: center;
}

.gallery-showcase h2 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 32px;
  color: #1a1a1a;
}

.gallery-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-showcase-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

.showcase-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.showcase-img {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
  background: #f5f5f5;
}

.showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.showcase-img img:hover {
  transform: scale(1.04);
}

.showcase-title {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1a1a1a;
  font-weight: 500;
  text-align: center;
  padding-bottom: 4px;
}

@media (max-width: 768px) {
  .gallery-showcase {
    padding: 0 16px;
    margin: 40px auto;
  }

  .gallery-showcase h2 {
    font-size: 1.6rem;
  }

  .gallery-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .gallery-showcase {
    padding: 0 10px;
    margin: 30px auto;
  }

  .gallery-showcase h2 {
    font-size: 1.3rem;
    letter-spacing: 2px;
  }

  .gallery-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ============================================================
   FLOOR PLAN SECTION (THÊM MỚI)
   ============================================================ */

.gallery-floorplan {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 32px;
}

.gallery-floorplan .section-label {
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #c6a43b;
  margin-bottom: 12px;
  display: block;
  text-align: center;
}

.gallery-floorplan h2 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 32px;
  color: #1a1a1a;
}

.gallery-floorplan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-floorplan-grid .grid-item {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
  background: #f5f5f5;
  cursor: pointer;
  position: relative;
}

.gallery-floorplan-grid .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.gallery-floorplan-grid .grid-item img:hover {
  transform: scale(1.04);
}

/* ============================================================
   FLOOR PLAN POPUP (THÊM MỚI)
   ============================================================ */

.floorplan-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  padding: 40px;
}

.floorplan-overlay.active {
  opacity: 1;
  visibility: visible;
}

.floorplan-overlay img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.floorplan-overlay.active img {
  transform: scale(1);
}

.floorplan-close {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floorplan-close:hover {
  background: #c6a43b;
  border-color: #c6a43b;
  transform: rotate(90deg);
}

/* ============================================================
   RESPONSIVE - FLOOR PLAN
   ============================================================ */

@media (max-width: 768px) {
  .gallery-floorplan {
    padding: 0 16px;
    margin: 40px auto;
  }
  
  .gallery-floorplan h2 {
    font-size: 1.6rem;
  }
  
  .gallery-floorplan-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .floorplan-overlay {
    padding: 20px;
  }
  
  .floorplan-overlay img {
    max-width: 95%;
    max-height: 80vh;
  }
  
  .floorplan-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .gallery-floorplan {
    padding: 0 10px;
    margin: 30px auto;
  }
  
  .gallery-floorplan h2 {
    font-size: 1.3rem;
    letter-spacing: 2px;
  }
  
  .gallery-floorplan-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .floorplan-overlay {
    padding: 12px;
  }
  
  .floorplan-overlay img {
    max-width: 98%;
    max-height: 75vh;
  }
  
  .floorplan-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}