body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 20px);
    justify-content: space-between;
    background-color: #fff;
}

header {
    width: calc(100vw-20px);
    text-align: left;
    background-color: #171717;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;    
}

input {
    background-color: #303030;
    color: rgb(140,140,140);
}

button {
    background-color: #0f0f0f;
    color: rgb(92 92 90);
}

.slideshow-button:hover {
    color: rgb(92, 92, 92);
    cursor: pointer;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

header h1 {
    margin: 0;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: rgb(140,140,140);
}

.iset-nav {
    display: flex;
    flex-direction: row;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

.menu-iset {
    display: flex;
    flex-direction: row;
    padding: 1em 2em 1em 1em;
    padding-right: 20px;
    background-color: #171717;
    border-radius: 5px;
    cursor: pointer;
    color: #aaa;
    text-align: left;
    flex-basis: 22%
}

.menu-iset img {
    width: auto;
    height:110px;
    object-fit: cover;
    margin-right: 1em;
}

.menu-iset h2 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 800;
    padding-bottom: 4px;
    color: #fff;;
}

.menu-iset p {
    margin: 0;
    font-size: 0.8em;
    font-weight: 500;
    max-width: 170px;
    color: #aaa;
}

.menu-iset:hover {
    background-color: #333;
}

.filter-container {
    display: flex;
    justify-content: left;
    gap: 10px;
}

.filter-dropdown, #keywordFilter, #toggleViewMode, #startDate, #endDate {
    padding: 6px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Main Image Display surface, can operate in List of Mosaic/Grid mode */
main {
    flex: 1;
    width: calc(100vw);
    overflow-y: auto;
    box-sizing: border-box;
    scrollbar-color: #d1d1d1 #fff;
    background-color: white;
}

.image-container {
    display: flex;
    flex-flow: row;
    gap: 6em;
    padding: 4em;
}

/* Default horizontal image layout */
.image-container .image-item {
    border-radius: 0;
    background-color: #fff;
    color: #2e2e2e;
}

.image-item .image-block {
    display: flex;
    flex-direction: row;
    flex: 1;  
}

.image-block img {
    --image-height: calc(100vh - 320px);
    height: var(--image-height);
    border-radius: 0;
    padding-bottom: 1.5em;
    cursor: pointer;
}

.image-block .image-description {
    width: 200px;
    background: #fff;
    margin-left: 1em;
    font-size: 0.9em;
    color: #b3b3b3;
    font-weight: 500;
    align-content: flex-end;
    padding-bottom: 1.5em;
    line-height: 1.5;
}

.image-item .image-title {
    padding-bottom: 5px;
    font-size: 1em;
    font-weight: 800;
}

.image-item .image-date {
    font-size: 0.75em;
    font-weight: 500;
}

/* mosaic/grid layout styles */
.image-container.mosaic {
    column-count: 3;
    column: 20px;
    flex-flow: row wrap;
    justify-content: center;
    gap: 14px;
    margin-left: 30px;
    margin-right: 30px;
}

.image-container.mosaic .image-item {
    margin-bottom: 0;
}


.image-container.mosaic img {
    --img-height: calc((100vh - 160px) / 3);
    height: var(--img-height);
    padding-bottom: 0px;
    cursor: pointer;
}

.spacer {
    flex-shrink: 0;
    width: 1px; /* Adjust based on your required padding */
}

/* Image Fade in used by both display modes. */
.fade-in { 
    animation: fadeIn 0.15s; 
    animation-fill-mode: forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

/* Image lazy loading styles. */
.lazyload {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazyload.loaded {
    opacity: 1;
}


footer {
    background-color: #333;
}

/* Pulse styles */
@keyframes pulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.2);
        filter: brightness(1.3);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes pulse-bigItem {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.3);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.pulse {
    animation: pulse 0.3s ease;
}

.pulse-bigItem {
    animation: pulse-bigItem 0.3s ease;
}

/* Slideshow Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(22,22,22);
}

.modal .close {
    position: absolute;
    top: 6%;
    right: 10px;
    cursor: pointer;
}

.modal .control-icon:hover,
.modal .control-icon:focus {
    color: #727272;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}

.modal #fullscreen,
.modal #showDescription {
    padding-top: 32px;
}

.slideshow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.slideshow-image {
    max-height: 88%;
    max-width: 90%;
    margin-bottom: 10px;
    box-shadow: 0 0 18px rgba(2, 2, 2, 0.6);
}

.slideshow-controls {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.slideshow-image-title {
    color: #404040;
    font-size: 1.2em;
    font-weight: 800;
    padding-top: 4px;
}

.slideshow-description {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
}

.slideshow-info {
    position: absolute;
    bottom: 10%;
    right: 10%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    font-weight: 200;
    font-size: 0.7em;
    line-height: 1.4em;
}

.metadata div {
    margin: 5px 0;
}

@media (max-width: 2048px) {
    .hamburger-menu {
        display: flex;
    }

    .iset-nav {
        display: none;
    }

    .iset-nav.open {
        padding: 0.75em 4em 1em 3.0em;
        display: flex;
        flex-wrap: wrap;
    }
}


.header-left {
    display: flex;
    align-items: center;
    color: #aaa;
}

.header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.material-symbols-outlined {
    cursor: pointer;
    font-size: 1.8em;
    margin-right: 8px;
    color: #aaa;
}

.modal .material-symbols-outlined {
    color: #404040;
}

.header-left #toggleNav {
    font-size: 1.5em;
    margin-left: 12px;
    margin-right: 2px;
    transition: all 0.3s;
    transition-timing-function: ease-out;
    transition-delay: 0.2s;
}

.header-left #toggleNav.open {
    color: #ff9800; 
    transform: rotate(-180deg);
    transform-origin: center;
    translate: 0px 5px;
}

#spotlight {
    margin-left: 0.5em;
    font-size: 1.1em;
    cursor: pointer;
}

#currentIset {
    color:#fff;
}


#currentIset {
    font-weight: bold;
    margin-left: 5px;
}

#toggleViewMode {
    transform: rotate(-90deg);
    transform-origin: center;
}

#toggleViewMode.active {
    color: #ff9800; /* Change color to indicate active mosaic view */
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 18px;
    background-color: #171717;
    color: #fff;
}

.filter-container .header-left {
    display: flex;
    align-items: center;
}

.filter-container .header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-right: 18px;
}

