* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.6;
    /* padding: 2rem; */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    z-index: 2;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hidden {
  display: none !important;
}
/* Top Nav....................................................... */
.ao-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.ao-top h1 {
    font-size: 2rem;
    letter-spacing: 2px;
}


.ao-top a{
text-decoration: none;
    color: black;
}

nav {
    margin-top: 0.2rem;
    /* Adjust for vertical spacing */
    display: flex;
}

nav a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

/* Underline Effect ............................................*/
nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(4px);
    width: 0%;
    height: 2px;
    background-color: black;
    transition: width 0.3s ease;
    pointer-events: none;
}

nav a:hover::after {
    width: 100%;
}


.insta img {
    height: 1.3rem;
    width: auto;
    display: inline-block;
    vertical-align: text-bottom;
}


/* Gallery layout .............................................*/
.gallery-year {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 5rem;
    width: 100%;
    max-width: 900px;
}

.gallery-year h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
    width: 
    border: 1px solid  black;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    width: 60%;
    margin: 0 auto;

}

.thumbnail {
    width: 100%;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: transform 0.2s ease;
    z-index: 3;
}

.thumbnail:hover {
    transform: scale(1.03);
}

/* Responsive layout .............................................*/
@media (max-width: 768px) {
    .gallery-grid {
        width: 99%;
    }
}



/* Lightbox ......................................................*/

.lightbox {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding: 2rem;
  box-sizing: border-box;
}

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

.lightbox-content {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  font-size: 0.95rem;
  font-family: sans-serif;
  max-width: 600px;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.4); /* optional for readability */
  border-radius: 8px;
}

.lightbox-prev,
.lightbox-next,
.close {
  position: absolute;
  color: white;
  font-size: 2rem;
  z-index: 1000;
  cursor: pointer;
  user-select: none;
}

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

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

.close {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  z-index: 1000;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease;
}

.close:hover {
  transform: translateX(-50%) scale(1.1);
}

@media (max-width: 600px) {
  .lightbox-prev,
  .lightbox-next,
  .close {
    font-size: 2.5rem;
    padding: 0.5rem;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
/* Footer....................................................... */
footer {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin: 0 auto;
    margin-top: 2rem;
    width: 125px;
    z-index: 10;
}


/* === about =================================================== */
.about-page {

    background-color: rgb(236, 229, 146);
 
}


.about {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem; /* space between words */
  max-width: 700px;
  margin: 3rem auto;
  font-size: 1rem;
  line-height: 1.6;
  justify-content:space-between;
  text-align: center;
}

.about a {
    color: black;
    text-decoration: none;
    transition: all 0.45s ease;
}

.bold-me {
    font-weight: 900;
}

.about-section {

    height: 80vh;
    max-width: 64ch;
    margin: 32px auto;
    padding: 0 16px;
    margin-top: 100px;

}

/* Paragraph rhythm */
.about-section p {
    margin: 0 0 14px;
    /* compact but breathable */
    color: black;
    font-size: clamp(20px, 1.6vw, 18px);
    line-height: 1.7;
    /* comfortable reading */
    letter-spacing: 0.01em;

}

/* Last paragraph: remove trailing space */
.about-section p:last-child {
    margin-bottom: 0;

}


/* Desktop/hover devices only */
@media (hover: hover) {

    /* When the paragraph is hovered, fade/blur all links EXCEPT the one under the cursor */
    .about-section p:hover a:not(:hover) {
        opacity: .55;

    }

    /* The hovered word stays crisp */
    .about-section a:hover {
        opacity: 1;
    }
}

/* Touch devices: keep text crisp (no hover) */
@media (hover: none) {
    .about-section a {
        filter: none;
        opacity: 1;

    }
}

/* Hyphenation + balanced wrapping (clean ragged edges) */
.about-section p {
    hyphens: none;
    text-wrap: balanced;

    /* supported in modern browsers */
}



/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .about-section a {
        transition: none;
        filter: none !important;

    }
}

@media (max-width: 560px) {

    .about-section {

        height: 80vh;
        max-width: 64ch;
        margin: 32px auto;
        padding: 0 16px;
        margin-top: 100px;
        margin-bottom: 100px;

    }

}


/* === contact =================================================== */

.contact-page {
    background-color: rgb(128, 140, 255);
}

.contact-me {
    max-width: 60%;
    margin: 0 auto;
    text-align: center;
}

.copy-wrap {
    position: relative;
    display: inline-block;

}

/* Button styling */
#copyBtn {

    background: #0c0c0d;
    color: #fff;
    border: none;
    margin-top: 25px;
    letter-spacing: 2px;
    border-radius: 0px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}

#copyBtn:hover {
    background: #0c0c0d;
    transform: translateY(-1px);
}

#copyBtn:active {
    transform: translateY(1px);
}

/* Copied notification */
.copy-msg {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #111;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    white-space: nowrap;
}

.copy-msg.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 560px) {

    .contact-me {
        max-width: 100%;
        margin: 0 auto;
    }

    .copy-wrap {
        text-align: center;
        width: 100%;
        margin: 0 auto;

    }

    #copyBtn {
        width: 50%;
    }
}
