
body {
    font-family: Arial, sans-serif;
    border:none; margin:0;
    background-color: #333;
}
@media (min-width: 600px) and (orientation: landscape) {
    .home {
        width: 100%;
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    margin: auto;
    height: 80%;
    width: 80%;
    /* left: 0; */
    /* top: 5em; */
    /* width: 100%; */
    /* height: 100%; */
    overflow: auto;
    color:black !important;
    /* background-color: rgb(0, 0, 0); */
    /* background-color: rgba(0, 0, 0, 0.4);*/
    /*box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.9);*/
}
.textcontainer{
    position: relative;
    z-index: 0;
    top: 2em;
    left: 0;
    width: 100%;
    min-height: calc(100% - 3.2em);
    min-width: 100%;
    height: max-content;
    overflow: hidden;
    margin: 0;
    text-align: left;
    background: #333;
    color: white !important;
}
.notification-circle {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}
.liminalSpace:not(.header) {
position: sticky;
    z-index: 200;
    top: 1.6em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bodytext{
    /* padding: 11em; */
    min-height: fit-content;
    position: relative;
    font-weight: normal;
    text-overflow: ellipsis;
    font-size: larger;
    padding-top: 2em;
    background-color:white;
    color:black;
    padding-bottom: 3em;
}
.bodytext p{padding-top: 0.5em;
    padding-bottom: 0.5em;
    width: 70%;
    margin: auto;}
.textcontainer a, .textcontainer a:visited, .textcontainer a:active, .textcontainer a:hover {
    color:var(--text);
}
.bookmark-icon{
    width: 2em !important;
    position: absolute;
    right: 2em;
	top:0;
}
.modal .bookmark-icon{top: 20%;
    left: 75%;
}
.home{width:100%;}
.gallery {
    position: relative;
    display: flex;
    width: 100%;
    /* top: 2em; */
    /* margin-top: 1.5em; */
    /* margin-bottom: 2em; */
    /* left: 4px; */
    height: max-content;
    flex-wrap: wrap;
    gap: 0px;
    padding-left: 4px;
    justify-content: left;
    background-color: #333;
    overflow-y: auto;
    overflow-x: hidden;
}
.dark-mode.modalIcons{
    filter: invert(1);
}
.gallery-item {
    cursor:alias;
    /* --text:white; */
    color:white;
    position: relative;
    width:calc(24vw - 12px);
    background-size: cover; 
    background-repeat: no-repeat;
    box-sizing:border-box;
    border: 4px solid #333;
    background-position: center;
    position: relative;
    min-height:calc(25vw);
    margin: 2em;
    margin-right:0.5em;
    margin-left:0.5em;
    margin-bottom:4em;
    color:white !important;
}
.liminalSpace{ background: linear-gradient(180deg, rgba(101, 101, 101, 1) 0%, rgba(244, 244, 244, 1) 22%, rgba(254, 253, 253, 1) 36%, rgba(207, 207, 207, 1) 60%, rgba(166, 166, 166, 1) 72%, rgba(131, 131, 131, 1) 94%, rgba(92, 92, 92, 1) 100%);
}
.liminalSpace, .liminalSpace a{color:black;}

button{background-color: unset;}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}
.card-icon{
    color:rgb(183, 183, 183);
}
.meta-info {
    position: absolute;
    top: calc(100% + 0.5em);
    left: 0;
    right: 0;
    height: 3em;
    /* background: #333; */
    color: #fff;
    padding: 10px;
    opacity: 1;
    /* transition: opacity 0.3s; */
}
.meta-info a, .meta-info a:link, .meta-info a:visited{color:white;}

@media (max-width: 768px) {
    .gallery-item {
        width: 100%; /* Stack items one-up on mobile */
        min-height: 100vw; /* Adjust height as needed */ 
       }
       .modal-content {
        width: 95%; /* Adjust width for smaller screens */
        margin: 10% auto; /* Adjust margin for smaller screens */
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 100%; /* 1 image per row on mobile */
        height: 100vw;
    }
}
.icon-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.decade{
    z-index: 99;
    background-color: #333;
    color: white;
    padding-top: 1em;
    padding-left: 1em;
    padding-bottom: 0.5em;
    /* margin: 1em; */
    position: sticky;
    top: 2em;
    font-size: 2em;
    text-align: left;
}
.icon {
    text-decoration: none;
    font-size: 1.5em;
    cursor: pointer;
}
/* Add this to your styles.css file */
.highlight {
    background-color: yellow;
}
::highlight(search-results) {
    background-color: #ff0;
    color: black;
  }

  .result-item {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    border:2px solid #FF0;
}
.result-list{
    display: -ms-inline-grid;
    display:-moz-inline-grid;
}
.result-item p {
    margin: 5px 0 0;
    color: #555;
}

.result-item strong {
    background-color: yellow;
}
.modal-text.result-item::before{
    content: "↗ Open PDF to result [p";
    margin-right: 0.5em;
}
.modal ul{
    display:grid;
    margin-top:1em;
    color:var(--text);
}

.modal ul, li{
    list-style-type: none;
    padding: 0;
    color:var(--text);
    display:inline-grid;
}
.modal li{
    width:100%;
}
.modal.p a, .modal.p a:link, .modal.p a:hover, .modal.p a:visited, 
.modal a, .modal a:visited, .modal a:active, .modal a:hover {
    color:var(--text); 
    border-bottom: none;
    text-decoration: none  !important;
}
  input::placeholder {
    color: #666;
    /* opacity: 0.5; */
  }
  input[type=text], input[type=email] {
    font-size: 0.8em;
    width:31vw;
    background: none;
    /* cursor-color:blue; */
    /* background-color: #7c7c7c; */
    border: none;
    border-bottom: 2px solid black;
}



.modal-content {
    /*color: var(--text);*/
    color:black;
    /* background-color: rgb(0, 0, 0); */
    background-color: var(--bg);
    /* margin: 15% auto; */
    padding: 30px;
    height:100%;
    border: 1px solid #888;
    /* width: 70%; */
    overflow-y: scroll;
    /*height: 100%;*/
}
.modalIcons{
    height:1.5em !important;
    width:auto !important;
    display: inline !important
}
.modal-body {
    width: 100%;
    flex-grow: 120;
    display: inline-flex
;
    align-items: stretch;
    flex-wrap: wrap;
    flex-grow: 4;
    column-gap: 2em;
    flex-direction: row;
    flex-basis: max-content;
    justify-content: space-around;
}

.modal-thumbnail {
    min-width: 150px;
    width: 90%;
    /* margin-right: 20px; */
}

.modal-thumbnail img {
   width: 76%;
    height: auto;
}
.two{width:40%;margin-top:4em;} 
.modal-text {
        flex: 0;
    /* width: 114%; */
    /* min-width: 37%; */
    max-width: 45%;
    flex-basis: fit-content;
}
.modal-body a, .modal-body a:visited, .modal-body a:active{
    color:var(--text);
}
.modal-body a:hover {color:#aaa}

@media (max-width: 600px) {
    .modal-body {
        flex-direction: column-reverse;
    }
    .two{
    padding:0 !important;
    margin-bottom:1em;
}
.close{
    top:2em;
}
    .modal-thumbnail {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .modal-text{max-width: 100%;width:100%;}
}
.close {
    position:absolute;
	direction:rtl;
    color: #333;
    float: right;
    font-size: 28px;
    font-weight: bold;
	width:93%;
	left:5%;
	top:3%;
	font-size:xxx-large;
}

.close:hover,
.close:focus {
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
}