/* General styles */
body {
  font-family: Amiri, serif;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #ffffff;
  color: rgb(187, 187, 187);
  
}

footer{
  margin-top: 100px;
}


header {
  background: #ffffff;
  color: #000000;
  padding-top: 40px;
  padding-bottom: 10px;
}

nav a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  margin: 0 10px;

}

main {
  padding: 0px;
}

/* Headings */

h1 {
  font-weight: 400;
  font-size: 2.7rem;
  margin-top: 0;
  margin-bottom: 5px;
  text-align: center;   /* Centers title on all devices */
  padding: 0 10px;      /* Adds a little breathing room left/right */
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
  h1 {
    font-size: 2.3rem;   /* Smaller text on tablets/phones */
    padding: 0 15px;   /* More horizontal padding */
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.9rem; /* Even smaller for narrow phones */
    padding: 0 20px;
  }
}

h2 {
  margin-top: 0px;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 1.2rem;
  color:#000000;
  text-decoration:   underline blink;
}


h4{
  margin-top: 20px;
  margin-bottom: 0px;
  color:rgb(0, 0, 0);
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 100;

}


/* Remove underline from all text inside project links */
.project a {
  text-decoration: none;
  color: inherit;   /* makes link use surrounding text color */
}

/* Specific styles for the h3 title */
.project a h3 {
  font-style: normal;
  font-weight: normal;
  text-align: left;
  text-decoration: none;   /* ensures no underline */
  color: #000;
  margin-top: 5px;
  margin-bottom: 0px;
  margin-left: 5px;
}

.project a .project-tags {
  font-size: 0.9em;
  color: #666;
  text-decoration: none;
  text-align: left;
  margin-top:0px;
  margin-bottom: 20px;
  margin-left: 5px;
}

.works-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 60px; /* space between projects */
}

/* Each project block */
.work {
  display: grid;
  grid-template-columns: 1fr 2fr; /* left = 1/3, right = 2/3 */
  gap: 30px;
  align-items: flex-start; /* align text to top of media */
}

.work-media {
  display: flex;
  flex-direction: column; /* stack children vertically */
  gap: 20px;              /* optional: space between each item */
}

.media-image {
  width: 100%;   /* make images fill container width */
  height: auto;  /* keep aspect ratio */
}


/* Media images */
.media-image {
  max-width: 100%;
  height: auto;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;   /* Limit size on large screens */
  margin: 0 auto;     /* Center horizontally */
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .video-container {
    max-width: 100%;   /* Use full width on tablets/phones */
  }

  .video-container video {
    max-height: 50vh;  /* Limit vertical space */
    object-fit: cover;
  }
}





/* Video embed wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  width: 100%;
  max-width: 800px;
  margin-bottom: 10px;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.zine-wrapper {
  width: 100%;
  max-width: 1000px;  /* wider than video */
  height: 800px;      /* taller so the PDF is readable */
  margin: 0 auto;
}

.zine-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* Responsive adjustments */
@media (max-width: 900px) {
  .work {
    grid-template-columns: 1fr; /* stack text above media */
    text-align: center;
  }
  .work-text {
    text-align: center;
  }
  .work-media {
    justify-content: center;
    max-width: 800px;
  }
}

.contact-words {
  color: black;
  text-align: center; /* center content, including image */
}

.contact-words img {
  width: 100%;        /* scale to container width */
  max-width: 500px;   /* prevent it from being too large on desktop */
  height: auto;       /* maintain aspect ratio */
  display: block;
  margin: 0 auto;     /* center the image */
}

/* Poetry Page */
.poetry-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  color: black
}

.poem-entry {
  
  padding-left: 20px;
}

.poem-title {
  margin: 0;
  font-size: 1.8rem;
  text-decoration: none;   /* ensures no underline */
}



.poem-text {
  font-family: Amiri, serif;
  font-size: 1.1rem;
  line-height: 1.8;
  white-space: pre-wrap;   /* keeps line breaks */
  word-wrap: break-word;   /* wraps long lines */
}

hr {
  border: none;
  border-top: 1px solid #000000; /* first line */
  margin: 8px auto;
  width: 100%;
  position: relative;
}

hr::after {
  content: "";
  display: block;
  border-top: 1px solid #000000; /* second line */
  margin-top: 4px; /* distance between the two lines */
}


/* Grid Layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 20px;
  column-gap: 20px;
  max-width: 1200px;
  margin: 00px auto;
  padding: 0 10px;
}

.project {
  text-align: center;
}

.project img {
  width: 100%;
  height: 600px;         /* fixed height for consistency */
  object-fit: cover;     /* crops to fill box */
  border-radius: 0px;    /* optional rounded corners */
  display: block;
  transition: transform 0.3s ease;
}

.project:hover img {
  transform: scale(1.02);
}

