#galleryView { max-width: 1160px; margin-inline: auto; }
.photo-gallery-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.photo-gallery-toolbar button { min-height: 44px; }
.photo-gallery-toolbar .secondary-button, #photoGalleryMore { padding: 11px 17px; border: 1px solid #d8d3ff; border-radius: 14px; background: #f1efff; color: #473bc1; font: inherit; font-weight: 800; cursor: pointer; }
.photo-gallery-toolbar button:disabled { cursor: default; opacity: .55; }
.photo-gallery-toolbar .photo-gallery-refresh { margin-left: auto; }
.photo-gallery-heading h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.photo-gallery-heading p { max-width: 720px; color: #58627a; line-height: 1.6; }
.photo-gallery-heading .photo-gallery-privacy { font-size: .88rem; }
#photoGalleryStatus { min-height: 24px; color: #4238a0; overflow-wrap: anywhere; }
.photo-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); gap: 20px; }
.photo-gallery-card { min-width: 0; display: flex; flex-direction: column; padding: 12px; background: white; border: 2px solid #e5e7f4; border-radius: 22px; box-shadow: 0 8px 24px #34386108; }
.photo-gallery-card.is-selected { border-color: #5b50de; background: #f1efff; }
.photo-gallery-preview { width: 100%; padding: 0; position: relative; aspect-ratio: 4 / 3; border: 0; border-radius: 13px; overflow: hidden; background: #f4f5fa; cursor: pointer; }
.photo-gallery-preview img { width: 100%; height: 100%; object-fit: contain; }
.photo-gallery-check { display: none; position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; align-items: center; justify-content: center; border: 2px solid #665cea; border-radius: 50%; color: transparent; background: white; font-weight: 900; }
.is-selecting .photo-gallery-check { display: flex; }
.is-selected .photo-gallery-check { color: white; background: #5b50de; }
.photo-gallery-name { margin: 12px 2px; font-size: .88rem; color: #525e79; overflow-wrap: anywhere; }
.simple-home-shortcuts > button:only-child { grid-column: 1 / -1; }
.photo-gallery-create-one { width: 100%; margin-top: auto; padding: 11px 10px; min-height: 48px; font-size: .88rem; white-space: normal; line-height: 1.4; }
.photo-gallery-delete { align-self: center; min-height: 44px; margin-top: 4px; color: #62697b; font-size: .82rem; }
.photo-gallery-empty { grid-column: 1 / -1; padding: 44px 24px; text-align: center; border: 2px dashed #dcdfee; border-radius: 22px; background: #ffffffb3; }
.photo-gallery-empty > span { font-size: 2.2rem; }
.photo-gallery-empty h3 { margin: 15px 0 8px; }
.photo-gallery-empty p { max-width: 540px; margin: auto; color: #667086; line-height: 1.6; }
#photoGalleryMore { display: block; margin: 24px auto; }
#galleryView [hidden] { display: none !important; }
#galleryView button:focus-visible { outline: 3px solid #252060; outline-offset: 3px; }
@media (max-width: 540px) {
  .photo-gallery-toolbar { gap: 8px; margin-bottom: 20px; }
  .photo-gallery-toolbar button { font-size: .85rem; padding: 10px 13px; }
  #photoGalleryCreate { order: 3; width: 100%; }
  .photo-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photo-gallery-card { padding: 8px; border-radius: 16px; }
  .photo-gallery-create-one { font-size: .8rem; padding: 10px 6px; }
}
@media (prefers-reduced-motion: reduce) { #galleryView * { scroll-behavior: auto; } }
