/* Import Proxima Nova font */
@import url('https://fonts.googleapis.com/css2?family=Proxima+Nova:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --accent: #111111;
}

* { 
  box-sizing: border-box; 
  font-family: 'Proxima Nova', 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Proxima Nova', 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  padding-bottom: 100px;
}

.container { width: 100%; max-width: none; margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 80px; }
.logo { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 1px; font-size: 36px; }
.logo span { color: var(--accent); }
.nav a { color: var(--muted); text-decoration: none; margin-left: 20px; }
.nav a:hover { color: var(--text); }

/* Dropdown */
.nav { display: flex; align-items: center; gap: 16px; }
.dropdown { position: relative; }
.dropdown-toggle { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.dropdown-toggle:hover { color: var(--text); }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; background: #ffffff; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); padding: 8px; display: none; min-width: 180px; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 12px; color: #111111; text-decoration: none; border-radius: 8px; margin: 0; }
.dropdown-menu a:hover { background: #f3f4f6; }

.hero {
  position: relative;
  display: grid; place-items: center;
  min-height: 68vh;
  background: #f7f7f8;
}
.hero-content { text-align: center; padding: 64px 0; }
.hero h1 { font-size: clamp(28px, 5vw, 48px); margin: 0 0 12px; font-weight: 500; }
.hero p { color: var(--muted); margin: 0 0 24px; }
.btn { display: inline-block; padding: 12px 18px; background: var(--accent); color: #ffffff; border-radius: 10px; text-decoration: none; font-weight: 600; }
.btn:hover { filter: brightness(0.9); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 12px; }
.section-head h2 { margin: 0; font-size: 22px; }
.section-head .link { color: var(--text); text-decoration: none; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  grid-column: span 4;
  background: var(--card);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden;
}
.card img { width: 100%; height: auto; object-fit: cover; display: block; }
.card .info { padding: 12px; }
.card .title { font-weight: 600; margin: 0 0 6px; }
.card .sub { color: var(--muted); margin: 0; font-size: 14px; }

/* Masonry gallery */
.masonry { 
  column-count: 3; 
  column-gap: 0; 
  column-rule: none;
  width: 100%; 
  padding: 0 80px; 
  margin: 0 auto; 
  max-width: none; 
  font-size: 0;
  line-height: 0;
}
.masonry .card { 
  display: inline-block; 
  width: 100%; 
  margin: 0 !important; 
  padding: 0 !important;
  grid-column: auto; 
  break-inside: avoid; 
  border-radius: 0 !important; 
  overflow: hidden; 
  border: none; 
  background: transparent; 
  position: relative; 
  cursor: pointer; 
  vertical-align: top;
}
.masonry .card img { 
  border-radius: 0 !important; 
  transition: opacity 0.3s ease; 
  object-fit: contain !important;
  max-width: 100%;
  height: auto;
}
.masonry .card .info { display: none; }
.masonry .card .location-overlay { 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  color: white; 
  font-weight: 600; 
  font-size: 16px; 
  text-align: center; 
  opacity: 0; 
  transition: opacity 0.3s ease; 
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.masonry .card:hover img { opacity: 0.7; }
.masonry .card:hover .location-overlay { opacity: 1; }

/* Filter bar styling to match header */
.filterbar {
  padding: 0 80px;
  width: 100%;
  margin: 0 auto 40px auto;
  max-width: none;
}

/* Override any Tailwind or other CSS that might add rounded corners */
#gallery-grid img,
#gallery-grid .card,
#gallery-grid .card img,
.masonry img,
.masonry .card,
.masonry .card img {
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
}

/* Responsive masonry grid - expands unlimited on larger screens */
@media (min-width: 1600px) {
  .masonry { column-count: 6; column-gap: 0; }
}

@media (min-width: 1400px) and (max-width: 1599px) {
  .masonry { column-count: 5; column-gap: 0; }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .masonry { column-count: 4; column-gap: 0; }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .masonry { column-count: 3; column-gap: 0; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .masonry { column-count: 2; column-gap: 0; }
}

@media (max-width: 599px) {
  .masonry { column-count: 1; column-gap: 0; padding: 0 20px; }
  .filterbar { padding: 0 20px; margin: 0 auto 30px auto; }
  .site-footer { padding: 20px 20px; }
  .header-inner { padding: 0 20px; }
  #image-counter { padding: 20px 20px 100px 20px !important; }
  #image-counter::before { left: 20px; right: 20px; }
}

/* Responsive padding for gallery and filters with more side space */
@media (min-width: 1600px) {
  .masonry { padding: 0 100px; margin: 0 auto; max-width: none; }
  .filterbar { padding: 0 100px; margin: 0 auto 40px auto; max-width: none; }
  .header-inner { padding: 0 100px; }
  #image-counter { padding: 20px 100px 100px 100px !important; }
  #image-counter::before { left: 100px; right: 100px; }
  .site-footer { padding: 20px 100px; }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .masonry { padding: 0 80px; margin: 0 auto; max-width: none; }
  .filterbar { padding: 0 80px; margin: 0 auto 40px auto; max-width: none; }
  .header-inner { padding: 0 80px; }
  #image-counter { padding: 20px 80px 100px 80px !important; }
  #image-counter::before { left: 80px; right: 80px; }
  .site-footer { padding: 20px 80px; }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .masonry { padding: 0 60px; margin: 0 auto; max-width: none; }
  .filterbar { padding: 0 60px; margin: 0 auto 40px auto; max-width: none; }
  .header-inner { padding: 0 60px; }
  #image-counter { padding: 20px 60px 100px 60px !important; }
  #image-counter::before { left: 60px; right: 60px; }
  .site-footer { padding: 20px 60px; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .masonry { padding: 0 40px; margin: 0 auto; max-width: none; }
  .filterbar { padding: 0 40px; margin: 0 auto 40px auto; max-width: none; }
  .header-inner { padding: 0 40px; }
  #image-counter { padding: 20px 40px 100px 40px !important; }
  #image-counter::before { left: 40px; right: 40px; }
  .site-footer { padding: 20px 40px; }
}

/* Image counter styling */
#image-counter {
  padding: 20px 80px 100px 80px !important;
  position: relative;
  text-align: center;
  margin-top: 40px;
  color: #666;
  font-size: 14px;
}
#image-counter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 80px;
  right: 80px;
  height: 1px;
  background: rgba(0,0,0,0.1);
}

.site-footer { 
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 20px 80px;
  z-index: 40;
}
.footer-inner { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  height: 32px; 
  font-size: 14px; 
  text-align: center;
}
.socials a { color: var(--muted); text-decoration: none; margin-left: 12px; }
.socials a:hover { color: var(--text); }

/* Keep homepage featured cards uniform */
.featured .card img { height: 220px; }

/* Hamburger Menu Styles */
.dropdown-container {
  position: relative;
  overflow: visible;
}

.dropdown-trigger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.dropdown-trigger span {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.dropdown-trigger span:first-child {
  transform: rotate(0);
}

.dropdown-trigger span:nth-child(2) {
  opacity: 1;
}

.dropdown-trigger span:nth-child(3) {
  transform: rotate(0);
}

.dropdown-trigger.active span:first-child {
  transform: rotate(45deg);
}

.dropdown-trigger.active span:nth-child(2) {
  opacity: 0;
}

.dropdown-trigger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 8px 0;
  min-width: 120px;
  display: none;
  z-index: 50;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

#nav-menu a {
  padding: 10px 12px;
  font-size: 14px;
  margin: 0;
  line-height: 1.2;
  display: block;
  border-radius: 8px;
  color: #111111;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

#nav-menu a:hover {
  background: #f3f4f6;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
}

/* Specific styling for hamburger nav menu */
#nav-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: auto !important;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  padding: 8px;
  min-width: 120px;
  max-width: 100px;
  display: none;
  z-index: 50;
  white-space: nowrap;
  overflow: hidden;
}

#nav-menu.show {
  display: block;
}

/* Ensure dropdown doesn't cause horizontal overflow */
.dropdown-container {
  max-width: 100%;
  overflow: visible;
}

#nav-menu {
  transform: translateX(0);
  will-change: transform;
}

/* Filter Bar Styles */
.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
}

.filter-link {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.filter-link:hover {
  background: #f5f5f5;
  color: var(--text);
}

.filter-link[aria-current="true"] {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.dropdown-item {
  background: transparent;
  border: none;
  color: var(--text);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
  text-align: left;
  width: 100%;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

/* Logo Styles */
.logo {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
}

/* Gallery Grid Styles */
#gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

#gallery-grid .card {
  background: white;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

#gallery-grid .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

#gallery-grid .card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 !important;
  object-fit: contain !important;
  max-width: 100%;
}

#gallery-grid .card .info {
  padding: 16px;
}

#gallery-grid .card .title {
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 16px;
}

#gallery-grid .card .sub {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .filterbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-link {
    text-align: center;
  }
  
  #gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .logo {
    font-size: 30px;
  }
}

/* Force no rounded corners on all gallery images - highest specificity */
html body #gallery-grid .card img,
html body .masonry .card img,
html body #gallery-grid img,
html body .masonry img {
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  -moz-border-radius: 0 !important;
}

/* Ensure consistent spacing between all images */
.masonry .card {
  margin-bottom: 18px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
}


