
body {background-color: white; 
    font-family: "EB Garamond", serif;
    font-weight: 100;
    line-height: 0;
    margin: auto;
}

.bg-color{
    background-color:  rgb(212, 0, 0);
    /*background-color:  rgb(85, 63, 42);*/
    width: 100vw;
    height: 100vh;
    position: fixed;
    transform: translate(49.35%);
    z-index: -2;
}

.bg-diamond{
    background-color: black;
    width: calc(30vh + 30vw);
    aspect-ratio: 1/1;
    position: fixed;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) rotate(45deg);
    z-index: -1;
}

br {
    line-height: 0.5;
}

button {
    line-height: 1;
    font-size: 10pt;
    cursor: pointer;
    transition-duration: 0.2s;
    padding: 9px 12px 9px 12px;
    background-color: rgb(212, 0, 0);
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    margin: 16px 0px -8px 0px;
    width: fit-content;
    align-self: end;
}

button:hover {
    opacity: 50%;
}

a {
    cursor: pointer;
    transition-duration: 0.2s;
    line-height: 1;
}

a:hover {
    opacity: 50%;
}

a:focus-visible {
    outline: 2px solid rgb(212, 0, 0);
}

.header-main {
    max-width: 1100px;
    margin-top: 20px;
    margin: auto;
    padding: 10px 20px 0px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
}

.header-container {
    width: 100%;
    background-color: white;
    border:6px solid white;
    border-width: 0px 0px 8px 0px;
}

 h3 {
    font-size: 24pt;
    color: black;
    text-transform: uppercase;
    line-height: 0.8;
    margin-bottom: 8px;
    margin-left: 2px;
    font-weight: 500;
 }

#nav-logo {
    display: flex;
    align-items: end;
}

#nav-logo img{
    width: 31px;
    display: inline;
    padding-bottom: 3px;
}

.nav-link {
    font-size: 15pt;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 6px;
}

.nav-link::before {
    content: url(../img/icons/red-marker1a.png);
    position: absolute;
    margin-left: -18px;
    margin-top: 1px;
    visibility: hidden;
}

.nav-link::after {
    content: url(../img/icons/red-marker1a.png);
    position: absolute;
    margin-top: 1px;
    margin-left: 1px;
    visibility: hidden;
}

h1 {
    font-size: 2rem;
    line-height: 1.4;
    bottom: 0;
    display: flex;
    position: relative;
    justify-content: space-between;
    padding-left: 20px;
}

.title {
    align-items: flex-end;
    display: flex;
    max-width: 1100px;
    margin: auto;
    padding-top: 50px;
}

.title-line {
    position: absolute;
    height: 1px;
    margin: auto;
    width: 100%;
    background-color: rgb(212, 0, 0);
    margin-left: -20px;
}

.title-line::before {
    content: "";
    height: 1px;
    width: 20px;
    background-color: white;
    position: absolute;
}

.title-line::after {
    content: "";
    height: 1px;
    width: 20px;
    background-color: white;
    position: absolute;
    right: 0;
}

.title-line-p {
    position: absolute;
    height: 1px;
    margin: auto;
    width: 100%;
    background-color: rgb(212, 0, 0);
    margin-left: -20px;
}

.title-line-l {
    height: 1px;
    margin: auto;
    width: 100%;
    background-color: rgb(212, 0, 0);
    margin-bottom: 20px;
}

.nav-line {
    position: absolute;
    height: 1px;  
    width: 100%;
    background-color: rgb(212, 0, 0);
    align-self: flex-end;
}

.red-bg {
    background-color:  rgb(212, 0, 0);
    position: absolute;
    width: 100vw;
    height: 93vh;
    z-index: -1;
    clip-path: fill-box;
}

.red-bg::before{
    content: "";
    background-color: white;
    position: absolute;
    width: 100vw;
    height: 93vh;
    transform: translate(-50%);
}

.red-bg::after{
    content: "";
    background-color: black;
    position: absolute;
    aspect-ratio: 1/1;
    width: 50vw;
    top: 0;
    left: 0;
    transform: translate(50%) rotate(45deg);
}

p {
    line-height: 1.5;
    font-size: 14pt;
    padding-top: 1rem;
    transition-duration: 0.2s;
}

.p-link {
    font-style: italic;
}

.p-link:after{
    content: url(../img/icons/arrow-right1a.png);
}

.p-inset{
    margin-left: 20px;
}

.one-grid {
    margin: auto;
    margin-top: 14px;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 100%;
    gap: calc(3vh);
    padding: 20px 10px 10px 10px;
}

.one-grid a{
    background-color: white;
    border-width: 10px 10px 10px 10px;
    box-shadow: 0px 12px black;

    margin: auto;
    width: 100%;
    background-image: url(../img/splash/cages-of-fear-splash1a.jpg);
    background-size: cover;
    background-position: center center;
    height: 400px;
    border: 10px solid white;
    
    margin-bottom: 6px;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;

    align-content: flex-end;
}

