@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);
@import url('https://fonts.googleapis.com/css2?family=Almendra:ital,wght@0,400;0,700;1,400;1,700&family=Archivo+Black&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ruluko&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');


body {
  padding:50px;
  font:15px/1.5 "Ruluko", Helvetica, Arial, sans-serif;
  color: white;
  font-weight: normal;
  line-height: 1.35;

  /* Hyphenation */
  hyphens: auto;
  -webkit-hyphens: auto; /* Safari */
  -ms-hyphens: auto;     /* older Edge/IE */

  /* Background Image */
  background: url('../img/background/blur_bg.jpg') no-repeat center center fixed;;
  background-size: cover;
  position: relative;
}

/*section p {*/
/*  text-align: justify;*/
/*}*/

body::before {
  content: "";
  position: fixed; /* Fix it to the entire screen */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Semi-transparent black */
  z-index: -1; /* Ensure overlay stays behind the content */
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Adjust as needed */
    margin: 20px auto;
    padding-bottom: 56.25%; /* Aspect ratio for 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Almendra", serif;
  color:white;
  margin:0 0 20px;
}

p, ul, ol, table, pre, dl {
  margin:0 0 20px;
}

h1, h2, h3 {
  line-height:1.1;
}

h1 {
  font-size:29px;
}

h2 {
  color:white;
}

h3, h4, h5, h6 {
  color:white;
}

a {
  color:white;
  font-weight:normal;
  text-decoration:none;
}

a:hover {
  color: #a2cffe;
  text-decoration: underline;
}

div.social {
    text-align: center;
}

a.social{
  color: white;
  font-size: 24px;
  padding: 20px;
}

a.social:hover {
  color: #a2cffe;
}

a small {
  font-size:11px;
  color:white;
  margin-top:-0.6em;
  display:block;
}

.wrapper {
  width:960px;
  margin:0 auto;
}

blockquote {
  border-left:1px solid #e5e5e5;
  margin:0;
  padding:0 0 0 20px;
  font-style:italic;
}

code, pre {
  font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
  color:#333;
  font-size:12px;
}

pre {
  padding:8px 15px;
  background: #f8f8f8;
  border-radius:5px;
  border:1px solid #e5e5e5;
  overflow-x: auto;
}

table {
  width:100%;
  border-collapse:collapse;
}

th, td {
  text-align:left;
  padding:5px 10px;
  border-bottom:1px solid #e5e5e5;
}

dt {
  color:#444;
  font-weight:700;
}

th {
  color:#444;
}

img {
  max-width:100%;
}

header {
  width:auto;
  float:left;
  position:fixed;
}

header ul {
  list-style:none;
  height:40px;

  padding:0;

  background: #eee;
  background: -moz-linear-gradient(top, #f8f8f8 0%, #dddddd 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#dddddd));
  background: -webkit-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
  background: -o-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
  background: -ms-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
  background: linear-gradient(top, #f8f8f8 0%,#dddddd 100%);

  border-radius:5px;
  border:1px solid #d2d2d2;
  box-shadow:inset #fff 0 1px 0, inset rgba(0,0,0,0.03) 0 -1px 0;
  width:280px;
}

header li {
  width:89px;
  float:left;
  border-right:1px solid #d2d2d2;
  height:40px;
}

header ul a {
  line-height:1;
  font-size:11px;
  color:#999;
  display:block;
  text-align:center;
  padding-top:6px;
  height:40px;
}

strong {
  color:#222;
  font-weight:700;
}

header ul li + li {
  width:88px;
  border-left:1px solid #fff;
}

header ul li + li + li {
  border-right:none;
  width:89px;
}

header ul a strong {
  font-size:14px;
  display:block;
  color:#222;
}

header p {
    font-size: 16px;
    font-weight: 400;
}

section {
  width: 590px;
  float:right;
  padding-bottom:50px;
}

section p {
    line-height: 1.5;
}

section ul {
    line-height: 2.0;
}

section object {
    width: 100%;
    height: 1000px;
}


small {
  font-size:11px;
}

hr {
  border:0;
  background:#e5e5e5;
  height:1px;
  margin:0 0 20px;
}

footer {
  width:270px;
  float:left;
  position:fixed;
  bottom:50px;
}

footer a {
    font-size: 11px;
    color: #a2cffe;
}

#nav {
    display: block;
}

a#nav {
    font-size: 16px;
    font-weight: 400;
    color: white;

    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;

}

a#nav:hover {
    color: #a2cffe;
    text-decoration: none;
}

img.header {
    width: 100%;
    margin-bottom: 10px;
    border: 0px solid #393939;
}

img.std {
    position: relative;
    float: left;

    width: 40%;

    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
    border: 1px solid #393939;
}

a {
  color:#a2cffe; /* Makes links color #39c (blue) */
}

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3x3 grid example */
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

