@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap");

:root {
  --first-color: #a67c52;
  --first-color-alt: #8b6b4a;
  --second-color: #5b4636;
  --title-color: #3e3e3e;
  --text-color: #555555;
  --text-color-light: #888888;
  --body-color: #fdfaf6;
  --container-color: #ffffff;
  --border-color: #e0d9cf;
  --arabic-font: 'Cairo', 'Montserrat', Arial, sans-serif;
  --card-height: 700px;
  --card-width: 20%;
  --image-height: 500px;
}

body {
  background: var(--body-color);
  font-family: 'Cairo', 'Montserrat', Arial, sans-serif;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Loader */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f9f4ee 0%, #f3ece3 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader { 
  display: flex; 
}

.loader-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-logo {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.12));
  animation: logoFloat 2.8s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.loader-progress {
  width: 220px;
  height: 5px;
  border-radius: 999px;
  background: rgba(91, 70, 54, 0.15);
  overflow: hidden;
  position: relative;
}

.loader-progress .bar {
  position: absolute;
  left: -40%;
  top: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, rgba(166,124,82,0.25), rgba(166,124,82,0.85), rgba(166,124,82,0.25));
  animation: slideBar 1.2s ease-in-out infinite;
}

@keyframes slideBar {
  0% { left: -40%; }
  50% { left: 60%; }
  100% { left: 110%; }
}

.loader-wrapper.hide {
  opacity: 0;
  visibility: hidden;
}

/* Gallery hero: هوية هندسية، تنسيق متجاوب */
.sharp-header.gallery-hero {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 0 48px 48px;
  box-shadow: 0 16px 48px rgba(191, 167, 122, 0.12), 0 2px 8px rgba(191, 167, 122, 0.08);
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
  margin: clamp(1.5rem, 4vw, 3rem) auto clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  text-align: center;
  overflow: hidden;
  max-width: min(900px, calc(100% - 2rem));
  width: 100%;
}

/* خط علوي هندسي (شريط ذهبي) */
.sharp-header.gallery-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--first-color) 20%, #bfa77a 50%, var(--first-color) 80%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* خط سفلي زخرفي خفيف */
.sharp-header.gallery-hero::after {
  content: '';
  position: absolute;
  bottom: -16px; left: 50%;
  transform: translateX(-50%);
  width: min(70%, 400px);
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(166, 124, 82, 0.25), transparent);
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
}

.gallery-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin: 0 auto;
}

/* Eyebrow: تصنيف القسم (هوية احترافية) */
.gallery-eyebrow {
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--first-color);
  margin: 0 0 0.5rem 0;
  opacity: 0.95;
}

/* تأثير دخول للهيدر */
.sharp-header {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 1s cubic-bezier(.77,0,.18,1), transform 1s cubic-bezier(.77,0,.18,1);
}
.sharp-header.header-animate {
  opacity: 1;
  transform: translateY(0);
}

/* عنوان المعرض: حجم سائل ومتجاوب */
.gallery-title {
  font-size: clamp(1.6rem, 4vw + 1rem, 3rem);
  font-weight: 800;
  color: var(--title-color);
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(255, 251, 230, 0.5);
  position: relative;
  z-index: 2;
  transition: color 0.3s, text-shadow 0.3s;
}
.gallery-title:hover {
  color: var(--first-color);
  text-shadow: 0 2px 16px rgba(166, 124, 82, 0.25);
}

/* خط ذهبي أسفل العنوان (هوية هندسية) */
.gallery-title::after {
  content: '';
  display: block;
  margin: 0.6rem auto 0.4rem auto;
  width: clamp(36px, 8vw, 56px);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--first-color), #bfa77a, transparent);
  opacity: 0.9;
}

.gallery-inspire {
  font-size: 1.25rem;
  color: #bfa77a;
  margin-bottom: 1rem;
  font-style: italic;
  font-family: 'Montserrat', 'Cairo', sans-serif;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 8px #f3ede2;
}

.diagonal-line-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 7px;
  background: linear-gradient(90deg, #bfa77a 0%, #fffbe6 100%);
  border-radius: 0 0 10px 10px;
  opacity: 0.95;
}





/* Arabic Text Enhancements */
.gallery-card .card-title {
  font-family: var(--arabic-font);
  font-weight: 600;
  line-height: 1.4;
  direction: rtl;
  text-align: center;
  font-size: 1.5rem;
  margin: 0;
  padding: 0;
}

