/* Reset and Basic Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Clash Display', sans-serif;
  background-color: #111;
  color: #fff;
  line-height: 1.6;
  margin: 0 80px;
}

h1, h2 {
  font-weight: bold;
  letter-spacing: 5px;
}

h1 a {
  color: #fff;
  text-decoration: none;
  text-align: center;
}

h1 a:hover {
  font-style: italic;
  filter: grayscale(1) blur(0.3px) contrast(1.2);
}

a:visited {
  color: #ffffff;
}

/* Header Section */
header {
  padding: 40px 0 10px;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  margin-top: 10px;
}

nav {
  padding-top: 5px;
  display: inline-block;
  margin-right: 60px; 
}

nav:hover {
  filter: grayscale(1) blur(0.3px) contrast(1.2);
}

nav a:hover {
  font-style: italic;
}

/* ==== TOP-RIGHT NAVIGATION (Responsive Font Size) ==== */
.top-right-nav {
  position: absolute;
  top: 20px;
  right: 20px;
}

.top-right-nav a {
  display: block;
  font-size: clamp(0.6rem, 1.2vw, 1.3rem); /* responsive font size */
  padding: 0.5rem 1rem;
  border: 2px solid white;
  border-radius: 3px;
  background-color: transparent;
  color: white;
  text-decoration: none;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.top-right-nav ul {
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}

.top-right-nav li {
  list-style: none;
}

/* Portfolio Section */
.photo-gallery {
  columns: 3;
}

.photo-item img,
.photo-item video {
  width: 100%;
  height: auto;
  margin-bottom: 5px;
  box-sizing: border-box;
  border: 1px solid #ffffff;
}

/* About & Contact */
/* === About & Contact Layout === */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; /* default: stacked on smaller screens */
  gap: 20px;
  margin-top: 50px;
  text-align: center;
}

.about-portrait img {
  max-width: 300px;
  height: auto;
}

/* On screens wider than 720px → horizontal layout */
@media (min-width: 721px) {
  .about-container {
    flex-direction: row; /* row layout for wider screens */
    text-align: left;
  }

  .about-portrait {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .about-text {
    flex: 2;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    padding-left: 20px;
  }
}


/* Footer Section */
footer {
  margin-top: 10px;
  border: 1px solid #ffffff;
  margin-bottom: 10px;
}

footer p {
  margin-left: 10px;
}

a[href^="mailto:"] {
  color: #fff;
}

a[href^="mailto:"]:hover {
  text-decoration: underline;
  font-style: italic;
}

/* Responsive Breakpoints */
@media (max-width: 1000px) {
  header h1 {
    font-size: 2rem;
  }

  body {
    margin: 0 50px;
  }

  .top-right-nav {
    margin-right: 35px;
  }

  .photo-gallery {
    column-count: 2;
  }

  .container {
    column-gap: 0;
    padding: 0 5px;
  }
}

@media (max-width: 800px) {
  header h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 720px) {
  header h1 {
    margin-top: 25px;
  }

  .top-right-nav {
    padding: 0.5rem 0.5rem;
  }

  .about-container {
    grid-template-columns: none;
    margin-top: 10px;
  }

  .about-container img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    width: 50%;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.4rem;
    letter-spacing: 2px;
  }

  footer p {
    font-size: 0.6rem;
  }

  .container {
    padding: 0 5px;
  }

  .photo-gallery {
    column-count: 1;
  }

  .top-right-nav {
    margin-right: 0px;
  }

  body {
    margin: 0 10px;
  }
}

/* ===== MODAL STYLES ===== */
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-inner {
  position: relative;
  text-align: center;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
}

.modal-media {
  max-width: 100%;
  max-height: 90vh;
}

.modal-content {
  max-width: 100%;
  max-height: 90vh;
  height: auto;
  display: none;
  margin: auto;
}

.modal-video {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  margin: 20px auto;
}

/* Hide the controls by default when video is in modal */
.modal video[controls] {
  display: none;
}

#caption {
  color: #ccc;
  margin-top: 10px;
  text-align: center;
}

/* Default Close Button Styles (Top-right corner on larger screens) */
.close {
  position: fixed;
  top: 8px;
  right: 20px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  background: transparent;
  border: none;
  letter-spacing: 2px;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: underline;
}

/* Sticky Footer Support */
html, body {
  height: 100%;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.about-contact {
  flex: 1;
}