/* Thumbnail images: uniform square */
.image-container {
  width: 100%;
  aspect-ratio: 1 / 1;   /* Force square thumbnails */
  overflow: hidden;
  cursor: pointer;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* Fill square without distortion */
  transition: transform 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.05); /* small hover zoom */
}

/* Modal styles */
#image-modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

#image-modal .modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
}

#image-modal #caption {
  margin: 15px auto;
  text-align: center;
  color: #ccc;
  font-size: 16px;
}

#image-modal .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

#image-modal .close:hover {
  color: #bbb;
}

@media print, screen and (max-height: 650px) {

  div.wrapper {
    width: auto;
    margin:0;
  }

  header, section, footer {
    float:none;
    position:static;
    width:auto;
  }

  header {
    padding-right: 0px;
    text-align: center;
  }

  section {
    border:1px solid #e5e5e5;
    border-width:1px 0;
    padding:20px 0;
    margin:0 0 20px;
  }

  header a small {
    display:inline;
  }

  header ul {
    position:absolute;
    right:50px;
    top:52px;
  }

  #nav {
    display: inline;
    text-align: center;
  }

  img.std {
    float: none;
    width: 20%;
  }

}

@media print, screen and (max-width: 960px) {

  div.wrapper {
    width: auto;
    margin:0;
  }

  header, section, footer {
    float:none;
    position:static;
    width:auto;
  }

  header {
    padding-right: 0px;
    text-align: center;
  }

  section {
    border:1px solid #e5e5e5;
    border-width:1px 0;
    padding:20px 0;
    margin:0 0 20px;
  }

  header a small {
    display:inline;
  }

  header ul {
    position:absolute;
    right:50px;
    top:52px;
  }

  #nav {
    display: inline;
    text-align: center;
  }

  img.std {
    float: none;
    width: 20%;
  }
}

@media print, screen and (max-width: 720px) {
  body {
    word-wrap:break-word;
  }

  header {
    padding:0px;
    width: auto;
  }

  header ul, header p.view {
    position:static;
  }

  pre, code {
    word-wrap:normal;
  }

  #nav {
    display: inline;
    text-align: center;
    word-wrap: normal;
  }

  img.std {
    float: none;
    width: 70%;
  }

  .name-container {
    justify-content: center;
  }

  .name-container h1 {
    text-align: center;
  }
}

@media print, screen and (max-width: 480px) {
  body {
    padding:15px;
  }

  header ul {
    display:none;
  }

  #nav {
    display: block;
  }

  img.std {
    float:none;
    width: 80%;
  }
}

@media print {
  body {
    padding:0.4in;
    font-size:12pt;
    color:#444;
  }

}

.letterboxd-box {
  background: rgba(0, 0, 0, 1);              /* or #111, #f8f8f8, etc */
  color: #FFFFFF;                    /* Letterboxd text is dark */
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

/* Ensure embedded content inherits correctly */
.letterboxd-box * {
  background-color: transparent;
  /*color: #ffffff !important;*/
}

.name-container {
    display: flex;
    align-items: center;   /* vertically align gif with text */
    justify-content: flex-start; /* center the whole block in sidebar */
    gap: 10px;             /* space between name and gif */
    width: 100%;
}

.name-container h1 {
  margin: 0; /* remove default spacing */
}

.name-container a {
    display: block;
    width: 100%;
}

.name-gif {
    width: 100px;   /* adjust size as desired */
    height: auto;
}

.almendra-regular {
  font-family: "Almendra", serif;
  font-weight: 400;
  font-style: normal;
}

.almendra-bold {
  font-family: "Almendra", serif;
  font-weight: 700;
  font-style: normal;
}

.almendra-regular-italic {
  font-family: "Almendra", serif;
  font-weight: 400;
  font-style: italic;
}

.almendra-bold-italic {
  font-family: "Almendra", serif;
  font-weight: 700;
  font-style: italic;
}

.ruluko-regular {
  font-family: "Ruluko", sans-serif;
  font-weight: 400;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

.back-to-top h2 {
  margin: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover h2 {
  color: #a2cffe;
  transform: scale(1.2);
}

.back-to-top {
  display: inline-block;
  text-decoration: none;
}

.back-to-top:hover {
  text-decoration: none;
}