.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.mainNav{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-left: 0px;
  margin: 0;
}

.mainNav li {
  background-color: #fcfcfc;
  list-style: none;
  text-align: center;
  margin-left: 2rem;
}

.mainNav li a{
  text-decoration: none;
  color: #616161;
  font-family: 'Roboto', sans-serif;
  text-transform: lowercase;
  text-align: center;
  vertical-align: middle;
}

.mainNav li a:hover {
  color: #616161;
  border-bottom: 1px solid #222;
}

.mainNav .currentpage a{
  color: #616161;
  border-bottom: 1px solid #616161;
}

.mainNav .home{
  margin-right: auto;
  margin-left: 0;
  font-size: 1rem;
}

.mainNav .home  a {
    color: #222;
    text-decoration: none;
    text-transform: lowercase;
    font-weight: semibold;
    letter-spacing: .04rem;
    font-size: 2rem;
    position: relative;
    display: inline-block;
    overflow: hidden;
  }

.mainNav .home a:hover {
  color: #888;
  border-bottom: none;
}

.home-link {
  position: relative;
  display: inline-block;
}

.home-text {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.home-text .letter {
  display: inline-block;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  will-change: transform, opacity;
  opacity: 1;
}

.finger {
  position: absolute;
  left: -40px;
  top: 72%;
  transform: translateY(-50%) rotate(-15deg);
  transform-origin: top left;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
  pointer-events: none;
}

.home-link:hover .finger {
  opacity: 1;
  animation: fingerDrawLine 2s linear;
}

@keyframes fingerDrawLine {
  0% {
    left: -30px;
    top: 72%;
    transform: translateY(-50%) rotate(-15deg);
  }
  5% {
    left: 2%;
    top: 71.8%;
    transform: translateY(-50%) rotate(-14deg);
  }
  10% {
    left: 8%;
    top: 71.6%;
    transform: translateY(-50%) rotate(-13deg);
  }
  15% {
    left: 15%;
    top: 71.8%;
    transform: translateY(-50%) rotate(-12deg);
  }
  20% {
    left: 22%;
    top: 72%;
    transform: translateY(-50%) rotate(-11deg);
  }
  25% {
    left: 30%;
    top: 72.2%;
    transform: translateY(-50%) rotate(-10deg);
  }
  30% {
    left: 38%;
    top: 72.3%;
    transform: translateY(-50%) rotate(-9deg);
  }
  35% {
    left: 45%;
    top: 72.2%;
    transform: translateY(-50%) rotate(-8deg);
  }
  40% {
    left: 52%;
    top: 72%;
    transform: translateY(-50%) rotate(-7deg);
  }
  45% {
    left: 58%;
    top: 71.9%;
    transform: translateY(-50%) rotate(-6deg);
  }
  50% {
    left: 64%;
    top: 72%;
    transform: translateY(-50%) rotate(-5deg);
  }
  55% {
    left: 70%;
    top: 72.1%;
    transform: translateY(-50%) rotate(-6deg);
  }
  60% {
    left: 75%;
    top: 72.2%;
    transform: translateY(-50%) rotate(-7deg);
  }
  65% {
    left: 80%;
    top: 72.1%;
    transform: translateY(-50%) rotate(-8deg);
  }
  70% {
    left: 84%;
    top: 72%;
    transform: translateY(-50%) rotate(-9deg);
  }
  75% {
    left: 88%;
    top: 71.9%;
    transform: translateY(-50%) rotate(-10deg);
  }
  80% {
    left: 91%;
    top: 72%;
    transform: translateY(-50%) rotate(-11deg);
  }
  85% {
    left: 94%;
    top: 72.1%;
    transform: translateY(-50%) rotate(-12deg);
  }
  90% {
    left: 96%;
    top: 72%;
    transform: translateY(-50%) rotate(-13deg);
  }
  95% {
    left: 98%;
    top: 72%;
    transform: translateY(-50%) rotate(-14deg);
  }
  100% {
    left: calc(100% + 20px);
    top: 72%;
    transform: translateY(-50%) rotate(-15deg);
  }
}

/* Modern Gallery Grid */
.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0;
}

.gallery-item {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: #fcfcfc;
  will-change: transform;
}

