@font-face {
    font-family: CaslonGraD;
    src: url("fonts/CaslonGraD.otf") format("opentype");
}

@font-face {
    font-family: Futura;
    src: url("fonts/Futura\ Book\ font.ttf") format("truetype");
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Futura', sans-serif;
    font-weight: 400;
 }

 h1 {
     font-family: 'CaslonGraD', serif;
     font-weight: 400;
     font-size: 4rem;
 }

 .main {
    height: 100vh;
    width: 100vw;
    background: black;
    overflow: hidden;
}

.main > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.page {
    padding: 20px;
}

.title {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
  }

.title h1 {
    margin: 24px 0;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1;
}

header ul {
    list-style: none;
}
header li {
    display: inline-block;
    padding: 0 10px;
    
}
header a {
    color: black;
    text-decoration: none;
}

header a:hover {
    opacity: 0.6;
    cursor: pointer;
}

header.home a {
    color: white;
}

header a.selected {
    text-decoration: underline;
    text-underline-offset: 3px;
}


.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style-type: none;
    padding: 50px 150px;
}

@media (max-width: 700px) {
    .image-gallery {
        padding: 20px;
    }
}

@media (min-width: 700px) and (max-width: 1000px) {
    .image-gallery {
        padding: 50px;
    }
}

.image-gallery > li {
    height: 200px;
    cursor: pointer;
    position: relative;
    flex-grow: 1;
}

.image-gallery.ojai > li {
    height: 240px;
    cursor: pointer;
    position: relative;
    flex-grow: 1;
}
  
.image-gallery li img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    border-radius: 5px;
    transition: transform 0.2s linear;
    min-height: 100%;
    min-width: 100px; /* these are set to force lower images to be off screen and load later */
}

.image-gallery li img:hover {
    transform: scale(1.05);
}

.image-gallery::after {
    content: "";
    flex-grow: 9;
  }

  @media (max-width: 700px) {
    .image-gallery::after {
        content: "";
        display: none;
      }
}

a[title]::after {
    content: url('collecticons/icons/text-block.svg');
    position: absolute;
    right: 0;
    bottom: 0;
    background-color: white;
    opacity: 0.7;
    padding: 4px 4px 0;
}

.sl-caption {
    font-size: 0.9em !important;
    transition: opacity 0.3s linear;
}

.sl-caption:hover {
    opacity: 0 !important;
}