/* GALLERY STYLING #################################### */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-item {
  position: relative;
  background-color: rgb(182, 181, 171);
  border-radius: 12px;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
  min-width: 180px;
  max-width: 250px;
  margin: auto;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Back to cover for desktop for better fill */
  object-position: center;
  display: block;
  transition: transform 0.3s;
}

.grid-item:hover {
  box-shadow: 0px 0px 25px rgb(196, 147, 55);
  transform: translateY(-6px) scale(1.03);
}

/* Premier Set Styling */
.grid-item.premier-set-item {
  border: 3px solid rgb(235, 164, 34);
  background: linear-gradient(
    135deg,
    rgb(182, 181, 171) 0%,
    rgb(200, 199, 189) 100%
  );
}

.grid-item.premier-set-item:hover {
  box-shadow: 0px 0px 30px rgb(235, 164, 34),
    0px 0px 50px rgba(235, 164, 34, 0.3);
  transform: translateY(-8px) scale(1.05);
}

.grid-item.premier-set-item::before {
  content: "PREMIER SET";
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgb(235, 164, 34);
  color: #000;
  font-size: 0.7em;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-info-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 20px 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.9em;
  z-index: 2;
  box-sizing: border-box;
  pointer-events: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.grid-item:hover .gallery-info-overlay {
  opacity: 1;
  pointer-events: auto;
}

.learn-more-btn {
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  background: rgb(235, 164, 34);
  color: #222;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.85em;
  font-weight: bold;
  cursor: pointer;
  z-index: 4;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.learn-more-btn:hover {
  background: #fff;
  transform: translateX(-50%) scale(1.05);
}

.grid-item:hover .learn-more-btn {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    padding: 18px;
  }
  .grid-item {
    min-width: 160px;
    max-width: 220px;
    height: 200px;
  }
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    padding: 15px;
  }
  .grid-item {
    min-width: 140px;
    max-width: 180px;
    height: 180px;
  }
  /* Mobile-friendly image sizing for better visibility */
  .grid-item img {
    width: 95%;
    height: 95%;
    object-fit: contain;
    margin: auto;
  }
  .gallery-info-overlay {
    font-size: 0.85em;
    padding: 15px 10px;
  }
}

@media (max-width: 700px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
  }
  .grid-item {
    min-width: 150px;
    max-width: 200px;
    height: 180px;
  }
  .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: auto;
  }
  .gallery-info-overlay {
    font-size: 0.8em;
    padding: 12px 8px;
  }
  .learn-more-btn {
    font-size: 0.75em;
    padding: 6px 12px;
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 12px;
  }
  .grid-item {
    min-width: 140px;
    max-width: 180px;
    height: 160px;
  }
  .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: auto;
  }
  .gallery-info-overlay {
    font-size: 0.75em;
    padding: 10px 6px;
  }
  .learn-more-btn {
    font-size: 0.7em;
    padding: 5px 10px;
    bottom: 8px;
  }
}

/* POPUP STYLING #################################### */

.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.popup img {
  max-width: 400px;
  max-height: 400px;
  margin-right: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.popup .close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fff;
  font-size: 45px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.popup .close:hover {
  color: rgb(235, 164, 34);
}

#popup-details {
  color: #fff;
  max-width: 450px;
  padding: 25px;
  font-size: 1.1em;
}

#popup-details h2 {
  color: rgb(235, 164, 34);
  margin-bottom: 10px;
}

#popup-details a {
  color: rgb(235, 164, 34);
  text-decoration: underline;
}

#popup-details a:hover {
  color: #fff;
}

@media (max-width: 700px) {
  .popup {
    flex-direction: column;
    padding: 20px;
  }

  .popup img {
    margin-right: 0;
    margin-bottom: 20px;
    max-width: 300px;
    max-height: 300px;
  }

  #popup-details {
    max-width: 100%;
    text-align: center;
    font-size: 1em;
    padding: 20px;
  }

  .popup .close {
    top: 15px;
    right: 20px;
    font-size: 35px;
  }
}

@media (max-width: 480px) {
  .popup img {
    max-width: 250px;
    max-height: 250px;
  }

  #popup-details {
    font-size: 0.9em;
    padding: 15px;
  }

  .popup .close {
    top: 10px;
    right: 15px;
    font-size: 30px;
  }
}