.gallery-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gallery-image-wrapper {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  position: relative;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
}

.lightbox[aria-hidden="false"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-preview {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 240px;
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
  z-index: 9998;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-preview:hover {
  opacity: 0.7;
  transform: translateY(-50%) scale(1.05);
}

.lightbox-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-preview-prev {
  left: -200px;
}

.lightbox-preview-next {
  right: -200px;
}

#lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
}

#lightbox-caption {
  display: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: none;
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: all 0.2s ease;
  will-change: transform;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}

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

.lightbox-prev:hover {
  transform: translateY(-50%) translateX(-3px) scale(1.05);
}

.lightbox-prev svg {
  transition: transform 0.2s ease;
}

.lightbox-prev:hover svg {
  transform: translateX(-2px);
}

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

.lightbox-next:hover {
  transform: translateY(-50%) translateX(3px) scale(1.05);
}

.lightbox-next svg {
  transition: transform 0.2s ease;
}

.lightbox-next:hover svg {
  transform: translateX(2px);
}

.lightbox-prev svg,
.lightbox-next svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-close svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mainNav .home a {
    font-size: 1.25rem;
  }

  .mainNav li {
    margin-left: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .gallery-container {
    padding: 1rem 0.5rem;
  }

  .lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
    padding: 0 1rem;
  }

  #lightbox-image {
    max-height: 80vh;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .lightbox-prev svg,
  .lightbox-next svg {
    width: 20px;
    height: 20px;
  }

  .lightbox-close svg {
    width: 20px;
    height: 20px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .lightbox-preview {
    width: 100px;
    height: 133px;
    opacity: 0.3;
  }

  .lightbox-preview-prev {
    left: -110px;
  }

  .lightbox-preview-next {
    right: -110px;
  }

  #lightbox-caption {
    font-size: 0.875rem;
    padding: 0 1rem;
  }
}

@media (max-width: 640px) {
  .mainNav .home a {
    font-size: 1.1rem;
  }

  .mainNav li {
    margin-left: 0.75rem;
  }

  .lightbox-preview {
    display: none;
  }

  .lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
    padding: 0;
  }

  #lightbox-image {
    max-height: 85vh;
    max-width: 100vw;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .lightbox-prev svg,
  .lightbox-next svg {
    width: 18px;
    height: 18px;
  }

  .lightbox-close svg {
    width: 18px;
    height: 18px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 480px) {
  .mainNav .home a {
    font-size: 1rem;
  }

  .mainNav li {
    margin-left: 0.5rem;
  }

  .nav-container {
    padding: 1rem 0.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
  }

  #lightbox-image {
    max-height: 80vh;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .lightbox-prev svg,
  .lightbox-next svg {
    width: 16px;
    height: 16px;
  }

  .lightbox-close svg {
    width: 16px;
    height: 16px;
  }
}

.caption {
  text-align: center;
  font-size: 12px;
  color: rgb (87,87,87);
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.about {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

#headshot {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 25%;
}

.aboutcontent {
  margin: auto;
  text-align: center;
  max-width: 600px;
  font-family: 'Roboto', sans-serif;
  padding-top: 2rem;
}

@media only screen and (max-width: 768px) {
  .aboutcontent {
    max-width: 80%;
  }
  #headshot {
    width: 50%;
  }
}

.aboutcontent p {
  display: inline-block;
}

.email {
  font-size: 0.95em;
  color: #888;
}

.email a{
  text-decoration: underline;
  color: #888;
}

.email a:hover {
  color: #222;
}

footer{
  padding: 8rem 1rem;
  color: #222;
  font-family: 'Roboto', sans-serif;
  text-transform: lowercase;
  text-align: center;
}

footer .row {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center;
  align-items: center;
  margin: 0 !important;
}

footer p {
  text-align: center;
  width: 100%;
}

footer p:not(.email) {
  margin: 0.5rem 0;
}

footer .email {
  display: block !important;
  line-height: 1.6;
  margin: 0 !important;
  width: 100%;
}

footer .email:first-of-type {
  margin-bottom: 2rem !important;
}

footer .email:last-of-type {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

/* Legacy styles for footer compatibility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.col-sm-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 0.5rem;
}
