:root {
  --divider: #e6e0d9; /* neutral divider color */
  --gold: #d4af37;    /* active color */
    /* Fonts */
  --font-primary: 'Manrope', sans-serif;
  --font-2:'Manrope', sans-serif;
}

/* ===== General ===== */
.gallery {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}

.gallery h2 {
  font-size: 26px;
  margin-bottom: 25px;
  font-weight: 400;
  color: #752E42;
  letter-spacing: 0.5px;
  font-family: var(--font-2);
}

/* ===== Tabs ===== */
.tabs {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 35px;
}

.tab {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  font-family: var(--font-primary);
  cursor: pointer;
  padding: 8px 22px;
  color: #333;
  transition: color 0.3s, border-color 0.3s;
}

.tab + .tab {
  border-left: 2px solid var(--divider);
}

.tab:hover { color: var(--gold); }

.tab.active {
  color: var(--gold);
  border-left-color: var(--gold);
}

.tab.active + .tab {
  border-left-color: var(--gold);
}

/* Hide dividers on very small screens */
@media (max-width: 480px) {
  .tab + .tab { border-left: none; }
  .tab { padding: 10px 14px; }
}

/* ===== Grid ===== */
.gallery-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr); /* Desktop default */
}

.gallery-item {
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1 / 1; /* keeps perfect square */
}

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

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

/* ===== Responsive Columns ===== */
@media (max-width: 1024px) { /* Tablet */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) { /* Mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1111999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 600px;
  width: 90%;
  border-radius: 6px;
  /* background: #fff; */
  /* padding: 10px; */
  position: relative;
}

.modal-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.close {
  position: absolute;

  right: 0px;
  font-size: 22px;
  color: #ffffff;
  background-color: black;
  padding:2px 10px;
  cursor: pointer;
}

.hidden {
  display: none !important;
}