* {
  box-sizing: border-box;
  font-family: math, Arial, Helvetica, sans-serif;
  width:100%;
  scrollbar-width: none;
}

div, nav {
  /*outline: 1px dotted red;*/
  display: inline-flex;
}

body {
  margin: 0;
  background: #f7f7f7;
  color: #222;
}

.vertical {
  flex-direction: column;
}
.horizontal {
  flex-direction: row;
}

.business-card {
  display: inline-flex;
  color: white;
  border: 2px solid #333;
  margin: 0.5rem;
  width: 22rem;
  min-width: 22rem;
  max-width: 22rem;
  height: 12rem;
  min-height: 12rem;
  max-height: 12rem;
}
.business-body {
  background-color: chocolate;
  height:92%;
}
.business-stripe {
  height:2%;
  background-color: white;
}
.business-accent {
  height:6%;
  background-color: black;
}
.accent1 {
  background-color: #ff0000;
}
.accent2 {
  background-color: #0033FF;
}
.accent3 {
  background-color: #009900;
}
.accent4 {
  background-color: #FFA500;
}

.nav-links-container {
  position: absolute;
  width: auto;
  gap: 1.5rem;
  font-size: 1.5rem;
  right: 0;
  margin:0.5rem;
}
.nav-links-container a {
  color:black;
  font-weight: bold;
  text-decoration: none;
}
.nav-links-container a:hover, a[aria-current="page"] {
  text-decoration: underline;
} 
.linkcolor1[aria-current="page"], .linkcolor1:hover {
  color: #ff0000;
}
.linkcolor2[aria-current="page"], .linkcolor2:hover {
  color: #0033FF;
}
.linkcolor3[aria-current="page"], .linkcolor3:hover {
  color: #009900;
}
.linkcolor4[aria-current="page"], .linkcolor4:hover {
  color: #FFA500;
}
.nav-links-container a:hover {
  text-decoration: underline;
}
.hero {
  position: absolute;
  top:4rem;
  padding-right:10%;
  text-align: right;
}

#footer {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 0.5rem;
  background: rgb(8, 31, 54);
  color: #fff;
}
#footer p {
  margin:0;
  padding:0.25rem;
}

/* Gallery grid */
.gallery-grid .grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* default: 6 columns on large screens */
  gap: 0.5rem;
  padding: 0.5rem;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.gallery-grid figcaption {
  font-size: 0.9rem;
  color: #444;
}

/* Breakpoints for columns: 6 → 5 → 4 → 3 → 2 → 1 */
@media (max-width: 1500px) {
  .gallery-grid .grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1200px) {
  .gallery-grid .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1000px) {
  .gallery-grid .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .gallery-grid .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid .grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: 220px; }
}

/* Lightbox / fullscreen preview */
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: rgba(0,0,0,0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease-in-out;
  z-index: 9999;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 85vh;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
}
.lb-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lb-cap {
  color: #fff;
  display: inline-block;
  text-align: center;
  font-size: 1.5rem;
  max-width: 90%;
  width: 100%;
}

.gallery-grid img { cursor: zoom-in; }

/* Prev / Next buttons in lightbox */
.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 52px;
  height: 64px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-prev:focus, .lb-next:focus, .lb-close:focus { outline: 2px solid #fff; }

@media (max-width: 480px) {
  .lb-prev, .lb-next { width: 40px; height: 48px; font-size: 1.6rem; }
}

.center {
  max-width: 50rem;
  text-align: center;
  margin: auto;
}

.center li {
  text-align: left;
}

.contact-info {
  background-color: aliceblue;
  text-align: left;
  width:auto;
  padding:1rem;
}

#contact-form {
  background-color: white;
  text-align: left;
  align-items: center;
  width:100%;
  max-width:50rem;
  padding:1rem;
  margin:1rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}