.gallery-card .card-text {
  font-family: var(--arabic-font);
  line-height: 1.6;
  direction: rtl;
  text-align: center;
  font-size: 1.3rem;
  margin: 0;
  padding: 0;
}

.sharp-header .gallery-eyebrow,
.sharp-header .gallery-title,
.sharp-header .gallery-subtitle,
.sharp-header .gallery-desc {
  font-family: var(--arabic-font);
  direction: rtl;
}

.sharp-btn {
  font-family: var(--arabic-font);
  direction: rtl;
  font-weight: 500;
  font-size: 1.05rem;
}

.lightbox-caption {
  font-family: var(--arabic-font);
  direction: rtl;
  text-align: center;
  font-size: 1.1rem;
}

/* Enhanced Arabic Typography */
.gallery-card .card-title {
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.sharp-header.gallery-hero .gallery-title {
  text-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* RTL Support for Cards */
.gallery-card .card-body {
  direction: rtl;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 2.5rem;
}

.sharp-header .gallery-logo {
  border-radius: 8px;
  border: none;
  width: 280px;
  height: 280px;
  margin-bottom: 1.2rem;
  box-shadow: none;
}

.sharp-header.gallery-hero .gallery-subtitle {
  color: var(--first-color);
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 500;
  margin: 0 0 0.4rem 0;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.sharp-header.gallery-hero .gallery-desc {
  color: var(--text-color-light);
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  font-weight: 400;
  margin: 0;
  line-height: 1.55;
  opacity: 0.85;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Filter Buttons */
.d-flex.gap-2.my-3 {
  margin-bottom: 2.2rem !important;
  flex-wrap: wrap;
  gap: 0.5rem !important;
  justify-content: center;
}

.sharp-btn {
  border-radius: 12px;
  font-weight: 600;
  border: 2px solid var(--first-color);
  background: transparent;
  color: var(--first-color-alt);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  font-size: 1rem;
  padding: 0.7rem 2.1rem;
  margin: 0 0.1rem 0.2rem 0.1rem;
  letter-spacing: 0.08em;
  min-width: 120px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;
}

.sharp-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
  z-index: -1;
}

.sharp-btn:hover::before {
  left: 100%;
}

.sharp-btn.active, .sharp-btn:focus, .sharp-btn:hover {
  background: linear-gradient(90deg, #fff8f0 0%, var(--first-color) 100%);
  color: var(--second-color);
  border-color: var(--first-color-alt);
  box-shadow: 0 4px 20px rgba(166, 124, 82, 0.15);
  transform: translateY(-2px);
  outline: none;
}

/* Container */
.container-fluid {
  max-width: 1800px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  flex: 1;
}

#gallery-grid {
  margin-bottom: 2.5rem;
}

/* Gallery Items - Premium Grid */
.gallery-item {
  display: flex;
  align-items: stretch;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  height: var(--card-height);
  width: var(--card-width);
  filter: blur(1px);
  position: relative;
}

.gallery-item.show {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Premium Card - تصميم لا مثيل له يعكس قوة الشركة */
.gallery-card {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(166, 124, 82, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: var(--container-color);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 700px;
}

/* Shine effect on hover */
.gallery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.25) 45%, rgba(255, 251, 230, 0.35) 50%, transparent 55%);
  z-index: 3;
  pointer-events: none;
  transition: left 0.7s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.gallery-card:hover::before {
  left: 100%;
}

/* Subtle gradient overlay on image area (depth) */
.gallery-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--image-height);
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.06) 100%);
  pointer-events: none;
  z-index: 1;
}

.gallery-card:hover {
  transform: translateY(-10px);
  border-color: rgba(166, 124, 82, 0.22);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 0 40px rgba(166, 124, 82, 0.08);
}

/* Photo badge - refined */
.gallery-card .photo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  border-radius: 6px;
  background: rgba(30, 30, 30, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  z-index: 4;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  box-sizing: border-box;
}

/* Image - premium framing */
.gallery-card img,
.gallery-card .card-img-top {
  width: 100%;
  height: var(--image-height);
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.34, 1.2, 0.64, 1);
  position: relative;
  z-index: 0;
}

.gallery-card:hover img,
.gallery-card:hover .card-img-top {
  transform: scale(1.06);
}

/* Card body - فخامة وهوية */
.gallery-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 1.25rem;
  background: linear-gradient(180deg, #fefdfb 0%, #faf8f4 50%, #f6f2ec 100%);
  border-top: 1px solid rgba(166, 124, 82, 0.2);
  position: relative;
  z-index: 2;
}