.one-grid button{
    background-color: white;
    border-width: 10px 10px 10px 10px;
    box-shadow: 0px 12px black;

    margin: auto;
    width: 100%;
    background-image: url(../img/splash/cages-of-fear-splash1a.jpg);
    background-size: cover;
    background-position: center center;
    height: 720px;
    border: 10px solid white;
    
    margin-bottom: 6px;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;

    align-content: flex-end;
}

#one-grid-img1 {
    background-image: url(../img/splash/sea-machine-splash1a.jpg);
}

#one-grid-img2 {
    background-image: url(../img/splash/cages-of-fear-splash1a.jpg);
}

.one-grid p{
 margin-bottom: -0px;
 padding: 5px 4px 0px 16px;
 font-style: italic;
 z-index: 1;
}

.one-grid p:after{
    content: url(../img/icons/arrow-right1a.png);
}


.one-grid div{
    background-color: #ffffff;
}

.one-grid a:hover{
    opacity: 100%;
        border-width: 20px;
}

.one-grid button:hover{
        opacity: 100%;
        border-width: 20px;
}

.three-grid{
    margin: auto;
    margin-top: 6px;
    max-width: 1060px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    border: 10px solid white;
    border-width: 10px 0px 15px 0px;
}

.three-grid h2 {
    font-size: 18pt;
    letter-spacing: 2%;
    margin: 0pt 0px 0px 0px;
    transition-duration: 0.2s;
    padding: 6px 0px 0px 0px;
    line-height: 1.2;
}

.three-grid p{
    margin-bottom: 4px;
    margin-top: -17px;
}

.three-grid:a {
    display: grid;
    transition-duration: 0.2s;
}

footer {
    display: flex;
    font-size: 0.85rem;
    margin: auto;
    width: 100%;
    max-width: 1100px;
    padding: 30px 10px 0px 10px;
}

.grid-item {
    display: flex;
    align-items: center;
}

.a-ledding {
    margin-left: -2px;
}

.m-ledding {
    margin-left: -2px;
}

.e-ledding {
    margin-left: -1px;
}

.h-ledding {
    margin-left: -1px;
}

.header-spacer {
    background-color: #000000;
}

.slide-holder {
width: 100%;
position: relative;

}
.slide1 {
    animation-name: fade1;
    animation-duration: 20s;
    animation-iteration-count: infinite;
}

.date {
    font-size: 12pt;
    margin-top: -10px;
}

@keyframes fade1 {
0%  {opacity: 0%;}
5% {opacity: 100%;}
45% {opacity: 100%;}
50% {opacity: 0%;}
100% {opacity: 0%;}
}

.slide2 {
    position: absolute;
    top: 0;
    left: 0;
    animation-name: fade2;
    animation-duration: 20s;
    animation-iteration-count: infinite;
}

@keyframes fade2 {
0%  {opacity: 0%;}
50% {opacity: 0%;}
55% {opacity: 100%;}
95% {opacity: 100%;}
100% {opacity: 0%;}
}

.lightbox {
    display: none;
    z-index: 100;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
}

.lightbox:target {
    display: block;
}

.close:hover {
opacity:100%;
}

.close {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    flex-direction: column;
}

.close:target {
    display: none;
}

.lightbox-frame{
    width: fit-content;
    height: fit-content;
    align-self: center;
    opacity: 100%;
    margin: 2rem;
    background-color: #ffffff;
    z-index: -1;
    display: flex;
    flex-direction: column;
}
.lightbox-img{
    padding: 1.5rem;
    max-width: 80vw;
    max-height: 80vh;
    display: block;
    width: auto;
    height: auto;
}

#enlarge-icon{
    z-index: 1;
    position: absolute;
}

.lightbox-caption{
    background-color: #ffffff;
    width: inherit;
    margin-top: -1.5rem;
    line-height: 1;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
    font-size: 12pt;
    align-self: flex-end;
}

.white-bg {
    background-color: white;
            margin-top: 20px;
}

.white-bg-holder {
    margin: auto;
    max-width: 1100px;
    padding-bottom: 20px;
    margin-top: 10px;
}

.section-holder {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-content: stretch;
    align-items: stretch;
    gap: 30px;
    margin-top: 20px; margin-bottom: 10px;
    padding: 0px 20px 0px 20px;
}

.section-holder img{
    align-self: end;
    grid-area: 1 / 1 / span 2 / span 1;
}

.section-holder div {
    font-size: 18pt;
    line-height: 1.6;
    font-style: italic;
    text-indent: 18pt;
    margin-left: 40px;
    margin-top: 40px;
    grid-area: 1 / 2 / span 1 / span 3;
    align-self: end;
    justify-self: end;
}

.section-holder p{
    grid-area: 2 / 2 / span 1 / span 3;
    align-self: end;
}

.four-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    padding: 20px 20px 10px 20px;
    margin-left: 1px;
}

