/* ******  styles.css v.1.7.1 ****** */
/* index.php 25.02.25 06:47 */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');
html {
    box-sizing: border-box;
}

*, *::after, *::before {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 400;
    margin: 0;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

html, body, .slider, .slide-content {
    height: 100%;
    margin: 0;
    /* overflow: hidden; */
}

/* NAVBAR TOP */
/* .container {
    max-width: 1600px;
    margin: 20px;
    padding: 0px 0px 0 10px;
} */

.wrapper {
    margin-top: 120px;
}
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0px 0px 0 10px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.header__inner {
    background-color: #333;
    padding: 10px 0px;
    align-items: flex-end;
    height: 100px;
}

.title {
    display: flex;
    color: white;
    width: 400px;
    margin: 0 0 0 10px;
}

.nav {
    display: flex;
    gap: 20px;
    margin: -15px 0 10px 0;
    align-items: center;
    position: relative;
    justify-content: right;
    padding: 10px;
    text-align: center;
}

.nav a {
    color: white;
    height: 40px;
    width: auto;
    padding: 10px;
    overflow: hidden;
}

.nav a:Hover {
    color: black;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.nav > span.add-to-album {
    display: none;
    font-size: 40px;
}

.user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.user-menu__toggle {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 16px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    min-width: 135px;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}


.user-menu__settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 16px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    min-width: 48px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    margin-right: 6px;
}

.user-menu__settings:hover,
.user-menu__settings:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
}

.user-menu__toggle:focus,
.user-menu__toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
}

.user-menu__icon {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
    margin-right: 6px;
    color: #fff !important;
}

.user-menu__label {
    display: inline-block;
    font-size: 15px;
    color: #fff !important;
    margin: 0 6px;
}

.user-menu__chevron {
    font-size: 10px;
    line-height: 1;
    margin-left: 6px;
    color: #fff !important;
}

.user-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-radius: 14px;
    padding: 10px 0;
    min-width: 160px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    display: none;
    z-index: 10000;
}

.user-menu.is-open .user-menu__panel {
    display: block;
}

.user-menu__panel--mobile {
    position: static;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: none;
    margin-top: 8px;
}

.user-menu__panel--mobile .user-menu__item,
.user-menu__panel--mobile .user-menu__current {
    padding-left: 20px;
    padding-right: 20px;
}

.user-menu__current {
    display: block;
    padding: 10px 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.user-menu__current-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.65;
}

.user-menu__current-name {
    display: block;
    font-size: 15px;
    margin-top: 4px;
}

.user-menu__item {
    display: block;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    text-decoration: none;
}

.user-menu__item:hover,
.user-menu__item:focus {
    background: rgba(255, 255, 255, 0.15);
}

.user-menu__item--active {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-menu .user-menu {
    width: 100%;
    display: block;
    margin-left: 0;
}

.mobile-menu .user-menu__toggle {
    width: 100%;
    display: block;
    text-align: center;
}

.mobile-menu .user-menu__settings {
    width: 100%;
    margin-right: 0;
    margin-bottom: 8px;
}

.mobile-menu .user-menu__panel {
    width: 100%;
}

/* ACCOUNT PAGE */

.account-wrapper {
    margin-top: 140px;
    padding: 20px 0 60px;
}

.account-card {
    background: #f3f6fb;
    border-radius: 16px;
    padding: 24px 24px 32px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
    max-width: 820px;
    margin: 0 auto;
}

.account-settings-block {
    margin-bottom: 20px;
}

.account-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 24px;
    color: #1f2937;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.account-table th {
    width: 32%;
    background: #eef1f8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
    color: #374151;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #dbe1ec;
}

.account-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #111827;
    border-bottom: 1px solid #dbe1ec;
}

.account-table tr:last-child th,
.account-table tr:last-child td {
    border-bottom: none;
}

.account-password-link {
    color: #1d4ed8;
    text-decoration: underline;
    font-size: 14px;
    margin-right: 8px;
}

.account-password-link:hover,
.account-password-link:focus {
    text-decoration: none;
}

.account-icon-button {
    background: rgba(29, 78, 216, 0.15);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 16px;
    line-height: 32px;
    text-align: center;
    color: #1d4ed8;
}