.filter-container .header-right #filterKeywordIcon,
.filter-container .header-right #filterCalenderIcon {
    padding-left: 30px
}

input[type="text"], input[type="date"] {
    background-color: #303030;
    color: rgb(140, 140, 140);
    padding: 6px;
    border: none;
    border-radius: 5px;
    margin-left: 8px;
}

.help-overlay {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
}

.help-overlay .control-icon.close-help {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.help-content {
    margin-top: 50px;
    text-align: left;
}

.help-section {
    margin-bottom: 30px;
}

.help-section h3 {
    margin-bottom: 10px;
}

.help-section ul {
    list-style: none;
    padding-left: 0;
}

.help-section ul li {
    margin-bottom: 10px;
}

.help-section ul li strong {
    color: #ff9800;
}

.star-rating {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding-left: 16px;
}

.star {
    font-size: 24px;
    color: #616160;
    width: 12px;
}

.star.selected {
    color: #ffffff; /* selected star color */
    transition: 0.3s;
}

.star:hover
/*.star:hover ~ .star*/ {
    color: #cdcdcd; /* hover star color */
    transition: 0.3s;
}

/* Share Modal Styles */
#shareModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(255,255,255);
    background-color: rgba(255, 255, 255, 0.9);
}


.modal-content textarea {
    display: block;
    width: 90%;
    border: none;
    outline: none;
    padding-bottom: 20px;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content button {
    cursor: pointer;
    background-color: #0f0f0f;
    color: rgb(255 255 255);
    margin: 5px;
    padding: 5px 20px;
    font-weight: 700;
}

