/* =============================================================================
   MAIN STYLESHEET - Ilmar Hurkxkens Portfolio
   Combines: style.css + lightbox.css
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap');

/* =============================================================================
   CSS RESET & BASE LAYOUT
   ============================================================================= */

/* Reset and ensure full width */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Basic layout */
body {
  font-family: 'Fira Code', monospace;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 1.1em;
  font-weight: 300;
  margin: 20px 0;
  padding: 0 20px;
  line-height: 1.4em;
  background-color: #fff;
  color: #111;
}

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */

/* Headings */
h1, h2, h3 {
  font-size: 1em;
  font-weight: 500;
  margin-top: 0em;
  margin-bottom: 0em;
}

/* Paragraphs */
p {
  margin-top: 0em;
  margin-bottom: 0em;
}

/* Horizontal rule */
hr {
  border: none;
  border-bottom: 0.5px solid #000;
}

/* Lists */
ul {
  list-style: none;
  padding-left: 0;
  margin: 1em 0;
}

ul li {
  text-transform: uppercase;
  font-weight: 500;
}

/* =============================================================================
   LINKS & INTERACTIVE ELEMENTS
   ============================================================================= */

/* Standard links */
a {
  text-decoration: none;
  color: #06f;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
}

a:hover {
  text-decoration: none;
  background-color: #06f;
  color: #fff;
}

/* Media text elements (clickable file indicators) */
.media-text {
  display: inline-block;
  background-color: #06f;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.media-text:hover {
  background-color: #fff;
  color: #06f;
  text-decoration: none;
}

/* Filter navigation links */
.filter-link {
  cursor: pointer;
  color: #06f;
  text-decoration: none;
}

.filter-link:hover {
  background-color: #06f;
  color: #fff;
  text-decoration: none;
}

/* =============================================================================
   LIGHTBOX MODAL SYSTEM
   ============================================================================= */

/* Lightbox overlay (full screen background) */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0);
  z-index: 1000;
  cursor: pointer;
}

/* Lightbox content container */
.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Lightbox images */
.lightbox-content img {
  width: auto;
  height: auto;
  display: block;
  max-width: 90vw;  /* 90% of viewport width */
  max-height: 80vh; /* 80% of viewport height */
  object-fit: contain; /* Maintain aspect ratio */
}

/* Lightbox PDFs (iframe) */
.lightbox-content iframe {
  width: 90vw;
  height: 80vh;
  border: none;
  display: block;
}

/* Lightbox videos */
.lightbox-content video {
  width: auto;
  height: auto;
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

/* Loading indicator */
.lightbox-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #06f;
  font-size: 50px;
  font-weight: normal;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-close:hover {
  background-color: #06f;
  color: #fff;
}


/* =============================================================================
   MOBILE RESPONSIVE STYLES
   ============================================================================= */

@media screen and (max-width: 768px) {
  body {
    font-size: 1.1em; /* Slightly larger text on mobile */
    line-height: 1.2;
    padding: 0 20px; /* Maintain consistent padding */
  }

  /* Ensure text wrapping on mobile for long URLs */
  p, div, span {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  h1 {
    font-size: 1.1em;
    line-height: 1.2;
  }

  p {
    margin-top: 0em;
    margin-bottom: 0em;
  }

  a {
    font-size: inherit; /* Inherit from body font size */
  }
}