:root {
  --px-bg: #0b0d12;
  --px-surface: #121212;
  --px-surface-2: #1a1a1a;
  --px-border: #353535;
  --px-text: #f0f0f0;
  --px-muted: #b3b3b3;
  --px-accent: #e0a43f;
  --px-accent-2: #c98922;
}

body {
  background: var(--px-bg);
  color: var(--px-text);
}

a {
  color: var(--px-accent);
}

a:hover,
a:focus {
  color: #f1be63;
}

.infoBelt {
  background: linear-gradient(90deg, #33353a 0%, #3a3c42 50%, #2f3238 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.infoBelt span {
  color: #f0f0f0;
}

.infoBelt .leftInfo .link {
  color: var(--px-accent);
}

.navbar-inverse {
  background-color: #4d4f55;
}

.navbar-inverse .navbar-nav > li > a {
  color: #f0f0f0;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.btn,
button,
input[type="submit"],
input[type="button"],
.button,
input[type="submit"].btn,
button.btn {
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  transition: all 0.2s ease;
}

/* Primary actions */
.btn-warning,
input.btn-warning,
.btn.btn-warning,
.btn-primary,
.btn.btn-primary,
.button.green {
  background: linear-gradient(135deg, var(--px-accent), var(--px-accent-2));
  border-color: var(--px-accent-2);
  color: #11151d !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* Secondary actions */
.btn-success,
input.btn-success,
.btn.btn-success,
.btn-default,
.btn.btn-default,
.button.black {
  background: linear-gradient(135deg, #2f2f2f, #222222);
  border-color: #444444;
  color: #f3f3f3 !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

/* Danger actions */
.btn-danger,
input.btn-danger,
.btn.btn-danger {
  background: linear-gradient(135deg, #b93d3d, #9b2f2f);
  border-color: #932c2c;
  color: #ffffff !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.btn-warning:hover,
.btn-warning:focus,
input.btn-warning:hover,
.btn.btn-warning:hover,
.btn-primary:hover,
.btn-primary:focus,
.btn.btn-primary:hover,
.button.green:hover {
  background: linear-gradient(135deg, #f1b757, #d3932a);
  border-color: #d3932a;
  color: #0f131a !important;
}

.btn-success:hover,
.btn-success:focus,
input.btn-success:hover,
.btn.btn-success:hover,
.btn-default:hover,
.btn-default:focus,
.btn.btn-default:hover,
.button.black:hover {
  background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
  border-color: #545454;
  color: #ffffff !important;
}

.btn-danger:hover,
.btn-danger:focus,
input.btn-danger:hover,
.btn.btn-danger:hover {
  background: linear-gradient(135deg, #cc4b4b, #a93838);
  border-color: #a33838;
  color: #ffffff !important;
}

.btn[disabled],
.btn.disabled,
button[disabled],
input[type="submit"][disabled],
input[type="button"][disabled] {
  background: #3a3a3a !important;
  border-color: #4a4a4a !important;
  color: #f0f0f0 !important;
  opacity: 1;
}

/* Button text clarity and consistency */
.btn,
button,
input[type="submit"],
input[type="button"],
.button,
.upload_photos .upload_photos-btn,
.gallery_upload_photos a,
.add-section .add-gal p {
  text-shadow: none !important;
}

.container-fluid.navbar-inverse .form-control,
.form-signin .form-control,
.sign_up .form-control {
  background: #111111;
  border: 1px solid #3a3a3a;
  color: #f0f0f0;
  border-radius: 8px;
  min-height: 40px;
}

.container-fluid.navbar-inverse .form-control:focus,
.form-signin .form-control:focus,
.sign_up .form-control:focus {
  border-color: var(--px-accent);
  box-shadow: 0 0 0 3px rgba(224, 164, 63, 0.2);
}

.container-fluid.navbar-inverse .form-control::placeholder,
.form-signin .form-control::placeholder,
.sign_up .form-control::placeholder {
  color: #9a9a9a;
}

.modal-content {
  background: linear-gradient(170deg, #161616, #0d0d0d);
  border: 1px solid var(--px-border);
  border-radius: 12px;
  color: var(--px-text);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.table,
table {
  color: var(--px-text);
}

.table > thead > tr > th,
table thead th {
  background: #202020;
  color: #f0f0f0;
  border-color: #3a3a3a !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table > tbody > tr > td,
table tbody td {
  border-color: #303030 !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.02);
}

table#t01 tr:nth-child(even),
table#t01 tr:nth-child(odd),
#t02 tr:nth-child(even),
#t02 tr:nth-child(odd) {
  background-color: #151515 !important;
}

table#t01 th,
table#t02 th {
  background-color: #202020 !important;
  color: #f0f0f0 !important;
}

#shareworldmap_section #t02 > tbody > tr > td,
#shareworldmap_section #t02 > thead > tr > th {
  color: #ebebeb !important;
  border-color: #333333 !important;
}

.gallery_tab {
  border: 1px solid #343434;
  background: #111111;
}

.gallery_tab li.active,
.gallery_tab li.active div {
  background: #161616;
}

.left-sidebar .gallery_tab .scrollbar-warning li:nth-child(2n+1),
.left-sidebar .gallery_tab .scrollbar-warning li:nth-child(2n+2) {
  background: #151515 !important;
  border-bottom: 1px solid #2c2c2c;
}

.left-sidebar .gallery_tab .scrollbar-warning li a {
  color: #e6e6e6;
}

.featuremg {
  text-transform: none !important;
  font-size: 18px !important;
  letter-spacing: 0.01em;
}

.left-sidebar .gallery_tab .scrollbar-warning li:hover {
  background: #222222 !important;
}

/* Remove light scrollbar tracks on dark UI */
.scrollbar-warning::-webkit-scrollbar-track,
.scrollbar-warning::-webkit-scrollbar {
  background-color: #111111 !important;
}
.scrollbar-warning::-webkit-scrollbar-thumb {
  background-color: #4a4a4a !important;
}

.sidebar-notes {
  background-color: #111111;
  color: #c8d0df;
  border-top: 1px solid #2c2c2c;
  border-bottom: 1px solid #2c2c2c;
}

.upload_photos {
  background: linear-gradient(135deg, var(--px-accent), var(--px-accent-2));
  color: #10151d;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.upload_photos:hover {
  background: linear-gradient(135deg, #efb85e, #d2932d);
}

footer {
  background: #17191f;
  border-top: 1px solid #2c3340;
}

.footer_nav ul li a {
  font-family: var(--px-font-body) !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #979da8 !important;
}

.footer_nav ul li a:hover,
.footer_nav ul li a:focus {
  color: #ffffff !important;
}

.footer_social a {
  font-family: var(--px-font-body) !important;
}

.copyright {
  background: #0e1015;
  color: #b6bfd0;
  font-family: var(--px-font-body) !important;
  letter-spacing: 0.03em;
}

.copyright p,
.copyright a {
  color: #b6bfd0;
  font-family: var(--px-font-body) !important;
}

.copyright p {
  text-transform: none;
  font-size: 13px;
}

.copyright a {
  font-weight: 700;
}

/* Global black/grey theme normalization */
.users,
.view_gallery,
.gallery_page,
.shared_world_map,
.view_state_galleries,
.view_shared_gallery,
.view_user_shared_galleries,
.view_shared_country_map,
.users_gallery,
.users_photos_listing,
.newdropdown_gallery {
  background: #080808;
  color: var(--px-text);
}

.table-responsive,
.newTable-responsive,
.table-responsive-vertical {
  background: #101010;
}

.table > thead > tr > th,
.table > tbody > tr > td,
table#t02 th,
table#t02 td,
table#t01 th,
table#t01 td {
  background-clip: padding-box;
}

/* One button language site-wide */
.btn,
button,
input[type="submit"],
input[type="button"],
.upload_photos,
.gallery_upload_photos,
.view-ur-gallery,
.continue-button,
.sharewordmapbtn,
.sharecountrymapbtn,
.ShareSingleGallery,
#premium_plan_popup_button_continue {
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* One heading language site-wide */
h1,
h2,
h3,
h4,
.form-signin-heading,
.gallery-header h1,
.gallery-header h2,
.main-heading-country.gallery-header h1,
.map-workspace-header h2,
.gallery-toolbar-title {
  color: #f4f6fb;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.gallery-header h1,
.gallery-header h2,
.main-heading-country.gallery-header h1,
.map-workspace-header h2 {
  font-weight: 800;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

@media (max-width: 991px) {
  .btn,
  input[type="submit"].btn,
  button.btn {
    letter-spacing: 0.04em;
  }
}

/* =========================================================
   Site-Wide Sanity Pass: Single Theme (Front-end)
   ========================================================= */
:root {
  --px-font-body: "Catamaran", "Open Sans", "Roboto", sans-serif;
  --px-font-head: "brandon_printedone", "Catamaran", "Open Sans", "Roboto", sans-serif;
  --px-bg-1: #080808;
  --px-bg-2: #101010;
  --px-bg-3: #1a1a1a;
  --px-line: #2f2f2f;
  --px-text-strong: #f4f4f4;
  --px-text-body: #dfdfdf;
  --px-text-muted-2: #a9a9a9;
  --px-btn-accent: #e0a43f;
  --px-btn-accent-hover: #ecb455;
  --px-btn-neutral: #2f2f2f;
  --px-btn-neutral-hover: #3a3a3a;
  --px-btn-danger: #b64040;
  --px-btn-danger-hover: #c54d4d;
  --px-btn-success: #4caf50;
  --px-btn-success-hover: #62bd66;
}

body {
  font-family: var(--px-font-body) !important;
  color: var(--px-text-body);
  background: var(--px-bg-1) !important;
}

h1, h2, h3, h4, h5, h6,
.title-heading,
.main-heading-country,
.form-signin-heading,
.map-workspace-header h2,
.gallery-toolbar-title,
.gallery-management-copy h2,
.photo-editor-shell h1,
.photo-editor-shell h2 {
  font-family: var(--px-font-head) !important;
  color: var(--px-text-strong) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
}

p, span, li, label, small,
.sidebar-notes,
.gallery-management-copy p,
.gallery-management-copy ul,
.featuremg {
  color: var(--px-text-body);
}

/* Shared container surfaces */
.navbar-inverse,
.container-fluid.navbar-inverse,
.well,
.gallery-management-hero,
.gallery-preview-panel,
.photo-editor-shell,
.photo-editor-sidebar,
.photo-editor-canvas-wrap,
.table-responsive,
.newTable-responsive,
.modal-content,
.gallery_tab,
.left-sidebar .gallery_tab,
.photo-gallery-detail-page .left-sidebar .gallery_tab,
.photo-gallery-detail-page .gallery-preview-panel {
  background: linear-gradient(180deg, var(--px-bg-3), var(--px-bg-2)) !important;
  border-color: var(--px-line) !important;
  color: var(--px-text-body) !important;
}

/* Remove unintended light/white blocks across pages */
.white-bg,
.bg-white,
.panel-default > .panel-heading,
.panel-default {
  background: var(--px-bg-2) !important;
  color: var(--px-text-body) !important;
  border-color: var(--px-line) !important;
}

/* Forms and inputs */
input,
select,
textarea,
.form-control,
.form-signin .form-control,
.sign_up .form-control,
.photo-editor-shell input,
.photo-editor-shell select {
  background: #121212 !important;
  color: var(--px-text-strong) !important;
  border: 1px solid #3a3a3a !important;
  border-radius: 10px !important;
}

input::placeholder,
textarea::placeholder {
  color: #969696 !important;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: var(--px-btn-accent) !important;
  box-shadow: 0 0 0 3px rgba(224, 164, 63, 0.18) !important;
}

/* Sidebar and left nav consistency */
#sidebar-left.app-sidebar,
.left-sidebar .gallery_tab {
  background: linear-gradient(180deg, #101010 0%, #0b0b0b 100%) !important;
  border: 1px solid var(--px-line) !important;
}

#sidebar-left.app-sidebar .tablinks,
#sidebar-left.app-sidebar .tablinks a {
  color: #d9d9d9 !important;
}

#sidebar-left.app-sidebar .tablinks:hover,
#sidebar-left.app-sidebar .tablinks.active {
  background: #232323 !important;
  color: #ffffff !important;
}

.left-sidebar .gallery_tab .scrollbar-warning li,
.left-sidebar .gallery_tab .scrollbar-warning li:nth-child(2n+1),
.left-sidebar .gallery_tab .scrollbar-warning li:nth-child(2n+2),
.photo-gallery-detail-page .left-sidebar .gallery_tab .scrollbar-warning li {
  background: #141414 !important;
  border-bottom: 1px solid #2c2c2c !important;
}

.left-sidebar .gallery_tab .scrollbar-warning li:hover,
.photo-gallery-detail-page .left-sidebar .gallery_tab .scrollbar-warning li:hover {
  background: #1f1f1f !important;
}

.left-sidebar .gallery_tab .scrollbar-warning li a,
.left-sidebar .gallery_tab .scrollbar-warning li .featuremg,
.photo-gallery-detail-page .featuremg,
.gallery-list .featuremg {
  color: #efefef !important;
  opacity: 1 !important;
  text-transform: none !important;
}

/* Button system */
.btn,
button,
input[type="submit"],
input[type="button"],
.upload_photos,
.add-gal,
.button,
.sharewordmapbtn,
.sharecountrymapbtn,
.ShareSingleGallery,
.view-ur-gallery {
  border-radius: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  text-shadow: none !important;
}

.btn-warning,
.btn-primary,
.button.green,
.upload_photos,
.add-gal,
input.btn-warning {
  background: var(--px-btn-accent) !important;
  border: 1px solid #d59a39 !important;
  color: #111317 !important;
}

.btn-warning:hover,
.btn-primary:hover,
.button.green:hover,
.upload_photos:hover,
.add-gal:hover {
  background: var(--px-btn-accent-hover) !important;
  color: #0f1115 !important;
}

.btn-default,
.btn-secondary,
.button.black,
.btn.btn-success.button.black {
  background: linear-gradient(135deg, #313131, #242424) !important;
  border: 1px solid #4b4b4b !important;
  color: #f2f2f2 !important;
}

.btn-default:hover,
.btn-secondary:hover,
.button.black:hover {
  background: var(--px-btn-neutral-hover) !important;
  color: #ffffff !important;
}

.btn-success {
  background: var(--px-btn-success) !important;
  border: 1px solid #4ea753 !important;
  color: #101510 !important;
}

.btn-success:hover {
  background: var(--px-btn-success-hover) !important;
  color: #0f140f !important;
}

.btn-danger,
.delete a,
.rgallery {
  background: var(--px-btn-danger) !important;
  border-color: #a43838 !important;
  color: #fff !important;
}

.btn-danger:hover,
.delete a:hover,
.rgallery:hover {
  background: var(--px-btn-danger-hover) !important;
}

/* Tables */
table,
.table {
  background: #111111 !important;
  color: #e5e5e5 !important;
  border-color: #2f2f2f !important;
}

table th,
.table > thead > tr > th {
  background: #232323 !important;
  color: #f3f3f3 !important;
  border-color: #343434 !important;
}

table td,
.table > tbody > tr > td {
  background: #161616 !important;
  color: #dddddd !important;
  border-color: #2f2f2f !important;
}

/* Cards used on user maps/gallery grids */
.gallery-card,
.gallery-card-item,
.all_img,
.all_img .main_description,
.all_gallery a,
.all_gallery .card {
  background: #101010 !important;
  border-color: #313131 !important;
  color: #efefef !important;
}

/* Links and focus visibility */
a {
  color: var(--px-btn-accent);
}
a:hover,
a:focus {
  color: #f2bd61;
}

*:focus-visible {
  outline: 2px solid rgba(224, 164, 63, 0.8);
  outline-offset: 2px;
}

/* =========================================================
   Gallery Manager Unified Layout
   Applies to:
   - /user/galleries
   - /user/gallery_id/:id
   - /user/user_customize_photo/:id
   ========================================================= */
.gallery-manager-shell {
  display: flex !important;
  align-items: stretch;
  gap: 14px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  min-height: calc(100vh - 170px);
  background: #090909;
}

.gallery-manager-shell > .left-sidebar {
  flex: 0 0 360px;
  max-width: 360px;
  width: 360px;
  min-width: 320px;
  float: none !important;
  position: relative;
}

.gallery-manager-shell > .gallery-management-main,
.gallery-manager-shell > .gallery-preview-panel,
.gallery-manager-shell > .extra-space-photo {
  flex: 1 1 auto;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  min-width: 0;
}

.gallery-manager-shell > .gallery-management-main,
.gallery-manager-shell > .gallery-preview-panel,
.gallery-manager-shell > .extra-space-photo,
.gallery-manager-shell .photo_edit.form_all,
.gallery-manager-shell .photo_edit.form_all .form_upload.scrollbar-warning {
  background: linear-gradient(180deg, #151515 0%, #0f0f0f 100%) !important;
  border: 1px solid #2f2f2f !important;
  border-radius: 12px;
}

.gallery-manager-shell .gallery-preview-panel {
  display: grid;
  place-items: center;
  min-height: 72vh;
  padding: 20px;
}

.gallery-manager-shell .gallery-preview-panel .gallery-frame {
  width: min(100%, 640px);
  max-height: 70vh;
  object-fit: contain;
  margin: 0 auto !important;
  display: block;
}

.gallery-manager-shell .left-sidebar .gallery_tab {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  min-height: calc(100vh - 220px);
}

.gallery-manager-shell .left-sidebar .gallery_tab.col-md-3,
.gallery-manager-shell .left-sidebar .gallery_tab.col-xs-12 {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

.gallery-manager-shell .left-sidebar .gallery_tab > ol,
.gallery-manager-shell .left-sidebar .gallery_tab > ol > li {
  list-style: none;
}

.gallery-manager-shell .left-sidebar .gallery_tab > ol {
  margin: 0;
  padding: 0;
}

.gallery-manager-shell .left-sidebar .add-section,
.gallery-manager-shell .left-sidebar .upload_photos {
  width: 100% !important;
  float: none !important;
}

.gallery-manager-shell .left-sidebar .add-section .add-gal,
.gallery-manager-shell .left-sidebar .upload_photos {
  border-radius: 0 0 12px 12px !important;
}

/* Gallery manager landing page */
.gallery-management-page {
  background: #0b0b0b;
  min-height: calc(100vh - 180px);
}

.gallery-management-main {
  padding: 26px !important;
}

.gallery-management-hero {
  min-height: 78vh;
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 24px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.gallery-management-copy h2 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.gallery-management-copy p {
  color: #c8c8c8;
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.gallery-management-copy ul {
  margin: 0;
  padding-left: 20px;
  color: #dedede;
  font-size: 15px;
  line-height: 1.65;
}

.gallery-management-illustration {
  display: grid;
  place-items: center;
}

.gallery-management-illustration img.gallery-frame {
  width: min(100%, 640px);
  max-height: 72vh;
  object-fit: contain;
  margin: 0;
  opacity: 0.92;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.35));
}

/* Gallery manager detail page surfaces */
.photo-gallery-detail-page {
  background: #0b0b0b;
  min-height: calc(100vh - 160px);
  padding-bottom: 12px;
}

.photo-gallery-detail-page .upload-head,
.gallery-detail-with-sidebar > .left-sidebar .upload-head {
  background: linear-gradient(135deg, #f0af3b 0%, #d69224 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  padding: 10px 18px;
}

.photo-gallery-detail-page .upload-title-icon h2,
.gallery-detail-with-sidebar > .left-sidebar .upload-title-icon h2 {
  color: #f5f1e8 !important;
  text-shadow: none;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.photo-gallery-detail-page .gallery-links-icons a,
.gallery-detail-with-sidebar > .left-sidebar .gallery-links-icons a {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.photo-gallery-detail-page .left-sidebar .add-section,
.photo-gallery-detail-page .left-sidebar .add-section .scrollbar-warning {
  background: #111111 !important;
}

.photo-gallery-detail-page .left-sidebar .add-section .scrollbar-warning {
  margin: 0 !important;
  padding: 0 !important;
}

.photo-gallery-detail-page .left-sidebar .add-section .add-gal {
  background: linear-gradient(135deg, #f4b548 0%, #d28f1f 100%) !important;
}

.photo-gallery-detail-page .left-sidebar .add-section .add-gal p {
  color: #111111 !important;
  text-shadow: none !important;
}

.photo-gallery-detail-page .featurcolor img {
  border-radius: 4px;
  border: 1px solid #4a4a4a;
}

.photo-gallery-detail-page .gallery-preview-panel {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.photo-gallery-detail-page .gallery-preview-panel .gallery-frame {
  width: min(100%, 690px);
  max-height: 70vh;
  object-fit: contain;
  margin: 0 auto !important;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.4));
}

@media (max-width: 1199px) {
  .gallery-manager-shell {
    gap: 10px;
  }
  .gallery-manager-shell > .left-sidebar {
    flex-basis: 330px;
    max-width: 330px;
    width: 330px;
  }
}

@media (max-width: 767px) {
  .gallery-manager-shell {
    display: block !important;
    min-height: auto;
  }
  .gallery-manager-shell > .left-sidebar,
  .gallery-manager-shell > .gallery-management-main,
  .gallery-manager-shell > .gallery-preview-panel,
  .gallery-manager-shell > .extra-space-photo {
    width: 100% !important;
    max-width: 100% !important;
    flex: none;
  }
  .gallery-manager-shell > .left-sidebar {
    margin-bottom: 12px;
    min-width: 0;
  }
  .gallery-manager-shell .left-sidebar .gallery_tab {
    min-height: auto;
  }
  .gallery-management-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px;
  }
  .gallery-management-main {
    padding: 14px !important;
  }
  .gallery-management-copy h2 {
    font-size: 28px;
  }
}

/* Sidebar stability across all gallery manager pages */
.gallery_tab > ol,
.gallery_tab > ol > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gallery_tab > ol > li > [class*="col-"] {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

.gallery_tab .breadcrumb {
  word-break: break-word;
}

.gallery_tab .upload-title-icon h2,
.gallery_tab .featuremg {
  text-transform: none !important;
}

/* Strong sidebar/layout guards for gallery-manager pages */
.gallery-manager-shell,
.gallery-manager-shell .left-sidebar,
.gallery-manager-shell .gallery_tab,
.gallery-manager-shell .gallery_tab * {
  box-sizing: border-box;
}

.gallery-manager-shell > .left-sidebar {
  display: block !important;
  overflow: visible !important;
}

.gallery-manager-shell .left-sidebar .gallery_tab > ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.gallery-manager-shell .left-sidebar .gallery_tab > ol > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.gallery-manager-shell .left-sidebar .gallery_tab > ol > li > div,
.gallery-manager-shell .left-sidebar .gallery_tab > ol > li > [class*="col-"] {
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  clear: both !important;
}

.gallery-manager-shell .left-sidebar .scrollbar-warning li.gallery-list {
  width: 100% !important;
  float: none !important;
  display: block !important;
}

.gallery-manager-shell .left-sidebar .scrollbar-warning li.gallery-list .no-pad {
  min-height: 72px;
}

.gallery-manager-shell .left-sidebar .scrollbar-warning li.gallery-list .location-title {
  overflow: hidden;
}

.gallery-manager-shell .left-sidebar .scrollbar-warning li.gallery-list .location-title a,
.gallery-manager-shell .left-sidebar .scrollbar-warning li.gallery-list .featuremg {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-manager-shell .left-sidebar .sidebar-notes {
  font-size: 15px;
  line-height: 1.55;
}

.gallery-manager-shell .left-sidebar .add-section .add-gal,
.gallery-manager-shell .left-sidebar .upload_photos {
  min-height: 54px;
}

/* edit_gallery and add_gallery pages should match manager shell */
.edit-gallery-page .gallery-management-main,
.add-gallery-page .gallery-management-main {
  padding: 20px;
  min-height: calc(100vh - 220px);
}

.edit-gallery-page #upload-image,
.add-gallery-page #upload-image {
  background: linear-gradient(180deg, #171717 0%, #101010 100%) !important;
  border: 1px solid #2f2f2f !important;
  border-radius: 12px;
  padding: 14px;
}

.add-gallery-page #upload-image {
  margin-top: 10px;
  padding: 14px 14px 18px;
}

.add-gallery-page #header_1,
.edit-gallery-page #header_1 {
  margin: 4px 0 14px;
  letter-spacing: 0.04em;
}

.add-gallery-v1 .dashboard-v1-hero {
  padding: 16px 20px;
  margin-bottom: 12px;
}
.add-gallery-v1 .dashboard-v1-hero h2 {
  font-size: 32px;
  margin-bottom: 4px;
}
.add-gallery-v1 .dashboard-v1-hero p {
  margin-bottom: 0;
}

.add-gallery-page .add-gallery-form,
.edit-gallery-page .form_all {
  background: #181818 !important;
  border: 1px solid #323232;
  border-radius: 12px;
  padding: 14px 14px 10px;
  color: #e7e7e7;
}

.add-gallery-page .form_upload,
.add-gallery-page .address-form-section,
.edit-gallery-page .form_upload,
.edit-gallery-page .address-form-section {
  background: transparent !important;
}

.add-gallery-page label,
.add-gallery-page .form-label,
.add-gallery-page .search_locality p,
.add-gallery-page .or,
.add-gallery-page .showimages h2,
.add-gallery-page .showimages h2 i,
.edit-gallery-page label,
.edit-gallery-page .form-label,
.edit-gallery-page .search_locality p,
.edit-gallery-page .or {
  color: #e7e7e7 !important;
}

.add-gallery-page .showimages {
  padding: 8px 4px 12px;
}

.add-gallery-page .showimages h2 {
  font-size: 24px;
  margin: 0;
}

.add-gallery-page .upload_file {
  background: #111111;
  border: 1px dashed #3a3a3a;
  border-radius: 10px;
  padding: 14px;
}

.add-gallery-page .upload_file p {
  color: #bdbdbd;
}

.add-gallery-page .upload_file b {
  color: #dedede;
}

.add-gallery-page .submitabove {
  display: flex;
  justify-content: flex-end;
}

.add-gallery-page .galleryform {
  min-width: 180px;
}

.add-gallery-page #gallerymap,
.edit-gallery-page #gallerymap {
  border-radius: 12px;
  border: 1px solid #323232;
  overflow: hidden;
  margin-top: 10px;
  margin-bottom: 12px;
}

.add-gallery-page .errorgalleryname,
.add-gallery-page .errorlat,
.add-gallery-page .errorlng,
.add-gallery-page .errorfileupload,
.add-gallery-page .error,
.edit-gallery-page .error {
  color: #ff7b7b !important;
}

.add-gallery-page .successgalleyname {
  color: #8fdc96 !important;
}

.add-gallery-page .imageThumb,
.edit-gallery-page .imageThumb {
  max-height: 75px;
  border: 1px solid #3a3a3a;
  padding: 1px;
  cursor: pointer;
}

.add-gallery-page .pip,
.edit-gallery-page .pip {
  display: inline-block;
  margin: 10px 10px 0 0;
}

.add-gallery-page .remove,
.edit-gallery-page .remove {
  display: block;
  background: #b64040;
  color: #fff;
  text-align: center;
  cursor: pointer;
}

.edit-gallery-page .remove {
  width: 125px;
}

.add-gallery-page .remove:hover,
.edit-gallery-page .remove:hover {
  background: #d35757;
  color: #fff;
}

.add-gallery-page img.hover-shadow.cursor,
.edit-gallery-page img.hover-shadow.cursor {
  width: 150px;
  height: 100px;
}

.edit-gallery-page .style1 {
  border: 8px solid #db9a3a;
}

.edit-gallery-page .featureimgscroll .featureimglisting {
  padding-left: 0;
  padding-right: 0;
  min-height: 155px;
}

@media (max-width: 991px) {
  .add-gallery-page #upload-image,
  .add-gallery-page .add-gallery-form {
    padding: 10px;
  }
  .add-gallery-page .submitabove {
    justify-content: flex-start;
  }
}

/* Legacy gallery screens should read like the cleaner dashboard */
.gallery-manager-shell {
  gap: 22px;
}

.gallery-manager-shell > .left-sidebar {
  padding-top: 10px;
}

.gallery-manager-shell > .left-sidebar,
.gallery-manager-shell > .gallery-management-main,
.gallery-manager-shell > .gallery-preview-panel,
.gallery-manager-shell > .extra-space-photo {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.gallery-manager-shell .left-sidebar .gallery_tab {
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(11, 11, 11, 0.98)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.gallery-manager-shell .left-sidebar .gallery_tab > ol {
  padding: 14px 14px 0;
}

.gallery-manager-shell .left-sidebar .gallery_tab > ol > li.active,
.gallery-manager-shell .left-sidebar .gallery_tab > ol > li.active div {
  background: transparent !important;
}

.gallery-manager-shell .left-sidebar .sidebar-header-row {
  padding: 2px 6px 0;
}

.gallery-manager-shell .left-sidebar .sidebar-notes {
  margin: 0 14px 12px;
  padding: 18px 20px !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border: 0 !important;
  border-radius: 18px;
  color: #d7d7d7 !important;
  line-height: 1.65;
}

.gallery-manager-shell .left-sidebar .scrollbar-warning {
  margin: 0 !important;
  padding: 0 14px 14px !important;
  background: transparent !important;
}

.gallery-manager-shell .left-sidebar .gallery-list:before,
.gallery-manager-shell .left-sidebar ul li.folder-list:before {
  display: none !important;
}

.gallery-manager-shell .left-sidebar .gallery_tab .scrollbar-warning li,
.gallery-manager-shell .left-sidebar .gallery_tab .scrollbar-warning li:nth-child(2n+1),
.gallery-manager-shell .left-sidebar .gallery_tab .scrollbar-warning li:nth-child(2n+2),
.gallery-manager-shell .left-sidebar ul li.folder-list {
  margin-bottom: 10px;
  padding: 16px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.gallery-manager-shell .left-sidebar .gallery_tab .scrollbar-warning li:hover,
.gallery-manager-shell .left-sidebar ul li.folder-list:hover {
  background: rgba(255, 255, 255, 0.045) !important;
  box-shadow: inset 0 0 0 1px rgba(224, 164, 63, 0.18);
}

.gallery-manager-shell .left-sidebar .gallery_tab .scrollbar-warning li .no-pad,
.gallery-manager-shell .left-sidebar ul li.folder-list .no-pad {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.gallery-manager-shell .left-sidebar .gallery_tab .scrollbar-warning li img {
  border-radius: 14px;
  border: 0 !important;
}

.gallery-manager-shell .left-sidebar .add-section,
.gallery-manager-shell .left-sidebar .upload_photos {
  padding: 0 14px 14px;
  background: transparent !important;
}

.gallery-manager-shell .left-sidebar .add-section .add-gal,
.gallery-manager-shell .left-sidebar .upload_photos {
  border-radius: 18px !important;
  border: 0 !important;
  box-shadow: none !important;
}

.gallery-manager-shell > .gallery-management-main,
.gallery-manager-shell > .gallery-preview-panel,
.gallery-manager-shell > .extra-space-photo {
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(11, 11, 11, 0.98)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28) !important;
}

.add-gallery-page #upload-image,
.edit-gallery-page #upload-image {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 20px 22px 24px;
}

.add-gallery-page .add-gallery-form,
.edit-gallery-page .form_all {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0;
}

.add-gallery-page .upload_file {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.add-gallery-page .outer-container,
.add-gallery-page .inner-container {
  height: auto !important;
  min-height: 320px;
}

.add-gallery-page .outer-container {
  overflow: visible !important;
}

.add-gallery-page .inner-container {
  position: relative !important;
  left: auto !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.add-gallery-page .upload_img {
  width: 100%;
  margin: 0 auto 22px;
  text-align: center;
}

.add-gallery-page .upload-drop-label {
  margin-bottom: 0;
}

.add-gallery-page .upload_file p.text-center {
  width: 100%;
  margin: 0;
  padding: 0 24px 10px;
  position: relative;
  z-index: 2;
}

.add-gallery-page #gallerymap,
.edit-gallery-page #gallerymap {
  border: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Photo editor page */
.photo-editor-page {
  background: #0b0b0b;
  min-height: calc(100vh - 180px);
}

.photo-editor-page .extra-space-photo {
  background: linear-gradient(180deg, #171717, #101010);
  border-left: 1px solid #2f2f2f;
  padding-top: 18px;
}

.photo-editor-page #upload-image {
  background: transparent;
  border: 0;
  padding-bottom: 6px;
}

.photo-editor-page .photo_listing.tabcontent,
.photo-editor-page #fiter_photo,
.photo-editor-page .photo_edit.form_all,
.photo-editor-page .photo_edit.form_all ul.form-section.page-section,
.photo-editor-page .photo_edit.form_all .form_upload,
.photo-editor-page .photo_edit.form_all .form_upload.scrollbar-warning,
.photo-editor-page .photo_edit.form_all .form_upload .row,
.photo-editor-page .photo_edit.form_all .form_upload .container,
.photo-editor-page .photo_edit.form_all .form_upload .col-md-6,
.photo-editor-page .photo_edit.form_all .form_upload .col-md-8 {
  background: #111111 !important;
}

.photo-editor-page .editor-subtitle {
  color: #b8c0cf;
  font-size: 15px;
  margin: 0 0 12px;
}

.photo-editor-page .photo_edit.form_all {
  background: #121212;
  border: 1px solid #323232;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.photo-editor-page .photo_edit.form_all .form-section.page-section,
.photo-editor-page .photo_edit.form_all .form_upload.scrollbar-warning {
  background: #121212 !important;
  border: 0 !important;
}

.photo-editor-page .photo_edit.form_all .form_upload.scrollbar-warning {
  padding: 8px;
  border-radius: 10px;
}

.photo-editor-page .photo_edit.form_all .row,
.photo-editor-page .photo_edit.form_all .container {
  background: transparent !important;
}

.photo-editor-page .mg-wrapper.usingBootstrap .mg-image.frame {
  background: #111111;
  border: 1px solid #343434;
  border-radius: 10px;
  padding: 10px;
}

.photo-editor-page .sample_picture {
  border-radius: 8px;
  max-height: 68vh;
  width: 100%;
  object-fit: contain;
}

.photo-editor-page .right-edit-photo {
  background: #111111;
  border: 1px solid #323232;
  border-radius: 10px;
  padding: 14px 12px;
}

.photo-editor-page .editor-panel-title {
  margin: 0 0 12px;
  color: #f4f7ff;
  font-size: 20px;
  font-weight: 700;
}

.photo-editor-page .download_img strong,
.photo-editor-page .edit-photo-title,
.photo-editor-page .mg-textbox-text,
.photo-editor-page .mg-textbox-size {
  color: #d8d8d8 !important;
}

.photo-editor-page .edit-photo-title,
.photo-editor-page strong {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.photo-editor-page .js_effect,
.photo-editor-page .input-width {
  background: #171717;
  color: #f1f1f1;
  border: 1px solid #3b3b3b;
  border-radius: 8px;
  height: 40px;
  width: 100%;
  padding: 0 12px;
}

.photo-editor-page .download_img .btn,
.photo-editor-page #image_resize {
  border-radius: 8px;
  min-height: 40px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.photo-editor-page #image_resize,
.photo-editor-page .button.green {
  background: #e0a43f;
  border-color: #e0a43f;
  color: #11141b;
}

.photo-editor-page .button.black,
.photo-editor-page #reset,
.photo-editor-page #download {
  background: linear-gradient(135deg, #2f2f2f, #222222) !important;
  border-color: #444444 !important;
  color: #f3f3f3 !important;
}

.photo-editor-page .button.black i {
  color: #f3f3f3 !important;
}

.photo-editor-page .mg-wrapper .mg-controls .option,
.photo-editor-page .mg-wrapper .mg-controls .option label,
.photo-editor-page .mg-wrapper .mg-controls .option span,
.photo-editor-page .mg-wrapper .mg-controls .option div,
.photo-editor-page .mg-wrapper .mg-controls .option :first-child {
  color: #e7e7e7 !important;
  text-shadow: none !important;
}

.photo-editor-page .mg-wrapper .mg-controls .option input[type="checkbox"] {
  accent-color: #e0a43f;
}

.photo-editor-page .buttonCol {
  display: block;
  margin: 0;
}

.photo-editor-page .buttonCol .button {
  border-radius: 8px;
  padding: 10px 18px;
  min-width: 110px;
  width: 100%;
  font-weight: 700;
  text-transform: uppercase;
}

.photo-editor-page .action-buttons-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.photo-editor-page .action-buttons-row .buttonCol {
  flex: 1 1 0;
}

.photo-editor-page .rotate-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.photo-editor-page .rotate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #474747;
  background: linear-gradient(135deg, #2d2d2d, #212121);
  color: #f2f2f2 !important;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.photo-editor-page .rotate-btn i {
  font-size: 13px;
  color: #f2f2f2;
}

.photo-editor-page .rotate-btn:hover {
  background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
  border-color: #5a5a5a;
  color: #ffffff !important;
}

/* Dropdown gallery detail page */
.gallery-detail-page {
  background: #0b0b0b;
  min-height: calc(100vh - 120px);
  padding-bottom: 22px;
}

.gallery-detail-nav {
  background: linear-gradient(180deg, #181818 0%, #101010 100%);
  border: 1px solid #323232;
  border-radius: 12px;
  margin: 10px 12px;
  padding: 8px 10px;
}

.gallery-detail-nav .container-fluid {
  padding-left: 6px;
  padding-right: 6px;
}

.gallery-back-btn {
  border-radius: 10px;
  border: 1px solid #404040;
  background: #242424;
  color: #f3f3f3;
}

.gallery-back-btn:hover {
  background: #303030;
  color: #ffffff;
}

.gallery-detail-heading .gallery {
  text-shadow: none;
  font-size: 26px;
  line-height: 1.25;
}

.gallery-detail-shell {
  background: linear-gradient(180deg, #171717 0%, #0f0f0f 100%);
  border: 1px solid #2f2f2f;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.gallery-media-grid {
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  align-items: start;
}

.gallery-thumb-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 2px 2px 12px;
  color: #cfd4dd;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gallery-thumb-toolbar span:first-child {
  color: #f0af3b;
  font-weight: 700;
}

.gallery-media-grid .gallery-item,
.gallery-media-grid .gallery-video-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: block;
  background: #111;
  aspect-ratio: 4 / 3;
  border: 1px solid #2f2f2f;
}

.gallery-media-grid img {
  border-radius: 10px;
  transition: transform 0.25s ease, filter 0.25s ease, opacity 0.3s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.gallery-media-grid img.loaded {
  opacity: 1;
}

.gallery-media-grid a:hover img {
  transform: scale(1.02);
  filter: brightness(1.06);
}

.lg-outer .lg-item,
.lg-outer .lg-img-wrap {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.lg-outer .lg-image,
.lg-outer .lg-object {
  width: auto !important;
  height: auto !important;
  max-width: min(94vw, 1600px) !important;
  max-height: 88vh !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  transform: none;
}

.gallery-share-bar {
  padding-top: 12px;
  text-align: center;
}

.gallery-share-btn {
  min-width: 230px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border-radius: 10px;
}

.gallery-empty-state {
  max-width: 760px;
  margin: 28px auto;
  background: linear-gradient(180deg, #171717 0%, #101010 100%);
  border: 1px solid #303030;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.gallery-empty-state p {
  color: #d0d0d0;
  margin: 10px 0 0;
}

#sharegallery .modal-content,
#sharegallery2 .modal-content {
  background: linear-gradient(180deg, #171717 0%, #101010 100%);
  border: 1px solid #353535;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

#sharegallery .modal-dialog,
#sharegallery2 .modal-dialog {
  width: min(92vw, 640px);
  margin-top: 70px;
}

#sharegallery .modal-header,
#sharegallery2 .modal-header {
  border-bottom: 1px solid #2f2f2f;
  padding: 18px 22px 14px;
  position: static;
}

#sharegallery .modal-body,
#sharegallery2 .modal-body {
  color: #e2e2e2;
  padding: 18px 22px 22px;
  background: linear-gradient(180deg, #141414 0%, #101010 100%);
}

#sharegallery .modal-title,
#sharegallery2 .modal-title {
  color: #f5f5f5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 26px;
  font-weight: 800;
  margin: 0;
}

#sharegallery .galnameshow,
#sharegallery2 .galnameshow {
  display: block;
  text-align: center;
  color: #d3d7df !important;
  font-size: 20px;
  margin-top: 4px;
  margin-bottom: 0;
}

#sharegallery .close,
#sharegallery2 .close,
.share-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  opacity: 1;
  text-shadow: none;
  cursor: pointer;
  transition: background 0.15s;
  padding: 0;
  line-height: 1;
}
.share-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

#sharegallery .form-control,
#sharegallery textarea,
#sharegallery2 .form-control,
#sharegallery2 textarea {
  background: #121212;
  border: 1px solid #3b3b3b;
  color: #f2f2f2;
  border-radius: 8px;
  min-height: 44px;
}

#sharegallery .getlinkclass,
#sharegallery2 .getlinkclass {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
#sharegallery .getlinkclass .randomnumber,
#sharegallery2 .getlinkclass .randomnumber,
#sharegallery .getlinkclass .shared-tooltiptext,
#sharegallery2 .getlinkclass .shared-tooltiptext {
  display: none;
}

#sharegallery .copysharedlink,
#sharegallery2 .copysharedlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
}

#sharegallery .linkbutton .getlink,
#sharegallery .copysharedlink,
#sharegallery2 .linkbutton .getlink,
#sharegallery2 .copysharedlink {
  background: #f0af3b;
  color: #111;
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid #d19227;
}

#sharegallery .linkbutton .getlink,
#sharegallery2 .linkbutton .getlink {
  min-height: 44px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
#sharegallery .linkbutton .getlink i,
#sharegallery2 .linkbutton .getlink i {
  margin-right: 4px;
}

#sharegallery .or-divider,
#sharegallery2 .or-divider {
  text-align: center;
  color: #f1f1f1;
  font-weight: 700;
  letter-spacing: 0.07em;
  margin: 4px 0 12px;
}

#sharegallery .sharedsinglemap,
#sharegallery2 .sharedsinglemap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  padding: 14px;
}

#sharegallery .sharedsinglemap label,
#sharegallery .msglabel,
#sharegallery2 .sharedsinglemap label,
#sharegallery2 .msglabel {
  color: #d7d7d7;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

#sharegallery textarea.description,
#sharegallery2 textarea.description {
  min-height: 120px;
  resize: vertical;
}

#sharegallery .ShareSingleGallery,
#sharegallery2 .ShareSingleGallery {
  margin-top: 8px;
}

#sharegallery .emailerror,
#sharegallery2 .emailerror {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .gallery-detail-heading .gallery {
    font-size: 19px;
  }
  .gallery-detail-shell {
    padding: 10px;
  }
  .gallery-media-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }
  .gallery-thumb-toolbar {
    flex-direction: column;
    align-items: flex-start;
    font-size: 11px;
  }
  #sharegallery .getlinkclass,
  #sharegallery2 .getlinkclass {
    grid-template-columns: 44px 1fr;
  }
  #sharegallery .linkbutton,
  #sharegallery2 .linkbutton {
    grid-column: 1 / -1;
  }
  #sharegallery .linkbutton .getlink,
  #sharegallery2 .linkbutton .getlink {
    width: 100%;
  }
  #sharegallery .modal-title,
  #sharegallery2 .modal-title {
    font-size: 21px;
  }
}

@media (max-width: 560px) {
  .gallery-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   State Gallery Card Grid (view_gallery.php)
   ========================================================= */
.country-header-full {
  width: 100%;
}

.gallery-detail-main {
  min-height: calc(100vh - 220px);
}

/* Prevent legacy fixed loader from covering gallery/detail pages */
.gallery-detail-page #load,
.photo-gallery-detail-page #load {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

.state-gallery-page {
  background: #0b0d12;
  min-height: calc(100vh - 120px);
  padding-bottom: 22px;
}

.state-gallery-page nav.navbar.navbar-default {
  background: linear-gradient(180deg, #181818 0%, #101010 100%);
  border: 1px solid #323232;
  border-radius: 12px;
  margin: 12px;
  padding: 8px 10px;
}

.state-gallery-page nav .navbar-btn {
  border-radius: 10px;
  border: 1px solid #404040;
  background: #242424;
  color: #f3f3f3;
}

.state-gallery-page nav .navbar-btn:hover {
  background: #303030;
  color: #ffffff;
}

.state-gallery-page .gallery-header .gallery {
  color: #f4f7ff;
  font-size: 22px;
  line-height: 1.25;
}

.countries_galleries {
  padding: 0 12px;
}

.countries_galleries #conatiner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.countries_galleries .gallery-card-col {
  width: auto;
  float: none;
  margin: 0;
  padding: 0;
}

.countries_galleries .gallery-card {
  background: linear-gradient(180deg, #171717 0%, #111111 100%);
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.countries_galleries .gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(2, 8, 23, 0.7);
  border-color: #5a5a5a;
}

.countries_galleries .gallery-card-image {
  width: 100% !important;
  aspect-ratio: 4/3;
  object-fit: cover;
  min-height: 0 !important;
}

.countries_galleries .gallery-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.countries_galleries .gallery-card-details {
  margin-bottom: 0;
  display: grid;
  gap: 4px;
}

.countries_galleries .gallery-card-details p {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  line-height: 1.2;
}

.countries_galleries .gallery-card-value {
  color: #f3f7ff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.countries_galleries .gallery-card-details p:nth-child(1) .gallery-card-value {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.14;
}

.countries_galleries .gallery-card-details p:nth-child(2) .gallery-card-value {
  font-size: 15px;
  font-weight: 700;
  color: #d7deeb;
}

.countries_galleries .gallery-card-details p:nth-child(3) .gallery-card-value {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.countries_galleries .gallery-card-details p:nth-child(4) .gallery-card-value {
  font-size: 11px;
  color: #aeb7c8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.countries_galleries .gallery-card-cta,
.gallery-card-cta.btn-warning {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-top: auto;
  background: #c9973b !important;
  color: #1a1a1a !important;
  border: none !important;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s;
}
.countries_galleries .gallery-card-cta:hover,
.gallery-card-cta.btn-warning:hover {
  background: #b8882f !important;
  color: #1a1a1a !important;
  text-decoration: none;
}

.countries_galleries .gallery-card-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  color: #f7b538;
  font-size: 18px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(247, 181, 56, 0.55);
  border-radius: 999px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1200px) {
  .countries_galleries #conatiner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .state-gallery-page .gallery-header .gallery {
    font-size: 18px;
  }
  .countries_galleries #conatiner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .countries_galleries #conatiner {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Site-Wide Audit Normalization (single theme pass)
   ========================================================= */

/* Headings: enforce brand font site-wide */
h1,
h2,
h3,
h4,
h5,
h6,
.form-signin-heading,
.gallery-header h1,
.gallery-header h2,
.sharewithme,
.main-heading-country.gallery-header h1 {
  font-family: brandon_printedone, Catamaran, sans-serif !important;
  letter-spacing: 0.04em;
}

/* Keep body text readable and neutral on dark UI */
body,
p,
label,
li,
td,
th,
input,
select,
textarea {
  color: #ececec;
}

/* Remove blue drift from common surfaces */
.well,
.tabcontent,
.left-sidebar,
.gallery_tab,
.form-all,
#content,
#content .tabcontent,
.country_nav,
.country_nav .slide-navigation,
.gallery-detail-main,
.gallery-detail-page,
.gallery-detail-shell,
.gallery-manager-shell,
.photo-editor-shell {
  background-color: #0d0d0d !important;
}

/* Global modal skin (overrides late inline modal-content white styles) */
.modal-content {
  background: linear-gradient(170deg, #151515, #0d0d0d) !important;
  border: 1px solid #3a3a3a !important;
  color: #efefef !important;
}

.modal .close,
.modal .close span {
  color: #f2f2f2 !important;
  opacity: 0.9;
}

.modal .close:hover,
.modal .close:focus {
  color: #ffffff !important;
  opacity: 1;
}

/* Dashboard subscription table: neutral dark, high contrast */
.subscription table,
.subscription table tr,
.subscription table td,
.subscription table th {
  background: #161616 !important;
  color: #ededed !important;
  border-color: #333333 !important;
}

.subscription table tr:nth-child(2n),
.subscription table tr:nth-child(2n + 1) {
  background: #161616 !important;
}

.subscription .btn-xs {
  color: #ff7373 !important;
}

/* Plan warnings on dashboard */
.plan-alert {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.plan-alert i {
  margin-right: 6px;
}

.plan-alert-warning,
.plan-alert-danger {
  color: #ffb55a !important;
}

/* Sidebar layout consistency (users dashboard + gallery manager pages) */
.form-all {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

#sidebar-left.app-sidebar {
  float: none !important;
  flex: 0 0 260px;
  width: 260px !important;
  max-width: 260px;
  min-width: 220px;
}

#content {
  float: none !important;
  flex: 1 1 auto;
  min-width: 0;
}

.gallery-manager-shell.gallery-detail-with-sidebar {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
}

.gallery-manager-shell.gallery-detail-with-sidebar > .left-sidebar {
  flex: 0 0 340px;
  width: 340px;
  max-width: 340px;
  min-width: 300px;
}

.gallery-manager-shell.gallery-detail-with-sidebar > .gallery-detail-main {
  flex: 1 1 auto;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
}

.add_gallery .upload-drop-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.add_gallery .upload-drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5f1e8;
  font-size: 84px;
  line-height: 1;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Ensure sidebar internals do not collapse to tiny columns */
.left-sidebar .gallery_tab ol li [class*="col-"],
.left-sidebar .gallery_tab .gallery-list [class*="col-"] {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

.left-sidebar .gallery_tab .gallery-list {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
}

.left-sidebar .gallery_tab .gallery-list .icon-hover {
  margin-left: auto;
}

.left-sidebar .gallery_tab .gallery-list img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover;
  border-radius: 6px;
}

.left-sidebar .gallery_tab ol,
.left-sidebar .gallery_tab ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.left-sidebar .gallery_tab ol > li.active {
  padding: 12px 14px;
  border-bottom: 1px solid #2d2d2d;
}

.left-sidebar .gallery_tab .back-page {
  color: #f0f0f0 !important;
  font-weight: 700;
}

.left-sidebar .gallery_tab .sidebar-breadcrumb {
  margin-bottom: 10px;
  color: #d8d8d8;
  font-size: 14px;
  line-height: 1.35;
}

.left-sidebar .gallery_tab .sidebar-breadcrumb-detail {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.96), rgba(8, 8, 8, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.left-sidebar .gallery_tab .sidebar-breadcrumb-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #e6a63c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.left-sidebar .gallery_tab .sidebar-breadcrumb #breadcrumb {
  display: block;
  line-height: 1.6;
}

.left-sidebar .gallery_tab .sidebar-breadcrumb #breadcrumb a,
.left-sidebar .gallery_tab .sidebar-breadcrumb #breadcrumb span {
  color: #f3f3f3;
  text-decoration: none;
}

.left-sidebar .gallery_tab .sidebar-breadcrumb #breadcrumb a {
  color: #d5d5d5;
}

.left-sidebar .gallery_tab .sidebar-breadcrumb #breadcrumb a:hover {
  color: #e6a63c;
}

.left-sidebar .gallery_tab .sidebar-breadcrumb #breadcrumb span {
  font-weight: 700;
}

.left-sidebar .gallery_tab .sidebar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.left-sidebar .gallery_tab .sidebar-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}

.left-sidebar .gallery_tab .sidebar-search {
  flex: 1 1 150px;
  max-width: 180px;
}

.create_account .account-avatar-item {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  margin-right: 12px;
}

.create_account .account-avatar-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0 !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.create_account .account-avatar-link:hover,
.create_account .account-avatar-link:focus {
  border-color: #d0a34b;
  background: rgba(208, 163, 75, 0.12);
}

.create_account .account-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Feature image label consistency */
.featuremg,
.gallery-list .featuremg {
  font-size: 16px !important;
  font-weight: 700;
  text-transform: none !important;
  color: #f2f2f2 !important;
}

/* Manage Galleries should match other sidebar rows exactly */
#sidebar-left.app-sidebar .tablinks-manage {
  display: block !important;
  width: 100% !important;
  padding: 14px 16px !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

#sidebar-left.app-sidebar .tablinks-manage .tablinks-manage-link {
  display: block !important;
  width: 100% !important;
  color: inherit !important;
  text-decoration: none !important;
}

/* Search control in gallery manager sidebars */
#searchgalleries,
#demogallery,
.gallery_tab input[type="search"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  background: #111111 !important;
  border: 1px solid #3a3a3a !important;
  color: #f1f1f1 !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
}

/* Map menu: keep right-side popout visible */
.country_nav .slide-navigation,
.country_nav .slide-navigation > li,
.country_nav .slide-navigation .countriesid > li.country-item,
.country_nav .slide-navigation .countriesid {
  overflow: visible !important;
}

.country_nav .slide-navigation .countriesid .customstates {
  z-index: 120 !important;
}

/* Share buttons row consistency */
#shareworldmap_section .share-actions-row,
.share-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

#shareworldmap_section .share-action-btn,
.share-action-btn,
.sharbtn button {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid #d39b34;
  background: linear-gradient(135deg, #e0a43f, #cb8b22);
  color: #121418 !important;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* Strong contrast safety net: prevent dark-on-dark text in manager pages */
.left-sidebar,
.left-sidebar *,
.gallery-detail-main,
.gallery-detail-main *,
.gallery-detail-page,
.gallery-detail-page *,
.photo-editor-shell,
.photo-editor-shell * {
  text-shadow: none !important;
}

.left-sidebar,
.left-sidebar a,
.left-sidebar p,
.left-sidebar li,
.left-sidebar h1,
.left-sidebar h2,
.left-sidebar h3 {
  color: #f0f0f0 !important;
}

/* Preserve usability on tablet/mobile */
@media (max-width: 1200px) {
  #sidebar-left.app-sidebar {
    flex: 0 0 320px;
    width: 320px !important;
    min-width: 280px;
  }
}

@media (max-width: 767px) {
  .form-all {
    display: block;
  }
  #sidebar-left.app-sidebar {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 12px;
  }
  .gallery-manager-shell.gallery-detail-with-sidebar {
    display: flex;
    flex-direction: column;
  }
  .gallery-manager-shell.gallery-detail-with-sidebar > .left-sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    order: 2;
  }
  .gallery-manager-shell.gallery-detail-with-sidebar > .gallery-detail-main {
    order: 1;
  }
}