.project h3 {
  margin-top: 12px;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.project-tags {
  font-size: 0.9rem;
  color: #999;
  margin-top: 4px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;       /* Allows buttons to wrap onto multiple lines */
  justify-content: center; /* Center them nicely */
  gap: 6px;              /* Even spacing between buttons */
  margin: 0 0 10px;
  padding: 0 5px;
}

.filter-btn {
  background: none;
  border: 1px solid #ccc;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 0;
  font-size: 0.9rem;
  font-style: normal;
  font-family: Amiri, serif;
  color: #000;            /* Explicitly set text color to black */
  transition: all 0.2s ease;
  flex-shrink: 0;         /* Prevent buttons from squishing */
}

.filter-btn:hover {
  border-color: #000;
  color: #5f5f5f;
}

.filter-btn.active {
  background: #000;
  color: #fff;
  border-color: #333;
}


/* Responsive */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.work-detail {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.work-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.work-text-box {
  flex: 1 1 350px;
  background: #ffffff; /* box background */
  color: #000000;
  padding: 20px 24px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(102, 102, 102, 0.3);
}

.work-text-box h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.work-media-box {
  flex: 2 1 500px;
}

.work-media-box img,
.work-media-box iframe {
  width: 100%;
}

.back-button {
  display: inline-block;
  margin: 5px 0;
  padding: 3px 7px;
  border: 1px solid #000;
  font-size: 0.9em;
  font-style: italic;
  color: #000;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  margin-top: 20px;
}

.back-button:hover {
  background-color: #000;
  color: #fff;
}

.project.hidden {
  display: none !important;
}

.work-card {
  max-width: 900px;
  margin: 2rem auto;
  border: 1px solid #000000;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.work-title {
  font-size: 1.2rem;
  text-align: center;
  color: #ffffff;
  margin: 0;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px  solid #000;
  background: #000000
}

.work-description {
  font-family: Amiri, serif;
  font-style: normal;
  color: #000000;
  line-height: 1.5;
  text-align:justify;
  margin: 0;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid #000;

}

.p1 {
  margin:0px;
}

.image-viewer,
.film-viewer {
  position: relative;
  width: 100%;
  height: 505px;                
  border-bottom: 1px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
  overflow: hidden;
}

.image-viewer-light,
.film-viewer-light {
  position: relative;
  width: 100%;
  height: 505px;                
  border-bottom: 1px solid #000;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fafafa;
  overflow: hidden;
}

/* Images inside the main viewers */
.image-viewer > img,
.image-viewer-light > img,
.film-viewer > img,
.film-viewer-light > img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}


/* Dialog container */
#imageDialog {
  display: none;          /* hidden by default */
  padding: 0;
  border: none;
  background: rgba(0,0,0,0.85);
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

#imageDialog[open] {
  display: flex;
}

/* Dialog image */
#dialog-image {
  max-width: 90%;       /* max width on desktop */
  max-height: 90%;      /* never taller than viewport */
  width: auto;
  height: auto;
  cursor: grab;
  transform-origin: center center;
  touch-action: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #dialog-image {
    max-width: 100vw;
    max-height: 100vh;

  }

}







.film-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
}

.work-viewer-zine {
  position: relative;
  width: 100%;
  height: 800px;         /* fixed viewing window */
  border-bottom: 1px solid #000;
  display: flex;
  justify-content: center;
  align-items: stretch;  /* let iframe stretch full height */
  background: #fafafa;
  overflow: auto;        /* enable scrolling inside */
}

.work-viewer-zine iframe {
  width: 100%;
  height: 100%;
  border: none;
}


.img-prev,
.img-next,
.film-prev,
.film-next,
.work-prev,
.work-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: 0px solid #000;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  z-index: 2;
  color:#000;
}

.img-prev,
.film-prev,
.work-prev { left: 0rem; }
.img-next,
.film-next,
.work-next { right: 0rem; }

.img-prev:hover,
.img-next:hover,
.film-prev:hover,
.film-next:hover,
.work-prev:hover,
.work-next:hover {
  background: #000;
  color: #fff;
}

.film-caption,
.work-caption {
  text-align: center;
  font-size: 0.9rem;
  color: #303030;
  font-style: normal;
  margin: 0;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #000;
}

.work-thumbnails {
  display: flex;
  flex-wrap: wrap;         /* let thumbnails wrap onto new rows */
  justify-content: center; /* center them neatly */
  gap: 8px;                /* even spacing between thumbnails */
  padding: 10px;

  border-top: none;
  box-sizing: border-box;  /* keep padding inside container width */
}

.work-thumbnails img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  background: #fafafa;
}

.work-thumbnails img:last-child {
  border-right: none;
}

.work-thumbnails img.active,
.work-thumbnails img:hover {
  opacity: 1;
}