.account-icon-button:hover,
.account-icon-button:focus {
    background: rgba(29, 78, 216, 0.3);
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
}

.account-actions > * {
    margin-right: 12px;
    margin-bottom: 12px;
}

.account-actions > *:last-child {
    margin-right: 0;
}

.account-inline-form {
    display: inline-block;
}

.btn {
    display: inline-block;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.account-card .btn,
.account-actions .btn,
.account-modal .btn {
    display: inline-block;
    width: auto;
    height: auto;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    line-height: 1.2;
}

.btn-primary {
    background: #1d4ed8;
    color: #ffffff;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.btn-secondary {
    background: #6b7280;
    color: #ffffff;
}

.btn:hover,
.btn:focus {
    opacity: 0.9;
}

.account-alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.account-alert--error {
    background: #fee2e2;
    color: #b91c1c;
}

.account-alert--success {
    background: #dcfce7;
    color: #166534;
}

.account-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 20000;
    padding: 20px;
    overflow-y: auto;
}

.account-modal.is-visible {
    display: block;
}

.account-modal__dialog {
    max-width: 480px;
    margin: 60px auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    position: relative;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.35);
}

.account-modal__dialog--wide {
    max-width: 1150px;
    width: 99%;
}

.account-modal__title {
    margin: 0 0 20px;
    font-size: 20px;
    color: #1f2937;
}

.account-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

.account-form label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #4b5563;
    margin-bottom: 12px;
}

.account-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 6px;
}

.account-modal__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 20px;
}

.account-modal__buttons .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

.account-modal__spacer {
    flex-grow: 1;
    display: inline-block;
    min-width: 0;
}

.account-encrypt-label {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-transform: none;
    color: #374151;
    cursor: pointer;
    margin-bottom: 12px;
}

.account-encrypt-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .account-card {
        padding: 20px 16px;
    }

    .account-table th,
    .account-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .account-modal__dialog {
        margin: 40px auto;
        padding: 20px;
    }

    .account-modal__dialog.account-modal__dialog--wide {
        max-width: 100%;
    }
}

/* FOLDER PICKER */

.folder-picker__dialog {
    max-width: 660px;
    width: 94vw;
}

.folder-picker__breadcrumb {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 6px 10px;
    margin-bottom: 8px;
    font-size: 0.82em;
    min-height: 34px;
    word-break: break-all;
}

.folder-picker__breadcrumb-sep {
    color: #bbb;
    margin: 0 2px;
}

.folder-picker__breadcrumb-item {
    color: #0066cc;
    cursor: pointer;
}

.folder-picker__breadcrumb-item:hover {
    text-decoration: underline;
}

.folder-picker__breadcrumb-item--current {
    color: #333;
    font-weight: 600;
    cursor: default;
}

.folder-picker__body {
    display: -webkit-flex;
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    height: 300px;
    margin-bottom: 8px;
}

.folder-picker__sidebar {
    width: 150px;
    min-width: 150px;
    background: #f2f2f2;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    padding: 6px 0;
}

.folder-picker__sidebar-title {
    font-size: 0.72em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px 6px;
    font-weight: 600;
}

.folder-picker__shortcut {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 0.88em;
    color: #333;
}

.folder-picker__shortcut:hover {
    background: #e0e0e0;
}

.folder-picker__shortcut--active {
    background: #0066cc;
    color: #fff;
}

.folder-picker__list {
    -webkit-flex: 1;
    flex: 1;
    overflow-y: auto;
    background: #fff;
}

.folder-picker__item {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 0.9em;
    border-bottom: 1px solid #f3f3f3;
}

.folder-picker__item:last-child {
    border-bottom: none;
}

.folder-picker__item:hover {
    background: #e8f0fe;
}

.folder-picker__item--up {
    color: #888;
    font-style: italic;
}

.folder-picker__icon {
    font-size: 1em;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}

.folder-picker__empty {
    padding: 20px 14px;
    color: #aaa;
    font-size: 0.88em;
    font-style: italic;
}

.folder-picker__status {
    font-size: 0.82em;
    color: #888;
    min-height: 1.1em;
    margin-bottom: 6px;
}