/* =========================================================
   Sidebar + Share Visibility Hotfix
   ========================================================= */
@media (min-width: 768px) {
  .photo-gallery-detail-page.gallery-manager-shell,
  .photo-editor-page.gallery-manager-shell {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
  }

  .photo-gallery-detail-page.gallery-manager-shell > .left-sidebar,
  .photo-editor-page.gallery-manager-shell > .left-sidebar {
    flex: 0 0 340px !important;
    width: 340px !important;
    max-width: 340px !important;
    min-width: 320px !important;
    float: none !important;
    clear: none !important;
  }

  .photo-gallery-detail-page.gallery-manager-shell > .gallery-preview-panel,
  .photo-editor-page.gallery-manager-shell > .extra-space-photo {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
  }
}

.photo-gallery-detail-page .upload-head,
.photo-editor-page .upload-head,
.gallery-detail-with-sidebar > .left-sidebar .upload-head {
  overflow: visible !important;
}

.photo-gallery-detail-page .upload-title-icon,
.photo-editor-page .upload-title-icon,
.gallery-detail-with-sidebar > .left-sidebar .upload-title-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  min-height: 0;
}

.photo-gallery-detail-page .upload-title-icon h2,
.photo-editor-page .upload-title-icon h2,
.gallery-detail-with-sidebar > .left-sidebar .upload-title-icon h2 {
  margin: 0 !important;
  padding-right: 10px !important;
  max-width: calc(100% - 70px);
  overflow: hidden;
  white-space: normal;
  text-overflow: initial;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.photo-gallery-detail-page .upload-title-icon .share.gallery-links-icons,
.photo-editor-page .upload-title-icon .share.gallery-links-icons,
.gallery-detail-with-sidebar > .left-sidebar .upload-title-icon .share.gallery-links-icons {
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  z-index: 20 !important;
}

.photo-gallery-detail-page .upload-title-icon .share.gallery-links-icons a,
.photo-editor-page .upload-title-icon .share.gallery-links-icons a,
.gallery-detail-with-sidebar > .left-sidebar .upload-title-icon .share.gallery-links-icons a {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.photo-editor-page .action-buttons-row {
  margin-top: 18px !important;
  padding-top: 8px;
}

.gallery-top-alerts {
  width: 100%;
  margin-bottom: 12px;
}
.gallery-top-alerts .alert-box {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  border: 1px solid transparent;
  margin-bottom: 0;
}
.gallery-top-alerts .alert-box.successmsg {
  background: rgba(76, 175, 80, 0.15);
  color: #66bb6a;
  border-color: rgba(76, 175, 80, 0.3);
}
.gallery-top-alerts .alert-box.errorsmsg {
  background: rgba(244, 67, 54, 0.15);
  color: #ef5350;
  border-color: rgba(244, 67, 54, 0.3);
}
.dashboard-v1-page .alert-box {
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  border: 1px solid transparent;
  margin-bottom: 16px;
}
.dashboard-v1-page .alert-box.successmsg {
  background: rgba(76, 175, 80, 0.15);
  color: #66bb6a;
  border-color: rgba(76, 175, 80, 0.3);
}
.dashboard-v1-page .alert-box.errorsmsg {
  background: rgba(244, 67, 54, 0.15);
  color: #ef5350;
  border-color: rgba(244, 67, 54, 0.3);
}

/* Dedicated /user/galleries layout (separate from legacy manager shells) */
.gallery-management-page .gallery-g-manage-layout {
  margin: 0 !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 340px minmax(0, 1fr) !important;
  column-gap: 14px !important;
  align-items: start !important;
}

.gallery-management-page .gallery-g-manage-layout > .gallery-g-sidebar-col,
.gallery-management-page .gallery-g-manage-layout > .gallery-g-main-col {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.gallery-management-page .gallery-g-manage-layout > .gallery-g-sidebar-col {
  width: 340px !important;
  min-width: 320px !important;
  max-width: 340px !important;
}

.gallery-management-page .gallery-g-manage-layout > .gallery-g-main-col {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  align-self: start !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}

.gallery-management-page .gallery-g-main-col .gallery-management-main {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Keep /user/galleries as 2-column on desktop/laptop widths */
@media (min-width: 900px) {
  body.galleries .photo-gallery.gallery-management-page .gallery-g-manage-layout {
    display: grid !important;
    grid-template-columns: 340px minmax(0, 1fr) !important;
    column-gap: 14px !important;
    row-gap: 0 !important;
    align-items: start !important;
  }

  body.galleries .photo-gallery.gallery-management-page .gallery-g-sidebar-col {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 340px !important;
    min-width: 320px !important;
    max-width: 340px !important;
    float: none !important;
    clear: none !important;
  }

  body.galleries .photo-gallery.gallery-management-page .gallery-g-main-col {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    display: block !important;
    float: none !important;
    clear: none !important;
    align-self: start !important;
    margin: 0 !important;
  }

  body.galleries .photo-gallery.gallery-management-page .gallery-g-main-col .gallery-management-main {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.galleries .photo-gallery.gallery-management-page {
    overflow: visible !important;
  }

  body.galleries .photo-gallery.gallery-management-page .gallery-g-sidebar-col,
  body.galleries .photo-gallery.gallery-management-page .gallery-g-main-col,
  body.galleries .photo-gallery.gallery-management-page .gallery-g-sidebar-col > .left-sidebar,
  body.galleries .photo-gallery.gallery-management-page .gallery-g-sidebar-col > .left-sidebar > .gallery_tab {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    position: relative !important;
  }

  body.galleries .photo-gallery.gallery-management-page .gallery-g-sidebar-col > .left-sidebar,
  body.galleries .photo-gallery.gallery-management-page .gallery-g-sidebar-col > .left-sidebar > .gallery_tab,
  body.galleries .photo-gallery.gallery-management-page .left-sidebar ul,
  body.galleries .photo-gallery.gallery-management-page .left-sidebar ol,
  body.galleries .photo-gallery.gallery-management-page .left-sidebar .sidebar-notes {
    display: block !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.galleries .photo-gallery.gallery-management-page .gallery-g-main-col {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: block !important;
    align-self: start !important;
  }

  body.galleries .photo-gallery.gallery-management-page .gallery-g-main-col .gallery-management-main > * {
    max-width: 100% !important;
  }
}


/* Stack /user/galleries only on true mobile widths */
@media (max-width: 767px) {
  body.galleries .photo-gallery.gallery-management-page .gallery-g-manage-layout {
    grid-template-columns: 1fr !important;
    row-gap: 12px !important;
  }

  body.galleries .photo-gallery.gallery-management-page .gallery-g-sidebar-col {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.galleries .photo-gallery.gallery-management-page .gallery-g-main-col {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* ── Gallery filter bar + reset button ── */
.dashboard-v1-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.dashboard-v1-filters input[type="text"] {
  background: #151515;
  border: 1px solid #3b3b3b;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  flex: 1 1 140px;
  min-width: 0;
}

.dashboard-v1-filters input[type="text"]::placeholder {
  color: #888;
}

.dashboard-v1-filters select {
  background: #151515;
  border: 1px solid #3b3b3b;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  flex: 1 1 140px;
  min-width: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
  cursor: pointer;
}

.dashboard-v1-filters select:focus {
  border-color: #c9973b;
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 151, 59, 0.15);
}

.dashboard-v1-filters select option {
  background: #1a1a1a;
  color: #e0e0e0;
}

.dashboard-v1-filters #reset {
  background: linear-gradient(135deg, #2f2f2f, #222222);
  border: 1px solid #444;
  color: #f3f3f3;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dashboard-v1-filters #reset:hover {
  background: linear-gradient(135deg, #3a3a3a, #2d2d2d);
  border-color: #555;
}

@media (max-width: 767px) {
  .dashboard-v1-filters {
    flex-direction: column;
  }

  .dashboard-v1-filters input[type="text"],
  .dashboard-v1-filters select,
  .dashboard-v1-filters #reset {
    width: 100%;
    flex: none;
  }
}

/* ── jQuery UI datepicker dark theme ── */
.ui-datepicker {
  background: #1a1a1a !important;
  border: 1px solid #444 !important;
  border-radius: 10px !important;
  padding: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
  z-index: 1050 !important;
}
.ui-datepicker .ui-datepicker-header {
  background: #222 !important;
  border: none !important;
  border-radius: 8px 8px 0 0 !important;
  padding: 8px 4px !important;
}
.ui-datepicker .ui-datepicker-title {
  color: #f5f0e8 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
}
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  top: 8px !important;
  cursor: pointer !important;
}
.ui-datepicker .ui-datepicker-prev .ui-icon,
.ui-datepicker .ui-datepicker-next .ui-icon {
  filter: invert(1) !important;
}
.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
  background: rgba(201,151,59,0.15) !important;
  border-radius: 6px !important;
  border: none !important;
}
.ui-datepicker th {
  color: #c9973b !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 6px 0 !important;
}
.ui-datepicker td {
  padding: 1px !important;
}
.ui-datepicker td a,
.ui-datepicker td span {
  color: #e0e0e0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 6px !important;
  text-align: center !important;
  padding: 6px 8px !important;
}
.ui-datepicker td a:hover {
  background: #c9973b !important;
  color: #1a1a1a !important;
}
.ui-datepicker td .ui-state-active {
  background: #c9973b !important;
  color: #1a1a1a !important;
  font-weight: 700 !important;
}
.ui-datepicker td .ui-state-highlight {
  background: rgba(201,151,59,0.2) !important;
  color: #c9973b !important;
}

/* ── Video placeholder thumbnail ── */
.gallery-card-image-wrap img[src*="video-placeholder"] {
  object-fit: contain;
  background: #1a1a1a;
  padding: 12px;
}

/* ── Dashboard v1 shared layout ── */
.dashboard-v1-page {
  background: #171717;
  color: #fff;
  min-height: calc(100vh - 120px);
}

.dashboard-v1-shell {
  display: flex;
  gap: 18px;
  padding: 14px 18px;
  align-items: flex-start;
}

.dashboard-v1-shell.dashboard-v1-sidebar-hidden .dashboard-v1-sidebar {
  display: none;
}

.dashboard-v1-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 24px 18px;
  position: sticky;
  top: 0;
}

.dashboard-v1-sidebar h2 {
  margin-top: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.dashboard-v1-sidebar p {
  color: #d6d6d6;
}

.dashboard-v1-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: #d0a34b;
  margin-bottom: 10px;
}

.dashboard-v1-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.dashboard-v1-nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  background: #2a2a2a;
  color: #f3f3f3;
  text-decoration: none;
  border: 1px solid #393939;
}
.dashboard-v1-nav-link i.fa {
  width: 18px;
  text-align: center;
  margin-right: 6px;
  opacity: 0.7;
}
.dashboard-v1-nav-link.active i.fa,
.dashboard-v1-nav-link:hover i.fa {
  opacity: 1;
}

.dashboard-v1-nav-link.active,
.dashboard-v1-nav-link:hover {
  background: #d39d34;
  color: #1a1a1a;
  text-decoration: none;
}

.dashboard-v1-content {
  flex: 1;
  min-width: 0;
}

.dashboard-v1-hero {
  background: #202020;
  border: 1px solid #333;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.dashboard-v1-hero h1,
.dashboard-v1-hero h2 {
  margin-top: 0;
  color: #fff;
}

.dashboard-v1-hero p {
  color: #d6d6d6;
}

.dashboard-v1-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-v1-actions .btn {
  min-width: 190px;
  height: 38px;
  line-height: 24px;
  padding: 6px 16px;
  font-size: 14px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .5px;
  box-sizing: border-box;
}

.dashboard-v1-secondary {
  background: #2d2d2d;
  border-color: #555;
  color: #fff;
}

.dashboard-v1-secondary:hover {
  background: #3a3a3a;
  color: #fff;
}

@media (max-width: 1199px) {
  .dashboard-v1-shell {
    flex-direction: column;
  }
  .dashboard-v1-sidebar {
    width: 100%;
    position: static;
  }
  .dashboard-v1-shell.dashboard-v1-sidebar-hidden .dashboard-v1-sidebar {
    display: none;
  }
}

@media (max-width: 767px) {
  .dashboard-v1-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Gallery manage page: gallery list in main content ── */
.gallery-manage-v1 .dashboard-v1-hero h2 {
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0.04em;
}
/* ── Gallery list wrapper card ── */
.gallery-list-main-wrap {
  background: #202020;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
/* ── Gallery list v1 (compact) ── */
.gallery-list-v1 {
  max-width: 680px;
}
.gallery-list-v1-toolbar {
  margin-bottom: 16px;
}
.gallery-list-v1-search {
  background: #151515;
  border: 1px solid #3b3b3b;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  width: 100%;
  max-width: 340px;
  outline: none;
}
.gallery-list-v1-search:focus {
  border-color: #d39d34;
}
.gallery-list-v1-search::placeholder {
  color: #888;
}
.gallery-list-v1-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gallery-list-v1-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid #2a2a2a;
  transition: background 0.15s;
}
.gallery-list-v1-row:hover {
  background: #383838;
  border-radius: 8px;
  border-bottom-color: transparent;
}
.gallery-list-v1-link {
  display: flex !important;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  text-decoration: none !important;
  color: #f0f0f0 !important;
}
.gallery-list-v1-link:hover {
  color: #fff !important;
}
.gallery-list-v1-thumb {
  display: block;
  width: 52px;
  min-width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1a1a;
}
.gallery-list-v1-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-list-v1-name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-list-v1-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.gallery-list-v1-action {
  width: 32px;
  height: 32px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #e0a43f !important;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s;
  font-size: 14px;
  text-align: center;
}
.gallery-list-v1-action:hover {
  background: #333;
  color: #fff !important;
}
.gallery-list-v1-action-danger:hover {
  background: #3a1a1a;
  color: #e55 !important;
}
.gallery-list-v1-items .galResult {
  padding: 12px;
  color: #999;
}
@media (max-width: 767px) {
  .gallery-list-v1 { max-width: 100%; }
  .gallery-list-v1-name { font-size: 14px; }
  .gallery-list-v1-thumb { width: 44px; height: 44px; }
}

/* ── Billing v1 page ── */
.billing-v1-page,
.shared-v1-page {
  background: #171717;
  color: #fff;
}
.billing-v1-card,
.shared-v1-card {
  background: #202020;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.billing-v1-card h3,
.shared-v1-card h3 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
}
.billing-v1-subtitle {
  margin-top: 28px !important;
}
.billing-v1-plan-info p {
  color: #d6d6d6;
  margin: 6px 0;
  font-size: 15px;
}
.billing-v1-plan-info strong {
  color: #e0a43f;
}
.billing-v1-actions {
  margin-top: 20px;
}
.billing-v1-no-plan {
  text-align: center;
  padding: 20px 0;
}
.billing-v1-no-plan p {
  color: #d6d6d6;
  margin-bottom: 16px;
}
.billing-v1-table-wrap,
.shared-v1-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}
.shared-v1-table-wrap {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
}
.billing-v1-table,
.shared-v1-table {
  width: 100%;
  border-collapse: collapse;
}
.billing-v1-table thead th,
.shared-v1-table thead th {
  background: #1a1a1a;
  color: #e0a43f;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 14px;
  border-bottom: 2px solid #333;
  text-align: left;
  white-space: nowrap;
}
.shared-v1-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1a1a1a;
}
.billing-v1-table tbody td,
.shared-v1-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #2a2a2a;
  color: #d6d6d6;
  font-size: 14px;
}
.billing-v1-table tbody tr:hover,
.shared-v1-table tbody tr:hover {
  background: #2a2a2a;
}
.billing-v1-unsub-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.shared-v1-link {
  color: #e0a43f !important;
  text-decoration: underline;
}
.shared-v1-link:hover {
  color: #fff !important;
}
.shared-v1-type {
  color: #999;
  font-size: 12px;
}
.shared-v1-delete-btn {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #e55;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}
.shared-v1-delete-btn:hover {
  background: #3a1a1a;
  color: #ff6b6b;
}
.shared-v1-empty {
  text-align: center;
  padding: 20px 0;
  color: #999;
}
.shared-v1-action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}
.shared-v1-action-buttons .btn {
  padding: 10px 22px !important;
  font-size: 13px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1 !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  box-sizing: border-box;
}
.shared-v1-action-buttons .btn::before,
.shared-v1-action-buttons .btn::after {
  display: none !important;
}
.shared-v1-actions-card {
  padding: 20px 28px;
}
.billing-v1-page .paidplanpop .modal-content,
.billing-v1-page .paidplanpop .modal-body {
  background: #1a1a1a;
  color: #fff;
  border-color: #333;
}
.billing-v1-page .info-cell {
  color: #fff;
}
.billing-v1-page .info-cell .cell {
  padding: 10px 14px;
  border-bottom: 1px solid #333;
}
.billing-v1-page .info-cell .cellContent {
  color: #e0a43f;
  font-size: 18px;
  font-weight: 700;
}
.billing-v1-page .info-cell .bold-cell {
  color: #d6d6d6;
}
.billing-v1-page .info-cell .each-next {
  color: #999;
  font-size: 12px;
  display: block;
  margin-top: 4px;
}
.billing-v1-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2a2a2a;
  border: 1px solid #e0a43f;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #e0a43f;
  margin-bottom: 18px;
}
.billing-v1-plan-badge i {
  font-size: 18px;
}
.billing-v1-storage {
  max-width: 480px;
}
.billing-v1-storage-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}
.billing-v1-storage-bar {
  height: 10px;
  background: #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
}
.billing-v1-storage-fill {
  height: 100%;
  background: linear-gradient(90deg, #e0a43f, #d39d34);
  border-radius: 6px;
  transition: width 0.5s ease;
}
.billing-v1-storage-warn {
  background: linear-gradient(90deg, #e0a43f, #e55);
}
.billing-v1-storage-pct {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}
.shared-v1-via-link {
  color: #777;
  font-style: italic;
  font-size: 13px;
}
.shared-v1-world-map {
  color: #e0a43f;
}
.shared-v1-world-map i {
  margin-right: 4px;
}
@media (max-width: 767px) {
  .billing-v1-card,
  .shared-v1-card {
    padding: 18px 16px;
  }
  .billing-v1-table thead th,
  .shared-v1-table thead th,
  .billing-v1-table tbody td,
  .shared-v1-table tbody td {
    padding: 10px 10px;
    font-size: 13px;
  }
}

/* ── Add gallery page ── */
.add-gallery-v1 .dashboard-v1-hero h2 {
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0.04em;
}
.add-gallery-form-wrap {
  background: #202020;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 24px;
  margin-top: 20px;
}
.add-gallery-v1 .form-label,
.add-gallery-v1 label,
.add-gallery-v1 .form-label-auto {
  color: #f2f2f2 !important;
}
.add-gallery-v1 .form-control,
.add-gallery-v1 .form-textbox,
.add-gallery-v1 select.form-control,
.add-gallery-v1 input.form-control {
  background: #151515 !important;
  border: 1px solid #3b3b3b !important;
  color: #fff !important;
}
.add-gallery-v1 .form-control::placeholder {
  color: #888;
}
.add-gallery-v1 p,
.add-gallery-v1 b {
  color: #d6d6d6;
}
.add-gallery-v1 h2 {
  color: #fff;
}
.add-gallery-v1 .or {
  color: #b9b9b9;
}
.add-gallery-v1 .form_all,
.add-gallery-v1 .add-gallery-form {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
.add-gallery-v1 .form-submit-button,
.add-gallery-v1 .galleryform {
  background: #d39d34;
  border-color: #d39d34;
  color: #111;
}
.add-gallery-v1 .upload_file,
.add-gallery-v1 .outer-container,
.add-gallery-v1 .inner-container {
  background: #1a1a1a;
  border-color: #3b3b3b;
}
.add-gallery-v1 .outer-container {
  height: auto !important;
  min-height: 240px;
  overflow: visible !important;
}
.add-gallery-v1 .inner-container.upload_file {
  position: relative !important;
  height: auto !important;
  overflow: visible !important;
  padding: 20px;
}
.add-gallery-v1 .upload-drop-label {
  color: #d39d34;
}
.add-gallery-v1 .upload-filesection p {
  color: #b9b9b9;
}
.add-gallery-v1 .form-required {
  color: #d39d34;
}
.add-gallery-v1 .search_locality p,
.add-gallery-v1 .form-line p {
  color: #d6d6d6;
}
.add-gallery-v1 .address-form-section label {
  color: #f2f2f2;
}
.add-gallery-v1 .showimages h2 {
  color: #999;
  font-size: 18px;
}
.add-gallery-v1 .form_upload,
.add-gallery-v1 .form_upload.address-form-section {
  background: #202020 !important;
  border-color: #333 !important;
  color: #f0f0f0 !important;
}
.add-gallery-v1 .form_upload label {
  color: #f2f2f2 !important;
}
.add-gallery-v1 .form_upload p,
.add-gallery-v1 .form_upload b,
.add-gallery-v1 .form_upload span {
  color: #d6d6d6 !important;
}

/* ── Photos listing page ── */
.photos-listing-v1 .dashboard-v1-hero h2 {
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0.04em;
}
.photos-listing-v1-hero-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.photos-listing-v1-content {
  margin-top: 20px;
}
.photos-listing-v1-upload {
  background: #202020;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}
.photos-listing-v1-upload input[type="file"] {
  display: none !important;
}
.photos-listing-v1-upload-btn {
  display: inline-block;
  background: #d39d34;
  color: #111;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
}
.photos-listing-v1-upload-btn:hover {
  background: #e0ad40;
}
.photos-listing-v1-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.photos-listing-v1-item {
  background: #202020;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
}
.photos-listing-v1-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #111;
}
.photos-listing-v1-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photos-listing-v1-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #d39d34;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.photos-listing-v1-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 10px;
}
.photos-listing-v1-actions a {
  color: #b9b9b9;
  font-size: 16px;
}
.photos-listing-v1-actions a:hover {
  color: #d39d34;
  text-decoration: none;
}

@media (max-width: 1199px) {
  .gallery-manage-v1 .dashboard-v1-hero h2,
  .add-gallery-v1 .dashboard-v1-hero h2,
  .photos-listing-v1 .dashboard-v1-hero h2 {
    font-size: 40px;
  }
  .photos-listing-v1 .dashboard-v1-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 767px) {
  .gallery-manage-v1 .dashboard-v1-hero h2,
  .add-gallery-v1 .dashboard-v1-hero h2,
  .photos-listing-v1 .dashboard-v1-hero h2 {
    font-size: 34px;
  }
  .photos-listing-v1-content {
    display: flex;
    flex-direction: column;
  }
  .photos-listing-v1-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    order: -1;
  }
}

/* ── Header nav buttons (Map and Galleries, Logout) ── */
.create_account ul li:has(.header-nav-btn),
.create_account ul li:has(.header-nav-btn):hover,
.create_account ul li:has(.header-nav-btn):focus,
.create_account ul li:has(.header-nav-btn):active {
  border: none !important;
  background: none !important;
  margin-top: 12px;
  margin-left: 6px;
}
.create_account ul li:first-child .header-nav-btn,
.create_account ul li:first-child .header-nav-btn:hover,
.create_account ul li:first-child .header-nav-btn:focus {
  color: #f5f0e8 !important;
}
.create_account .header-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid rgba(201, 151, 59, 0.4);
  background: rgba(201, 151, 59, 0.10);
  color: #f5f0e8 !important;
  font-family: 'Catamaran', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.create_account .header-nav-btn:hover,
.create_account .header-nav-btn:focus {
  background: rgba(201, 151, 59, 0.22);
  border-color: #c9973b;
  color: #fff !important;
  text-decoration: none;
}
.create_account .header-nav-btn .fa {
  font-size: 15px;
  color: #c9973b;
}
.create_account .header-logout-btn {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}
.create_account .header-logout-btn:hover,
.create_account .header-logout-btn:focus {
  border-color: rgba(255, 80, 80, 0.5);
  background: rgba(255, 80, 80, 0.10);
}
.create_account .header-logout-btn .fa {
  color: #e0e0e0;
}
.create_account .header-logout-btn:hover .fa {
  color: #ff6b6b;
}
@media (max-width: 767px) {
  .create_account .header-nav-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* ── Fix textarea position on partners/contact forms ── */
#comments,
.partners #comments,
.contact-page #comments {
  position: relative !important;
  top: 0 !important;
}

/* ── Nav active state — pill style ── */
.navbar-inverse .navbar-nav > .active,
.create_account ul li.active {
  background-color: transparent !important;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
  background-color: var(--px-gold, #d4a843) !important;
  color: #111 !important;
  border-radius: 6px !important;
  margin: 6px 2px;
  padding: 9px 16px !important;
  font-weight: 700;
}

/* ── reCAPTCHA — centered on all forms ── */
.recaptcha-partner,
.recaptcha-wrap,
.submit-btn,
.partners-captcha {
  text-align: center;
  margin-top: 12px;
}

.recaptcha-partner .g-recaptcha,
.recaptcha-wrap .g-recaptcha,
.submit-btn .g-recaptcha,
.partners-captcha .g-recaptcha {
  display: inline-block;
  margin-bottom: 14px;
}

/* ── Global submit button style ── */
.modern-contact-card input[type="submit"],
.partners-submit,
.button_topbk,
.submit-btn input[type="submit"],
.contact-form input[type="submit"] {
  display: block;
  width: 100%;
  height: 48px;
  background: var(--px-gold, #d4a843) !important;
  color: #111 !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .1s;
}

.modern-contact-card input[type="submit"]:hover,
.partners-submit:hover,
.button_topbk:hover,
.submit-btn input[type="submit"]:hover,
.contact-form input[type="submit"]:hover {
  background: #e0b854 !important;
  transform: translateY(-1px);
}

/* ── Fix: "Photo" / "Feature image" text barely visible on edit gallery dark bg ── */
.edit-gallery-page .img-title,
.add-gallery-page .img-title {
  color: #e7e7e7 !important;
}

/* ── Fix: Google Places autocomplete dropdown dark theme ── */
.pac-container {
  background: #1e1e1e !important;
  border: 1px solid #444 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.5) !important;
  z-index: 10000 !important;
}
.pac-item {
  background: #1e1e1e !important;
  color: #e0e0e0 !important;
  border-top: 1px solid #333 !important;
  padding: 6px 10px !important;
  cursor: pointer !important;
}
.pac-item:hover,
.pac-item-selected {
  background: #2a2a2a !important;
}
.pac-item .pac-item-query {
  color: #f5f0e8 !important;
}
.pac-item .pac-matched {
  color: #c9973b !important;
}
.pac-icon {
  filter: invert(0.8);
}

/* ── Fix: justifiedGallery stretch prevention ── */
/* Only hide when justifiedGallery is active (adds .justified-gallery class) */
#animated-thumbnails-gallery.justified-gallery {
  opacity: 0;
  transition: opacity 0.3s ease;
}
#animated-thumbnails-gallery.justified-gallery.jg-complete {
  opacity: 1;
}
#animated-thumbnails-gallery.justified-gallery .gallery-item img {
  object-fit: cover;
}

/* ── Fix: AmCharts balloon/tooltip readability ── */
.amcharts-balloon-div {
  background: rgba(20,20,20,.95) !important;
  border: 1px solid #555 !important;
  border-radius: 6px !important;
  color: #f0f0f0 !important;
  padding: 6px 10px !important;
  font-size: 13px !important;
}
