/* An art room with a personal invitation before the complete collection. */
.gallery-mode .collection { padding-top: 28px; }
.gallery-mode .section-head { align-items: center; }
.gallery-mode .section-head h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.3; color: #f6ecdf; }
.gallery-mode .section-head .eyebrow { color: #d8b9aa; }
.gallery-mode .count { padding: 14px 18px; border: 1px solid #e2c1aa20; background: #dabb9905; border-radius: 12px; }
.gallery-mode .count > span:first-child { font-size: 2.2rem; color: #e9c8b2; }
.gallery-discovery { margin-top: 29px; }
.gallery-feature {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center; gap: clamp(26px, 3.5vw, 50px); padding: clamp(22px, 3vw, 40px);
  border: 1px solid #e7c6ac26; border-radius: 20px;
  background: radial-gradient(ellipse at 8% 0%, #97626824, transparent 55%), linear-gradient(130deg, #2927339e, #1a223080);
}
.gallery-feature-picture { position: relative; display: block; width: 100%; aspect-ratio: 16/10; border: 1px solid #dfc5aa55; border-radius: 2px; padding: 9px 9px 28px; background: #e8dcc6; box-shadow: 0 18px 35px #06071260; transform: perspective(1200px) rotateY(2deg) rotateZ(-1deg); }
.gallery-feature-picture img { display: block; width: 100%; height: 100%; object-fit: contain; background: #202a34; }
.gallery-feature-stamp { position: absolute; bottom: 8px; left: 14px; color: #736253; font-size: .4375rem; line-height: 1; letter-spacing: .15em; }
.gallery-feature-expand { position: absolute; bottom: 5px; right: 12px; color: #806956; }
.gallery-feature-expand .icon { width: 14px; height: 14px; }
.gallery-feature-copy .eyebrow { color: #dbc1b1; font-size: .5rem; letter-spacing: .16em; }
.gallery-feature-copy h3 { margin: 17px 0 15px; font: 400 clamp(1.6rem, 2.5vw, 2.25rem)/1.4 'Playfair Display', Georgia, serif; color: #ffe4d0; text-wrap: balance; }
#galleryFeatureDescription { margin: 0; color: #c2c3ce; font-size: .8125rem; line-height: 1.9; }
.gallery-feature-collection { display: inline-flex; align-items: center; margin: 18px 0 0; padding: 7px 11px; border: 1px solid #dac6b328; border-radius: 100px; color: #d9c4b4; font-size: .5625rem; }
.gallery-feature-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 23px; }
.gallery-feature-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; border-radius: 6px; padding: 11px 15px; font-size: .625rem; }
#galleryFeatureView { border-color: #efdbc5; background: #efdbc5; color: #493b35; }
#galleryFeatureShuffle { padding-inline: 0; background: transparent; border: 0; color: #e6bfac; }
.gallery-feature-actions .icon { width: 15px; height: 15px; }
.gallery-feature-picture.feature-unavailable::after { content: 'Bức tranh đang chờ An mở lại'; display: grid; position: absolute; inset: 9px 9px 28px; place-items: center; color: #ddd6c8; background: #252630; font-size: .75rem; }
.gallery-moods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 19px; }
.gallery-mood { position: relative; isolation: isolate; min-width: 0; overflow: hidden; display: flex; align-items: flex-end; gap: 12px; min-height: 170px; padding: 22px; border-color: #dfc6b630; border-radius: 12px; background: #212631; text-align: left; }
.gallery-mood > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .44; z-index: -2; transition: transform .7s, opacity .5s; }
.gallery-mood::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #161b2405, #161b2460 25%, #161b24eb); }
.gallery-mood > span { display: block; min-width: 0; flex: 1; }
.gallery-mood small { display: block; color: #e8cdbb; font-size: .4375rem; letter-spacing: .1em; line-height: 1.5; }
.gallery-mood strong { display: block; margin-top: 8px; font: 400 clamp(1.1rem, 1.7vw, 1.4rem)/1.4 'Playfair Display', Georgia, serif; color: #fff0e0; text-wrap: balance; }
.gallery-mood em { display: block; margin-top: 9px; color: #c5c8d0; font-size: .625rem; line-height: 1.8; font-style: normal; }
.gallery-mood > .icon { width: 17px; height: 17px; color: #f0d3bc; margin-bottom: 4px; }
.gallery-mood-illustration small { color: #ecd1e5; }
.gallery-mood-motion small { color: #cee6dc; }
.gallery-mode .tabs { margin-top: 35px; padding-bottom: 19px; gap: 8px; }
.gallery-mode .tabs button { border-color: #e2c9b522; font-size: .6875rem; }
.gallery-mode .tabs .selected { color: #49392f; background: #e8cfbc; border-color: #e8cfbc; }
.gallery-mode .tabs .saved-filter { color: #efbccb; }
.gallery-mode .tabs .saved-filter.selected { color: #49392f; }
.gallery-mode .gallery-controls :is(input, select) { background: #171d2bc9; border-color: #e1c5b225; border-radius: 9px; font-size: .8125rem; }
.gallery-mode .gallery-controls input:focus-visible { outline-color: #e8cfbc; }
.gallery-mode .sort-label { width: 185px; flex-shrink: 0; }
.gallery-mode .film-label { width: 270px; }
.preference-status { margin: 12px 0 0; color: #d9c3b3; font-size: .75rem; line-height: 1.6; }
@media (max-width: 760px) {
  .gallery-mode .gallery-controls { flex-wrap: wrap; }
  .gallery-mode .search-label { flex-basis: 100%; }
  .gallery-mode .film-label { flex: 1; width: auto; }
  .gallery-mode .sort-label { width: 185px; }
}
@media (max-width: 600px) {
  .gallery-mode .film-label, .gallery-mode .sort-label { width: 100%; flex: auto; }
}
.gallery-mode .gallery-item { padding: 9px 9px 17px; border-color: #d2bfa41f; border-radius: 10px; background: linear-gradient(160deg, #38344140, #1c223480); box-shadow: 0 8px 20px #06090f20; }
.gallery-mode .media-frame { padding: 5px; border: 1px solid #e0cbb425; border-radius: 4px; background: #d7c3af08; box-shadow: 0 8px 17px #05060b32; perspective: 1000px; transition: transform .45s, box-shadow .45s; }
.gallery-mode .card { border-radius: 1px; }
.gallery-mode .save-art { top: 12px; right: 12px; border-color: #e5cfb552; width: 40px; height: 40px; background: #161c29cc; }
.gallery-mode .card-meta { color: #d6b79f; margin-inline: 7px; font-size: .5rem; }
.gallery-mode .gallery-item h3 { margin: 8px 7px 5px; font-size: .8125rem; color: #eadfd5; }
.gallery-mode .gallery-item p { margin-inline: 7px; font-size: .6875rem; }
.gallery-mode .gallery-more button { border-color: #e5cbb940; border-radius: 6px; color: #edcfba; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery-feature-picture:hover { transform: perspective(1200px) rotateX(2deg) rotateY(-2deg) translateY(-3px); }
  .gallery-mood:hover > img { transform: scale(1.04); opacity: .59; }
  .gallery-mood:hover > .icon { transform: translateX(3px); }
  .gallery-mode .gallery-item:hover .media-frame { transform: perspective(1000px) rotateX(1.4deg) translateY(-3px); box-shadow: 0 12px 28px #05060b55; }
  .gallery-mode .card:hover img { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .gallery-mode .gallery-item:focus-within .media-frame { transform: translateY(-3px); }
}
@media (max-width: 950px) {
  .gallery-feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 25px; padding: 25px; }
  .gallery-mood { padding: 17px; min-height: 160px; }
  .gallery-mood strong { font-size: 1.125rem; }
  .gallery-mood em { font-size: .5625rem; }
}
@media (max-width: 700px) {
  .gallery-mode .tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding: 6px 0 14px; scrollbar-width: thin; }
  .gallery-mode .tabs button { flex-shrink: 0; }
  .gallery-mode .tabs .saved-filter { margin-left: 0; }
  .gallery-mode .section-head { align-items: flex-start; gap: 17px; }
  .gallery-mode .count { padding: 10px; gap: 8px; }
  .gallery-mode .count > span:first-child { font-size: 1.8rem; }
  .gallery-mode .count > span:last-child { max-width: 60px; white-space: normal; font-size: .5625rem; padding-left: 8px; }
  .gallery-feature { grid-template-columns: 1fr; gap: 25px; padding: 20px; border-radius: 15px; }
  .gallery-feature-copy h3 { font-size: 1.8rem; margin-top: 12px; }
  .gallery-feature-copy { padding-inline: 2px; }
  .gallery-feature-picture { aspect-ratio: 16/10; }
  .gallery-moods { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 88%; gap: 12px; margin-top: 15px; padding-bottom: 8px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .gallery-mood { scroll-snap-align: start; }
  .gallery-mood { min-height: 128px; padding: 18px 20px; }
  .gallery-mood strong { font-size: 1.3rem; }
  .gallery-mood em { font-size: .625rem; }
  .gallery-mood > img { object-position: 50% 40%; }
  .gallery-mode .section-head h2 { font-size: 1.85rem; }
}
@media (max-width: 600px) {
  .gallery-mode .count { padding: 10px 13px; gap: 11px; }
  .gallery-mode .count > span:first-child { font-size: 1.65rem; }
  .gallery-mode .count > span:last-child { max-width: none; white-space: nowrap; padding-left: 11px; }
  .gallery-mode .save-art { width: 44px; height: 44px; }
}
@media (max-width: 360px) {
  .gallery-mode .section-head { display: block; }
  .gallery-mode .count { width: fit-content; margin-top: 18px; }
  .gallery-feature { padding: 15px; }
  .gallery-feature-copy h3 { font-size: 1.55rem; }
  .gallery-feature-actions { gap: 8px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-feature-picture, .gallery-mood img, .gallery-mode .media-frame { transform: none; transition: none; }
}