.folder-picker__new-row {
    display: -webkit-flex;
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.folder-picker__new-row input {
    -webkit-flex: 1;
    flex: 1;
}

/* END FOLDER PICKER */

/* END NAVBAR TOP */

/* NAVBAR DROPDOWN */

.nav .dropdown_menu {
    position: relative;
    width: auto;
}

/* main button style */
.nav .dropdown_menu > a {
    color: white;
    height: 40px;
    width: auto;
    border-radius: 10px;
    padding: 10px;
    overflow: hidden;
    /* background-color: rgba(255, 255, 255, 0.7); */
    display: inline-block;
    text-align: center;
    transition: border-radius 0.3s;
}

/* remove bottom border-radius when hovered */
.nav .dropdown_menu:hover > a {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.nav .dropdown_menu > a:hover {
    color: black;
    background-color: rgba(255, 255, 255, 0.7);
}

/* dropdown itself */
.nav .dropdown_menu-content {
    display: none;
    position: absolute;
    top: 100%;
    margin-top: -4px; /* eliminate the visible gap */
    left: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.8);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow: hidden;
    text-align: center;
}


/* show dropdown on hover */
.nav .dropdown_menu:hover .dropdown_menu-content {
    display: flex;
    flex-direction: column;
}

/* dropdown links */
.nav .dropdown_menu-content a {
    color: white;
    padding: 10px;
    text-decoration: none;
    display: block;
    text-align: center;
}
.nav .dropdown_menu-content a:hover {
    color: black;
    border-radius: 0px;
}
/* 
.nav .dropdown_menu-content a {
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
} */
/* .nav .dropdown_menu:hover .dropdown_menu-content {
    display: flex;
} */
@media (hover: none) and (pointer: coarse) {
    .nav .dropdown_menu-content {
        display: none;
    }
    .nav .dropdown_menu.active .dropdown_menu-content {
        display: flex;
        flex-direction: column;
    }
}

/* END NAVBAR DROPDOWN */



/* LIGHTBOX */

.lightbox-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* .lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
} */

#image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure the image scales properly */
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-arrow.left {
    left: 20px;
}

.lightbox-arrow.right {
    right: 20px;
}
img:hover{
    cursor: pointer;
}
video:hover{
    cursor: pointer;
}
#lightbox video {
    pointer-events: auto;
    z-index: 99999;
}
.caption-overlay {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    text-align: center;
    color: black;
    background-color: yellow;
    font-size: 0.9em;
    padding: 2px 0;
    border-radius: 0 0 8px 8px;
}

.album-overlay {
    position: absolute;
    top: 6px;
    left: 6px;
    max-width: calc(100% - 12px);
    color: #ffffff;
    background: rgba(0, 0, 0, 0.6);
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
}

/* LIGHTBOX */


.main {
    display: flex;

    align-items: center;
    justify-content: center;
    padding-top: 20px; /* Match .header height (100px) + spacing */
}

/* FLEX LAYOUT */

.thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    width: 100%;
}

/* Old iPad gap override - 2px gap instead of 10px */
body.is-old-ipad .thumbnails {
    gap: 2px;
}

body.is-old-ipad .album-thumbnails {
    gap: 2px;
}

/* Fallback for old iPad browsers that don't support gap */
@supports not (gap: 2px) {
    body.is-old-ipad .thumbnails {
        margin: -2px;
    }

    body.is-old-ipad .thumbnails > .thumbnail {
        margin: 2px;
    }

    body.is-old-ipad .album-thumbnails {
        margin: -2px;
    }

    body.is-old-ipad .album-thumbnails .thumbnail {
        margin: 2px;
    }
}

.view-controls {
    text-align: left;
    margin: 120px 20px 0 0;
    font-size: 0;
}

.view-controls h2 {
    font-size: 24px;
    margin: 0;
    display: inline-block;
}

.view-controls label,
.view-controls select {
    display: inline-block;
    font-size: 16px;
    margin-left: 8px;
}

@supports not (justify-content: space-evenly) {
    .thumbnails {
        justify-content: center;
    }
}

@supports not (gap: 10px) {
    .thumbnails {
        margin: -5px;
    }

    .thumbnails > .thumbnail {
        margin: 5px;
    }

    .view-controls label,
    .view-controls select {
        margin: 4px;
    }
}