/* IMAGE GALLERY IN POPUP */
.popup-image-gallery {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  opacity: 0.7;
}

.gallery-thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

.gallery-thumb.active {
  border-color: rgb(235, 164, 34);
  opacity: 1;
}

/* ZOOM OVERLAY */
.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.zoom-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zoom-close {
  position: absolute;
  top: -40px;
  right: -20px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s ease;
}

.zoom-close:hover {
  color: rgb(235, 164, 34);
}

.zoom-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: move;
}

.zoom-controls {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.zoom-btn {
  background: rgb(235, 164, 34);
  color: #222;
  border: none;
  border-radius: 5px;
  padding: 8px 16px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* ZOOM OVERLAY STYLES #################################### */

#appraisal-popup.zoom-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.95) !important;
  z-index: 10000 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.zoom-container {
  position: relative;
  width: 90%;
  height: 90%;
  display: flex;
  flex-direction: column;
}

.zoom-close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.zoom-close:hover {
  background: rgba(235, 164, 34, 0.8);
}

.zoom-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10002;
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 5px;
}

.zoom-btn {
  background: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 3px;
  font-weight: bold;
  min-width: 40px;
}

.zoom-btn:hover {
  background: #ddd;
}

.zoom-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.zoom-image {
  max-width: 100%;
  max-height: 100%;
  transform-origin: center;
  transition: transform 0.2s ease;
  cursor: grab;
}

.zoom-image:active {
  cursor: grabbing;
}

/* APPRAISAL POPUP SPECIFIC STYLES */
.appraisal-container {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

.appraisal-pdf-container,
.appraisal-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  position: relative;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  width: 100% !important;
  height: calc(100vh - 120px) !important;
}

.appraisal-image {
  width: 100%;
  height: auto;
  min-height: 100%;
  transform-origin: top left;
  transition: none;
  cursor: grab;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.appraisal-image:active {
  cursor: grabbing;
}

.appraisal-iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: calc(100vh - 120px) !important;
  transform-origin: top left;
  transition: none;
  border-radius: 0;
  border: none;
  background: white;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.appraisal-title {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  z-index: 10003;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  max-width: 90%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.appraisal-title p {
  margin: 0;
  color: rgb(235, 164, 34);
}

#appraisal-popup .zoom-controls {
  bottom: 20px;
  gap: 10px;
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

#appraisal-popup .zoom-controls .zoom-btn {
  background: rgb(235, 164, 34);
  color: #222;
  border: none;
  padding: 10px 15px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  min-width: 50px;
}

#appraisal-popup .zoom-controls .zoom-btn:hover {
  background: #fff;
}

/* Original styles kept for compatibility */
#appraisal-popup .zoom-container {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

@media (max-width: 700px) {
  .popup-image-gallery {
    gap: 6px;
  }

  .gallery-thumb {
    width: 50px;
    height: 50px;
  }

  .zoom-close {
    font-size: 30px;
    top: -35px;
    right: -15px;
  }

  .zoom-controls {
    gap: 8px;
  }

  .zoom-btn {
    padding: 6px 12px;
    font-size: 0.9em;
  }

  /* Mobile adjustments for appraisal popup */
  .appraisal-container {
    width: 100vw !important;
    height: 100vh !important;
  }

  #appraisal-popup .zoom-container {
    width: 100vw !important;
    height: 100vh !important;
  }

  .appraisal-pdf-container,
  .appraisal-image-container {
    height: calc(100vh - 100px) !important;
  }

  #appraisal-popup .zoom-close {
    top: 10px;
    right: 10px;
    font-size: 35px;
    width: 45px;
    height: 45px;
  }

  .appraisal-title {
    bottom: 70px;
    font-size: 1.1em;
    max-width: 95%;
    padding: 8px 15px;
  }

  #appraisal-popup .zoom-controls {
    padding: 10px;
    gap: 8px;
  }

  #appraisal-popup .zoom-controls .zoom-btn {
    font-size: 0.9em;
    padding: 8px 12px;
    min-width: 40px;
  }
}

/* COLLECTIONS PAGE MOBILE ENHANCEMENTS #################################### */

/* Dropdown menu improvements for collections page */
/* Make dropdown expand down instead of to the right for better experience */
/* This applies to all screen sizes for the collections page */
body nav ul ul {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  background-color: rgba(129, 91, 20, 0.8) !important;
  box-shadow: none !important;
  margin-left: 20px !important;
}