.gallery-card .card-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(120px, 60%);
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--first-color), rgba(191, 167, 122, 0.9), transparent);
  border-radius: 0 0 2px 2px;
}

.gallery-card .card-title {
  font-family: var(--arabic-font);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--title-color);
  text-align: center;
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
  direction: rtl;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  transition: color 0.35s ease;
}

.gallery-card:hover .card-title {
  color: var(--first-color);
}

.gallery-card .card-text {
  font-family: var(--arabic-font);
  font-size: clamp(0.9rem, 1.2vw, 1.15rem);
  color: var(--text-color-light);
  text-align: center;
  margin: 0;
  line-height: 1.55;
  direction: rtl;
  opacity: 0.88;
}

/* View project – أناقة ورونق */
.gallery-card .project-link-btn {
  margin-top: 0.75rem;
  padding: 0.72rem 1.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, rgba(248, 245, 240, 0.98) 0%, rgba(238, 232, 224, 0.95) 100%);
  color: #6b5b4f;
  border: 1px solid rgba(166, 124, 82, 0.2);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: color 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
  position: relative;
  overflow: visible;
}

.gallery-card .project-link-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(166, 124, 82, 0.5), transparent);
  transition: width 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
  transform: translateX(-50%);
}

.gallery-card .project-link-btn:hover {
  background: linear-gradient(180deg, rgba(242, 237, 230, 0.98) 0%, rgba(228, 220, 210, 0.98) 100%);
  color: #5a4d42;
  border-color: rgba(166, 124, 82, 0.35);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(166, 124, 82, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}

.gallery-card .project-link-btn:hover::before {
  width: 70%;
}

.gallery-card .project-link-btn:active {
  transform: translateY(-1px);
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Footer */
.gallery-footer {
  background: var(--body-color);
  color: var(--text-color-light);
  padding: 2rem 0;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  font-family: var(--arabic-font);
  direction: rtl;
}

.gallery-footer a { 
  color: var(--first-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.gallery-footer a:hover { 
  color: var(--first-color-alt);
  text-decoration: underline;
}

/* Global signature styling across gallery pages */
.gallery-footer a[href*="Mohammad"],
.gallery-footer a[href*="m7madi8"] {
  font-family: 'Great Vibes', cursive;
  color: var(--first-color);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.lightbox-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.lightbox-indicator .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-indicator .dot.active {
  background: var(--first-color);
  transform: scale(1.2);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  background: transparent; /* simpler look */
  backdrop-filter: none;
  width: auto;
  height: auto;
  padding: 6px 8px; /* increase hit area without heavy shape */
  border-radius: 6px;
}

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

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

.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--first-color);
  transform: scale(1.05);
}

.lightbox-close:hover {
  color: var(--first-color);
  background: transparent;
  transform: none;
}

/* remove rotation for a professional minimal feel */

/* Animations */
.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeScaleIn {
  0% { opacity: 0; transform: scale(0.9) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.page-fade {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.page-fade.page-fade-in {
  opacity: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--first-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--first-color-alt);
}

/* Section Headers */
.section-headers {
  display: none;
  text-align: center;
  margin-bottom: 2rem;
}

.section-header {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--container-color) 0%, #faf8f4 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.section-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(166, 124, 82, 0.1);
}

.section-title {
  font-family: var(--arabic-font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 0.5rem;
  direction: rtl;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-subtitle {
  font-family: var(--arabic-font);
  font-size: 1.1rem;
  color: var(--first-color);
  margin: 0;
  direction: rtl;
  text-align: center;
  opacity: 0.9;
}

/* Show section headers when filtering */
body.showing-interior .interior-section,
body.showing-exterior .exterior-section,
body.showing-landscape .landscape-section {
  display: block;
}

/* Enhanced spacing for better organization */
#gallery-grid {
  margin-bottom: 3rem;
}

.gallery-item {
  margin-bottom: 1.5rem;
}

/* Category badge - نفس حجم وارتفاع زر عدد الصور */
.gallery-card .gallery-card-category {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  box-sizing: border-box;
}

.gallery-card .gallery-card-category--interior {
  background: rgba(166, 124, 82, 0.92);
  box-shadow: 0 2px 10px rgba(166, 124, 82, 0.3);
}

.gallery-card .gallery-card-category--exterior {
  background: rgba(91, 70, 54, 0.92);
  box-shadow: 0 2px 10px rgba(91, 70, 54, 0.3);
}

.gallery-card .gallery-card-category--landscape {
  background: rgba(74, 124, 89, 0.92);
  box-shadow: 0 2px 10px rgba(74, 124, 89, 0.3);
}

/* Responsive section headers */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .section-header {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .gallery-card .photo-badge {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: 0.7rem;
    min-height: 24px;
  }
  .gallery-card .gallery-card-category {
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: 0.7rem;
    min-height: 24px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.3rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .section-header {
    padding: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .gallery-card .photo-badge {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: 0.65rem;
    min-height: 22px;
  }
  .gallery-card .gallery-card-category {
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: 0.65rem;
    min-height: 22px;
  }
}

/* Responsive Design - Professional Breakpoints */

/* Card width responsive */
@media (max-width: 1200px) {
  .gallery-item {
    width: 30% !important;
  }
}

@media (max-width: 900px) {
  .gallery-item {
    width: 40% !important;
  }
}

@media (max-width: 600px) {
  .gallery-item {
    width: 60% !important;
  }
}

@media (max-width: 500px) {
  .gallery-item {
    width: 80% !important;
    margin-bottom: 2.8rem;
  }
  
  .gallery-card {
    border-radius: 16px;
  }
}

@media (max-width: 400px) {
  .gallery-item {
    width: 100% !important;
    margin-bottom: 3.5rem;
  }
  
  .gallery-card {
    border-radius: 14px;
  }
}

@media (max-width: 1200px) {
  .gallery-item {
    height: calc(var(--card-height) - 30px);
  }
  
  .gallery-card img {
    height: calc(var(--image-height) - 20px);
  }
  
  .gallery-card .card-body {
    padding: 0.9rem;
  }
  
  .gallery-card .card-title {
    font-size: 1rem;
  }
  
  .container-fluid {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 900px) {
  .gallery-item {
    height: calc(var(--card-height) - 40px);
    margin-bottom: 1.5rem;
  }
  
  .gallery-card {
    border-radius: 10px;
  }
  
  .gallery-card img {
    height: calc(var(--image-height) - 30px);
  }
  
  .gallery-card .card-body {
    padding: 0.7rem;
  }
  
  .gallery-card .card-title {
    font-size: 0.95rem;
  }
  
  .container-fluid {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
  
  .sharp-header .gallery-logo {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 600px) {
  .gallery-item {
    height: calc(var(--card-height) - 50px);
    margin-bottom: 2.5rem;
  }
  
  .gallery-card {
    border-radius: 16px;
  }
  
  .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .sharp-header.gallery-hero {
    margin: 0 0 1.5rem 0 !important;
    padding: 2rem 0.5rem 1.5rem 0.5rem;
    border-radius: 0 0 24px 24px;
  }
  
  .gallery-card img {
    height: calc(var(--image-height) - 40px);
  }
  
  .gallery-card .card-body {
    padding: 0.6rem;
  }
  
  .gallery-card .card-title {
    font-size: 0.9rem;
  }
  
  .gallery-card .card-text {
    font-size: 0.85rem;
  }
  
  .sharp-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.5rem;
    min-width: 100px;
  }
  
  .gallery-footer {
    padding: 1.5rem 0;
  }
  
  .d-flex.gap-2.my-3 {
    margin-bottom: 1.5rem !important;
    gap: 0.3rem !important;
  }
  
  .sharp-btn {
    margin: 0 0.05rem 0.1rem 0.05rem;
    padding: 0.5rem 1.2rem;
  }
  
  #gallery-grid {
    margin-bottom: 2rem;
  }
  
  .gallery-item {
    margin-bottom: 2rem;
  }
  
  .gallery-card:hover {
    box-shadow:
      0 12px 24px rgba(0, 0, 0, 0.08),
      0 28px 56px rgba(0, 0, 0, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.7) inset,
      0 0 32px rgba(166, 124, 82, 0.06);
  }
  
  .lightbox-img {
    max-width: 95%;
    max-height: 85%;
  }
  
  .lightbox-close, .lightbox-prev, .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .sharp-header.gallery-hero {
    margin: 0 !important;
    padding: 1.5rem 0.5rem 1.2rem 0.5rem;
    border-radius: 0 0 16px 16px;
  }
  
  .container-fluid {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }
  
  .gallery-item {
    margin-bottom: 3rem;
  }
  
  .gallery-card {
    border-radius: 14px;
    border-width: 1px;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Focus States for Accessibility */
.sharp-btn:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 2px;
}

.gallery-card:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 4px;
  border-radius: 16px;
}

/* Print Styles */
@media print {
  .sharp-btn, .lightbox, .gallery-footer {
    display: none !important;
  }
  
  .gallery-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
} 