.thumbnail {
    position: relative;
    flex: 0 0 calc(16.6667% - 9px);
    max-width: calc(16.6667% - 9px);
    overflow: hidden;
}

.thumbnail-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.thumbnail img {
    display: block;
    /* width: 100%; */
    border-radius: 10px;
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@supports not (aspect-ratio: 1/1) {
    .thumbnail img,
    .thumbnail video {
        width: 150px;
        height: 150px;
    }
}

.thumbnail video {
    display: block;
    /* width: 100%; */
    border-radius: 10px;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@media (max-width: 1599px) {
    .thumbnail {
        flex-basis: calc(20% - 8px);
        max-width: calc(20% - 8px);
    }
}

@media (max-width: 1279px) {
    .thumbnail {
        flex-basis: calc(25% - 8px);
        max-width: calc(25% - 8px);
    }
}

@media (max-width: 1023px) {
    .thumbnail {
        flex-basis: calc(33.3334% - 7px);
        max-width: calc(33.3334% - 7px);
    }
}

@media (max-width: 767px) {
    .thumbnail {
        flex-basis: calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
}

@media (max-width: 479px) {
    .thumbnail {
        flex-basis: 100%;
        max-width: 100%;
    }
}

.album-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.album-thumbnails .thumbnail {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
    max-width: 140px;
    max-height: 140px;
}

.album-thumbnails .thumbnail img,
.album-thumbnails .thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.album-view-page .thumbnails .thumbnail {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
    max-width: 140px;
    max-height: 140px;
}

body.album-view-page .thumbnails .thumbnail img,
body.album-view-page .thumbnails .thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-wrapper{
    border-radius: 10px;
}

/* END OF FLEX LAYOUT */

/* INDEX.PHP */
.menu-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

.dropdown {
    position: absolute;
    top: 40px;
    right: 10px;
    background: white;
    border: 1px solid #ccc;
    display: none;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.dropdown a {
    padding: 10px;
    text-decoration: none;
    color: black;
    display: block;
    white-space: nowrap;
}

.dropdown a:hover {
    background: #f0f0f0;
}

.checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    opacity: 0.5;
    transform: scale(1.5); /* Optional: makes checkbox easier to see */
}

.list-view .checkbox {
    position: static;
    transform: none;
    margin-right: 10px;
    opacity: 1;
}

.list-item.active {
    background-color: #f0f0f0;
}

.checkbox:checked {
    opacity: 1;
}

.thumbnail {
    position: relative;
}


.add-to-album {
    display: none;
    margin-left: 5px;
    font-size: 1.2em;
    cursor: pointer;
}

.add-to-album.active {
    display: inline-block;
}

#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

#popup button {
    display: block;
    margin: 10px 0;
    padding: 10px;
    width: 100%;
    cursor: pointer;
}

.list-view {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

.list-item input[type="checkbox"] {
    margin-right: 10px;
}

.list-item .file-type {
    width: 50px;
    text-align: center;
}

.list-item .file-name {
    flex: 1;
    margin-left: 10px;
}

.file-name-input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.3;
    padding: 8px 10px;
    border: 1px solid #7f9db9;
    border-radius: 4px;
    background: #fffef2;
    color: #111;
    cursor: text;
    -webkit-appearance: none;
    appearance: none;
}

.file-name-input:focus {
    outline: 2px solid #2f6da3;
    border-color: #2f6da3;
    background: #ffffff;
}

.preview-pane {
    margin-top: 200px;
    border: 1px solid #ccc;
    padding: 10px;
}

.preview-pane img,
.preview-pane video {
    max-width: 100%;
    max-height: 400px;
}


/* END INDEX.PHP */

/* FULLVIEW.PHP */

.containerFV {
    background-color: #333;
    width: 140px;
    height: 100%;
    margin: 0 0 0 0;
    padding: 0px 10px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    text-align: left;
}

.header__innerFV {
    padding: 10px 0px;
}

.titleFV {
    color: white;
    width: 100px;
    margin: 0 0 0 10px;
}

navFV {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin: 100px 10px 0 0;
}

navFV a {
    color: white;
    text-transform: uppercase;
}

mainFV {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 200px;
}

.fullview {
    display: flex;
    /* align-items: center;
    justify-content: center; */
    position: relative;
    margin: auto 0;
}

.media-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 95%;
}

.centered-media {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
    border-radius: 10px;
    margin: 20px 0 0 0;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    text-decoration: none;
    color: black;
    background-color: rgba(255, 255, 255, 0);
    padding: 10px;
    border-radius: 50%;
    z-index: 10;
}

.left-arrow {
    left: calc(-50px);
}

.right-arrow {
    right: calc(-50px);
}

footer {
    display: flex;
    width: 100%;
    height: 30px;
    margin: 20px 0 0 0;
    bottom: 0;
    border-top: 2px;
    background-color: #333;
    color: white;
    justify-content: center;
    align-items: center;
}

@media (max-width: 665px) {
    

    mainFV {
        margin: 0 0 0 0;
    }
    .containerFV {
        background-color: #333;
        width: auto;
        max-width: 1600px;
        height: 100px;
        /* margin: 20px auto; */
        padding: 0px 10px;
        position: sticky;
        top: 0;
        left: 0;
        z-index: 1000;
        text-align: left;
    }
    
    .header__innerFV {
        display: flex;
        flex-direction: row;
        padding: 10px 0px;
        align-items: flex-end;
        height: 100px;
    }
    
    .titleFV {
        color: white;
        width: 400px;
        margin: 0 0 0 10px;
    }
    
    .navFV {
        display: flex;
        flex-direction: row;
        gap: max(35px, 5px);
        margin: 10px 10px 0 0;
        justify-content: right;
    }
    
    .navFV a {
        color: white;
        text-transform: uppercase;
    }

    .fullview {
        margin: 0px 60px 0 60px;
    }

    .thumbnail {
        
        width: 200px;
        height: 200px;
    }
    

} /* END MEDIA MAX 665px */

/* END FULLVIEW.PHP */

/* ALBUMS.PHP */

.album-row {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.album-name {
    width: 150px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: left;
}

.album-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}




section {
    margin: 0;
}

.albums {
    margin: 0 20px 0 00px;
}

.album {
    margin-bottom: 20px;
}

.album-name {
    font-size: 1.5em;
    margin: 10px 0 10px 0;
}



/* END ALBUMS.PHP */

/* ALBUM-VIEW.PHP */

/* END ALBUM-VIEW.PHP */

#delete-from-album {
    display: none;
    cursor: pointer;
    color: red;
    font-size: 24px;
    margin-left: 20px;
}
.lightbox-content-wrapper {
    position: relative;
    display: inline-block;
}
#lightboxCheckbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10001;
    width: 24px;
    height: 24px;
}
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    z-index: 9999;
    display: none;
    text-align: center;
}
.popup button {
    margin: 10px;
    padding: 8px 16px;
}