/* Enhanced styling for dropdown submenus to make them stand out */
body nav ul ul {
  background-color: rgba(
    89,
    61,
    15,
    0.9
  ) !important; /* Darker brown for better contrast */
  border-left: 3px solid rgb(235, 164, 34) !important; /* Golden accent border */
  box-shadow: inset 2px 0 4px rgba(0, 0, 0, 0.3) !important; /* Subtle inner shadow */
}

body nav ul ul li {
  border-bottom: 1px solid rgba(235, 164, 34, 0.3) !important; /* Golden divider lines */
}

body nav ul ul a {
  color: #fff !important;
  font-style: italic !important; /* Italicize submenu text for distinction */
  padding: 1em 2.5em !important; /* Extra left padding for visual hierarchy */
  transition: all 0.3s ease !important;
}

body nav ul ul a:hover {
  background-color: rgba(
    235,
    164,
    34,
    0.4
  ) !important; /* Golden hover effect */
  color: #fff !important;
  padding-left: 3em !important; /* Slight indent on hover for interactive feedback */
}

body nav ul li:hover > ul,
body nav li.active > ul {
  display: block !important;
}

/* Improved mobile navigation for collections page */
@media (max-width: 768px) {
  /* Header adjustments for mobile */
  header {
    height: 120px;
    padding: 10px;
  }

  header h1 {
    font-size: 1.8em;
    margin: 0;
  }

  .headerShields {
    height: 40px;
    margin: 20px 10px;
  }

  /* Content spacing for mobile */
  #content {
    padding: 15px 5px;
    width: 95%;
  }

  /* Navigation menu mobile improvements */
  nav {
    padding-top: 80px;
    width: 100% !important; /* Full screen for mobile */
    overflow-y: auto; /* Enable vertical scrolling on mobile */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }

  nav ul {
    padding-bottom: 30px; /* Extra bottom padding for mobile scrolling */
  }

  /* Hamburger menu improvements */
  .hamburger {
    font-size: 28px;
    padding: 12px 18px;
    border-radius: 5px;
    z-index: 1001;
    position: fixed !important;
    top: 15px;
    left: 15px;
  }

  /* Adjust header to avoid hamburger overlap */
  header {
    height: 120px;
    padding: 10px 10px 10px 70px; /* Add left padding for hamburger space */
  }

  nav a {
    font-size: 1.2em;
    padding: 1.2em 1.5em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }

  /* Submenu improvements for mobile */
  nav ul ul {
    position: static;
    display: none; /* Hidden by default */
    width: 100%;
    background-color: rgba(
      89,
      61,
      15,
      0.9
    ); /* Darker brown for better contrast */
    border-left: 3px solid rgb(235, 164, 34); /* Golden accent border */
    box-shadow: inset 2px 0 4px rgba(0, 0, 0, 0.3); /* Subtle inner shadow */
    margin: 0;
    padding: 0;
  }

  nav ul ul li {
    border-bottom: 1px solid rgba(235, 164, 34, 0.3); /* Golden divider lines */
  }

  nav ul ul a {
    font-size: 1.1em;
    padding: 1em 2.5em; /* Extra left padding for visual hierarchy */
    color: #fff;
    font-style: italic; /* Italicize submenu text for distinction */
    background-color: transparent;
    transition: all 0.3s ease;
  }

  nav ul ul a:hover {
    background-color: rgba(235, 164, 34, 0.4); /* Golden hover effect */
    padding-left: 3em; /* Slight indent on hover for interactive feedback */
  }

  /* Show dropdown menus on mobile always when parent is clicked */
  nav li.active > ul {
    display: block !important;
  }

  /* Touch-friendly buttons and links */
  .learn-more-btn {
    font-size: 0.9em;
    padding: 10px 16px;
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  /* Gallery improvements for touch */
  .gallery-info-overlay {
    padding: 15px 10px;
    font-size: 0.9em;
  }

  .grid-item {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  .grid-item:active {
    transform: translateY(-6px) scale(1.01);
  }

  /* Popup improvements for mobile */
  .popup .close {
    font-size: 40px;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
  }

  .popup {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }

  .popup img {
    touch-action: pan-x pan-y pinch-zoom;
  }
}

@media (max-width: 480px) {
  /* Extra small screens */
  header {
    height: 100px;
    padding: 10px 10px 10px 60px; /* Adjust for smaller hamburger */
  }

  header h1 {
    font-size: 1.5em;
  }

  .headerShields {
    height: 35px;
    margin: 15px 8px;
  }

  /* Hamburger positioning for small screens */
  .hamburger {
    top: 10px;
    left: 10px;
    font-size: 24px;
    padding: 10px 15px;
  }

  /* Navigation adjustments for small screens */
  nav {
    width: 100% !important; /* Full screen for mobile */
    padding-top: 70px;
    overflow-y: auto; /* Ensure scrolling on small screens */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile devices */
  }

  nav ul {
    padding-bottom: 40px; /* Extra bottom padding for small screen scrolling */
  }

  nav a {
    font-size: 1.1em;
    padding: 1em 1.2em;
  }

  /* Content spacing */
  #content {
    padding: 10px 3px;
    width: 98%;
  }

  /* Gallery grid for very small screens */
  .gallery {
    padding: 8px;
    gap: 8px;
  }

  .grid-item {
    min-width: 90px;
    max-width: 120px;
    height: 120px;
  }

  .grid-item img {
    height: 120px;
  }

  /* Touch-friendly overlay and buttons */
  .gallery-info-overlay {
    font-size: 0.8em;
    padding: 8px 6px;
  }

  .learn-more-btn {
    font-size: 0.8em;
    padding: 8px 12px;
    bottom: 6px;
  }

  /* Mobile popup adjustments */
  .popup {
    padding: 15px;
  }

  body.menu-open {
    overflow: visible; /* Allow scrolling on mobile when menu is open */
    position: static; /* Remove fixed positioning to allow natural scrolling */
    width: 100%;
  }

  .popup img {
    max-width: 220px;
    max-height: 220px;
    touch-action: pan-x pan-y pinch-zoom;
  }

  #popup-details {
    font-size: 0.85em;
    padding: 12px;
  }

  /* Gallery thumbs for mobile */
  .gallery-thumb {
    width: 50px;
    height: 50px;
  }

  /* Zoom controls for mobile */
  .zoom-controls {
    bottom: 15px;
    gap: 8px;
  }

  .zoom-btn {
    font-size: 0.9em;
    padding: 8px 12px;
    min-width: 40px;
    min-height: 40px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
  }

  .zoom-image {
    touch-action: pan-x pan-y pinch-zoom;
  }

  .zoom-overlay {
    -webkit-overflow-scrolling: touch;
  }
}