.four-grid a{
    font-size: 14pt;
    line-height: 1.25;
}

.four-grid a:after {
    content: url(../img/icons/arrow-right1a.png);
    margin-left: 1px;
}

#nav-spacer {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
}

.splash-img {
    display: grid;
    width: 100%;
    border: 10px solid white;
    max-width: 1080px;
    box-shadow: 0px 12px;
    background-color:white;
    padding: 0px;
    margin: 0px;
    color: black;
    text-transform: none;
    font-style: italic;
    font-size: 14pt;
    font-weight: normal;
    text-align: right;
    line-height: 16pt;
}

.splash-img p{
    background-color: #ffffff;
}

.splash-img-holder{
    margin: auto;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 50px;
    margin-bottom: 52px;
    display: flex;
    justify-content: center;
}

.diagram-img {
    margin: 10px 0px -10px 0px;
}

.search-input {
    outline: 1px solid rgb(212, 0, 0);
    font-size: 14pt;
    padding: 2px 0px 3px 8px ;
}

.search-form {
    margin: 20px 20px 20px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
}

.search-form button {
    margin: 0px 0px 0px 0px;
    height: 32px;
}

ul {
        line-height: 1.5;
    font-size: 14pt;
    padding-top: 1rem;
    padding-left: 22px;
}

li::before {
    content: url(../img/icons/red-marker1a.png);
    position: absolute;
    margin-left: -20px;
    margin-top: 1px;
}

.p-break {
    margin-bottom: 22px;
}

.btn-img {
    background-color:transparent;
    padding: 0px;
    margin: 0px;
    color: black;
    text-transform: none;
    font-style: italic;
    font-size: 14pt;
    font-weight: normal;
    text-align: right;
    line-height: 16pt;
    margin-bottom: 15px;
    background-color: #ffffff;
}

.btn-img:hover {
    padding: 10px;
}

.btn-img::after {
content: url(../img/icons/arrow-right1a.png);
}

.a-btn::after {
    content: none;
    display: none;
}

.popover-img {
    position: fixed;
    width: fit-content;
    height: fit-content;
    color: canvastext;
    background-color: canvas;
    inset: 0px;
    margin: auto;
    border-width: initial;
    border-style: solid;
    border-color: initial;
    border-image: initial;
    padding: 0px;
    overflow: auto;
    width: 100vw;
    height: 100vh;
    background-color: black;
    border: 10px solid black;
    padding: 0;
    max-height: 100vh;
    pointer-events: fill;
    overscroll-behavior: contain;
    background-image: url(../img/splash/cages-of-fear-pages2a.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: clamp(0px, 100%, 1500px) auto;
    cursor:pointer;
}

.popover-img::backdrop {
  background-color:black;
}

.popover-img::hover {
    opacity: 100%;
}

.p-results {
    padding: 40px 20px 20px 20px;
text-align: center;
}

@media (max-width: 1100px) {
.title-line::after {visibility: hidden;}
.title-line::before {visibility: hidden;}
.three-grid {padding: 0px 10px 0px 10px;}
}

@media (max-width: 1000px) {
.section-holder {grid-template-columns: 2fr 1fr 2fr 2fr;}
.section-holder img{ grid-area: 1 / 1 / span 1 / span 1;}
.section-holder p{ grid-area: 2 / 1 / span 1 / span 4;}
.section-holder div{ margin-left: 10px;}
.title {padding-top: 30px;}
}

@media (max-width: 834px) {
.nav-logo {margin-bottom: 20px;}
.red-container {min-height: 0;}
/*.bg-diamond{transform: translate(-53.9%, -48%) rotate(45deg);}*/
.one-grid a{height: 300px;}
.section-holder {grid-template-columns: 3fr 1fr 1fr 3fr;}
.four-grid {grid-template-columns: 1fr 1fr 1fr;}
}

@media (max-width: 600px) {
.three-grid {grid-template-columns: 1fr 1fr;}
  .one-grid a{height: 300px;}
  .one-grid button{height: 300px;}
  .section-holder {grid-template-columns: 3fr 1fr 1fr 1fr;}
  .four-grid {grid-template-columns: 1fr 1fr;}
}

@media (max-width: 660px) {
#nav-spacer {justify-content: center; margin-left:-10px; margin-right:-10px;}
.nav-link {margin-left: 10px; margin-right: 10px;}
.section-holder {grid-template-columns: 1fr;}
.section-holder div {margin: 10px 2px -15px -27px;}
}

@media (max-width: 420px) {
.three-grid {grid-template-columns: 1fr; justify-items: center;}
.section-holder img {visibility: hidden;}
.section-holder {grid-template-columns: 1fr;}
}

@media (max-width: 420px) {

.card-item {
    transform: scale(100%);
    transition-duration: 0.2s;
    margin: 0px 0px 0px 0px;
    padding: 7px 0px 7px 20px;
    width:47vw;
}

}