/* legacy helpers preserved elsewhere */

.pagination-arrow {
    padding: 8px 16px;
    background-color: #333;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.pagination-arrow:hover {
    background-color: red;
}

.thumbnails .thumbnail {
    flex: 0 0 calc(16.6667% - 9px);
    max-width: calc(16.6667% - 9px);
}

@media (max-width: 1599px) {
    .thumbnails .thumbnail {
        flex-basis: calc(20% - 8px);
        max-width: calc(20% - 8px);
    }
}

@media (max-width: 1279px) {
    .thumbnails .thumbnail {
        flex-basis: calc(25% - 8px);
        max-width: calc(25% - 8px);
    }
}

@media (max-width: 1023px) {
    .thumbnails .thumbnail {
        flex-basis: calc(33.3334% - 7px);
        max-width: calc(33.3334% - 7px);
    }
}

@media (max-width: 767px) {
    .thumbnails .thumbnail {
        flex-basis: calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
}

@media (max-width: 479px) {
    .thumbnails .thumbnail {
        flex-basis: 100%;
        max-width: 100%;
    }
}
  

/* LIGHTBOX */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-content img,
.lightbox-content video  {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-arrow.left {
    left: 20px;
}

.lightbox-arrow.right {
    right: 20px;
}
img:hover{
    cursor: pointer;
}
video:hover{
    cursor: pointer;
}
#lightbox video {
    pointer-events: auto;
    z-index: 99999;
}
.caption-overlay {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    text-align: center;
    color: black;
    background-color: yellow;
    font-size: 0.9em;
    padding: 2px 0;
    border-radius: 0 0 8px 8px;
}
/* END LIGHTBOX */

img, video {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
}

/* BURGER MENU */
.menu-toggle {
    display: none;
    font-size: 36px;
    cursor: pointer;
    color: white;
    position: absolute;
    right: 20px;
    top: 30px;
    z-index: 10001;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 10000;
}

.mobile-menu a {
    color: white;
    font-size: 30px;
    text-decoration: none;
}

/* Responsive behavior */
@media (max-width: 950px) {
    .menu-toggle {
        display: block;
    }
    .nav {
        display: none;
    }
}

.mobile-menu .dropdown_menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

.mobile-menu .dropdown_menu > a {
    font-size: 30px;
    padding: 10px 0;
}

.mobile-menu .dropdown_menu-content {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
}

.mobile-menu .dropdown_menu-content a {
    font-size: 24px;
    padding: 5px 0;
    text-align: center;
}

/* Active dropdown menu */
.mobile-menu .dropdown_menu.active .dropdown_menu-content {
    display: flex;
}

:root {
    --pg-header-height: 50px;
    --pg-chipbar-height: 34px;
    --pg-sidebar-width: 230px;
    --pg-header-bg: #ffffff;
    --pg-panel-bg: #ffffff;
    --pg-border: #dedede;
    --pg-sidebar-border: #cfcfcf;
    --pg-chip-bg: #e8e8e8;
    --pg-chip-text: #666;
    /* --pg-chip-text: #212121; */
    --pg-text: #666;
    --pg-title: #181818;
    --pg-muted: #666666;
    --pg-overlay: rgba(0, 0, 0, 0.45);
    --pg-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

body.pg-header-layout {
    font-family: "Open Sans", sans-serif;
    color: #181818;
    color: var(--pg-text);
    background: #ffffff;
}

.pg-app-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 12000;
    background: #ffffff;
    background: var(--pg-header-bg);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    box-shadow: var(--pg-shadow);
}

.pg-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 50px;
    min-height: var(--pg-header-height);
    padding: 0 10px;
    border-bottom: 1px solid #dedede;
    border-bottom: 1px solid var(--pg-border);
}