/* Landscape orientation improvements for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  header {
    height: 80px;
  }

  header h1 {
    font-size: 1.6em;
  }

  .headerShields {
    height: 30px;
    margin: 10px;
  }

  nav {
    padding-top: 60px;
  }

  .hamburger {
    top: 8px;
    left: 8px;
  }

  /* Adjust gallery for landscape */
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .grid-item {
    height: 140px;
  }

  .grid-item img {
    height: 140px;
  }
}

/* PDF viewer specific styles */
/* Object-based viewer responsive rules */
.pdf-wrapper {
  height: calc(100vh - 120px);
  max-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 10px;
  box-sizing: border-box;
}

#pdf-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
}

#pdf-object {
  width: 95vw;
  max-width: calc(100vw - 32px);
  height: calc(100vh - 160px);
  max-height: calc(100vh - 160px);
  object-fit: contain;
  display: block;
  border: none;
  margin: 0 auto;
  box-sizing: border-box;
}

.appraisal-pdf-canvas {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  background: #fff; /* ensure canvas isn't visually black on mobile */
  z-index: 1;
}

.pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.pdf-toolbar .zoom-btn {
  padding: 8px 10px;
  font-size: 0.95em;
}

/* Ensure the PDF container is touch-friendly on small screens */
@media (max-width: 700px) {
  #pdf-object {
    width: 98vw;
    max-width: 98vw;
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
  }
  .appraisal-pdf-canvas {
    width: 100%;
    height: auto;
  }
  .pdf-toolbar .zoom-btn {
    padding: 8px;
    font-size: 0.9em;
  }
}

/* Ensure canvas is visible and PDF error text is readable above it */
#pdf-error {
  position: absolute;
  z-index: 10005;
  max-width: 90%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