.pg-topbar__left,
.pg-topbar__center,
.pg-topbar__right {
    display: flex;
    align-items: center;
}

.pg-topbar__left {
    min-width: 190px;
    gap: 8px;
}

.pg-topbar__center {
    flex: 1;
    justify-content: center;
    gap: 6px;
}

.pg-topbar__right {
    justify-content: flex-end;
    gap: 6px;
    min-width: 160px;
}

.pg-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 13px;
    background: transparent;
    color: #181818;
    color: var(--pg-text);
    cursor: pointer;
}

.pg-icon-button:hover,
.pg-icon-button:focus {
    background: #efefef;
    outline: none;
}

.pg-icon-button i {
    font-size: 17px;
    line-height: 1;
}

.pg-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #181818;
    color: var(--pg-title);
    text-decoration: none;
}

.pg-brand__mark {
    font-size: 17px;
    line-height: 1;
}

.pg-brand__text {
    font-size: 22px;
    /* font-size: 12px; */
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pg-search {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 620px;
    height: 28px;
}

.pg-search__input {
    width: 100%;
    height: 100%;
    padding: 0 10px;
    border: 1px solid #dedede;
    border: 1px solid var(--pg-border);
    border-right: none;
    border-radius: 14px 0 0 14px;
    font-size: 11px;
    color: #181818;
    color: var(--pg-text);
    background: #ffffff;
}

.pg-search__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    border: 1px solid #dedede;
    border: 1px solid var(--pg-border);
    border-radius: 0 14px 14px 0;
    background: #fafafa;
    color: #181818;
    color: var(--pg-text);
    cursor: pointer;
}

.pg-search__button i {
    font-size: 16px;
}

.pg-chipbar {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    min-height: var(--pg-chipbar-height);
    padding: 4px 10px 5px;
    margin-left: 230px;
    margin-left: var(--pg-sidebar-width);
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #dedede;
    border-bottom: 1px solid var(--pg-border);
    background: #ffffff;
    position: relative;
}

.pg-chipbar::-webkit-scrollbar {
    display: none;
}

.pg-header-chip,
.pg-chipbar__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 21px;
    padding: 0 8px;
    border-radius: 10px;
    /* border-radius: 6px; */
    background: #e8e8e8;
    background: var(--pg-chip-bg);
    color: #212121;
    color: var(--pg-chip-text);
    text-decoration: none;
    font-size: 16px;
    /* font-size: 9px; */
    font-weight: 600;
}

body.pg-header-layout .pg-chipbar .add-to-album {
    display: none;
}

body.pg-header-layout .pg-chipbar .batch-action {
    display: none;
}

body.pg-header-layout .pg-chipbar .batch-album-wrap {
    display: none;
    position: relative;
}

body.pg-header-layout.pg-batch-actions .pg-chipbar .pg-chip--slideshow {
    display: none;
}

body.pg-header-layout.pg-batch-actions .pg-chipbar .batch-action {
    display: inline-flex;
}

body.pg-header-layout.pg-batch-actions .pg-chipbar .batch-album-wrap {
    display: inline-flex;
}

.batch-album-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    z-index: 13000;
    padding: 6px 0;
    max-height: 260px;
    overflow-y: auto;
}

.batch-album-menu .batch-album-item {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 8px 12px;
    font-size: 12px;
    color: #1c1c1c;
    cursor: pointer;
}

.batch-album-menu .batch-album-item:hover,
.batch-album-menu .batch-album-item:focus {
    background: #f2f2f2;
    outline: none;
}

.batch-album-menu .batch-album-empty {
    padding: 8px 12px;
    font-size: 12px;
    color: #666666;
}

.pg-chipbar__action {
    cursor: pointer;
}

.pg-screen-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.45);
    background: var(--pg-overlay);
    opacity: 0;
    visibility: hidden;
    z-index: 11800;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pg-sidebar {
    position: fixed;
    top: 50px;
    top: var(--pg-header-height);
    left: 0;
    bottom: 0;
    width: 230px;
    width: var(--pg-sidebar-width);
    background: #ffffff;
    background: var(--pg-panel-bg);
    border-right: 1px solid #cfcfcf;
    border-right: 1px solid var(--pg-sidebar-border);
    z-index: 11900;
    overflow-y: auto;
    transition: transform 0.2s ease;
}

.pg-app-header--with-chips ~ .pg-sidebar {
    top: 84px;
    top: calc(var(--pg-header-height) + var(--pg-chipbar-height));
}

.pg-sidebar__head {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    min-height: var(--pg-header-height);
    padding: 0 10px;
    border-bottom: 1px solid #dedede;
    border-bottom: 1px solid var(--pg-border);
}

.pg-sidebar__content {
    padding: 6px 0 12px;
}

.pg-sidebar__section {
    padding: 6px 5px;
    border-bottom: 1px solid var(--pg-sidebar-border);
}

.pg-sidebar__section--mobile {
    display: none;
}

.pg-sidebar__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    color: #181818;
    color: var(--pg-text);
    text-decoration: none;
    font-size: 11px;
    border-radius: 7px;
}

.pg-sidebar__link i {
    font-size: 16px;
    width: 18px;
    text-align: center;
    flex: 0 0 18px;
}

.pg-sidebar__link:hover,
.pg-sidebar__link:focus,
.pg-sidebar__link.is-active {
    background: #f3f3f3;
    outline: none;
}

.pg-sidebar__link--button {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.pg-sidebar__account {
    padding: 6px 8px;
}

body.pg-header-layout .user-menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 118px;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid #dedede;
    border: 1px solid var(--pg-border);
    border-radius: 13px;
    background: #ffffff;
    color: #181818;
    color: var(--pg-text);
    cursor: pointer;
}

body.pg-header-layout .user-menu__toggle:hover,
body.pg-header-layout .user-menu__toggle:focus {
    background: #f4f4f4;
    outline: none;
}

body.pg-header-layout .user-menu__icon,
body.pg-header-layout .user-menu__label,
body.pg-header-layout .user-menu__chevron {
    color: #181818 !important;
    color: var(--pg-text) !important;
}

body.pg-header-layout .user-menu__panel {
    background: #ffffff;
    color: #181818;
    color: var(--pg-text);
    border: 1px solid #dedede;
    border: 1px solid var(--pg-border);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.14);
}

body.pg-header-layout .user-menu__item {
    color: #181818;
    color: var(--pg-text);
}

body.pg-header-layout .pg-app-header ~ .wrapper {
    /* iOS 9 fallback (no CSS variables) */
    margin-top: 84px;
    margin-left: 230px;
    width: calc(100% - 230px);
    margin-top: calc(var(--pg-header-height) + var(--pg-chipbar-height));
    margin-left: var(--pg-sidebar-width);
    width: calc(100% - var(--pg-sidebar-width));
}

body.pg-header-layout .pg-app-header--no-chips ~ .wrapper {
    /* iOS 9 fallback (no CSS variables) */
    margin-top: 50px;
    margin-top: var(--pg-header-height);
}

body.pg-header-layout .pg-app-header ~ .wrapper > .container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 10px 16px;
}

body.pg-header-layout .wrapper .main {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    width: 100% !important;
}

body.pg-header-layout #thumbnailContainer.thumbnails {
    width: 100% !important;
}

body.pg-header-layout .view-controls {
    margin: 0 0 8px;
    padding-right: 10px;
    text-align: left;
}

body.pg-header-layout .view-controls h2 {
    font-size: 24px;
    margin: 0;
    display: inline-block;
}

body.pg-header-layout #thumbnailContainer.thumbnails {
    box-sizing: border-box;
    padding-right: 10px;
}

body.pg-header-layout .pg-chipbar,
body.pg-header-layout .pg-app-header ~ .wrapper {
    margin-left: 0 !important;
    width: 100% !important;
}

body.pg-header-layout .pg-app-header ~ .wrapper > .container {
    width: 100% !important;
}

body.pg-header-layout .pg-sidebar {
    transform: translateX(-100%);
}

body.pg-header-layout.pg-sidebar-open .pg-screen-overlay {
    opacity: 1;
    visibility: visible;
}

body.pg-header-layout.pg-sidebar-open .pg-sidebar {
    transform: translateX(0);
}

body.pg-header-layout.pg-sidebar-open .pg-chipbar {
    margin-left: 230px;
    margin-left: var(--pg-sidebar-width);
}

body.pg-header-layout.pg-sidebar-open .pg-app-header ~ .wrapper {
    margin-left: 230px !important;
    margin-left: var(--pg-sidebar-width) !important;
    width: calc(100% - 230px) !important;
    width: calc(100% - var(--pg-sidebar-width)) !important;
}

@media (max-width: 1180px) {
    .pg-topbar__left {
        min-width: 150px;
    }

    .pg-topbar__right {
        min-width: 108px;
    }

    .pg-brand__text {
        font-size: 11px;
    }
}

@media (max-width: 960px) {
    .pg-topbar {
        padding: 0 8px;
    }

    .pg-topbar__center {
        gap: 10px;
    }

    .pg-topbar__mic,
    .pg-topbar__right .user-menu {
        display: none;
    }

    .pg-chipbar {
        margin-left: 0;
        padding-left: 8px;
        padding-right: 8px;
    }

    .pg-sidebar {
        top: 0;
        transform: translateX(-100%);
        box-shadow: 18px 0 34px rgba(0, 0, 0, 0.16);
    }

    .pg-sidebar__head,
    .pg-sidebar__section--mobile {
        display: block;
    }

    .pg-sidebar__head {
        display: flex;
    }

    body.pg-header-layout .pg-app-header ~ .wrapper {
        margin-left: 0;
        width: 100%;
    }

    body.pg-header-layout .pg-app-header ~ .wrapper > .container {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .pg-search {
        max-width: none;
    }

    .pg-topbar__left {
        min-width: 0;
        gap: 5px;
    }

    .pg-topbar__right {
        min-width: 0;
        gap: 3px;
    }

    .pg-brand__text {
        font-size: 10px;
    }
}

@media (max-width: 560px) {
    .pg-topbar {
        gap: 10px;
    }

    .pg-topbar__center {
        justify-content: flex-end;
    }

    .pg-search {
        display: none;
    }

    .pg-mobile-search {
        display: inline-flex;
    }

    body.pg-header-layout .pg-app-header ~ .wrapper > .container {
        padding-left: 8px;
        padding-right: 8px;
    }
}
