#phone-gallery {
  --catalog-bg: #111d31;
  --catalog-frost: #0e1829;
  color: #eff5ff;
  background:
    radial-gradient(ellipse at 12% 4%, #273f63 0, transparent 51%),
    radial-gradient(ellipse at 87% 72%, #291e37 0, transparent 55%),
    #0f192b;
}
#phone-gallery .catalog-heading {
  display: grid;
  align-items: end;
  gap: .75rem 2rem;
  max-width: none;
  margin-bottom: clamp(1.4rem, 3vw, 2.5rem);
}
#phone-gallery .catalog-heading h2 { color: #f4f8ff; }
#phone-gallery .catalog-heading p { max-width: 44ch; margin-top: 0; color: #c7d6ec; }
#phone-gallery .catalog-tools {
  grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);
  align-items: end;
  gap: .8rem 1rem;
  margin-bottom: .3rem;
  padding: clamp(1rem, 2.45vw, 1.65rem);
  border: 1px solid #7188a95e;
  border-radius: 1.15rem;
  background: #f2f6fc;
  color: #142942;
}
#phone-gallery .catalog-input {
  max-width: none;
  font-size: .95rem;
  color: #142942;
}
#phone-gallery .catalog-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .2rem 1rem;
  min-height: 45px;
  margin-bottom: .3rem;
}
#phone-gallery .catalog-result { min-height: unset; margin: 0; color: #d2e1f5; }
#phone-gallery [data-catalog-reset] {
  min-height: 44px;
  padding: .2rem .55rem;
  border: 0;
  border-radius: .35rem;
  color: #e0edff;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .2em;
}
#phone-gallery .catalog-track {
  scrollbar-color: #6886ae #243652;
  padding-bottom: .8rem;
  overscroll-behavior: contain auto;
}
#phone-gallery .variant-card {
  color: #14233a;
  background: #fcfdff;
  border: 1px solid #657e9f;
  border-radius: 1.05rem;
}
#phone-gallery .catalog-photo {
  isolation: isolate;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 45% 38%, #f8fbff 8%, #e3ebf7 67%, #dbe2ef);
}
#phone-gallery .catalog-photo::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(154deg, #fff8, transparent 42%, #9ab2d41a);
}
#phone-gallery .catalog-media {
  position: absolute;
  inset: 6%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#phone-gallery .catalog-media img {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: .5rem;
}
#phone-gallery [data-photo-frame] .catalog-media {
  inset: 3%;
  filter: drop-shadow(0 12px 14px #101e3b37);
}
#phone-gallery [data-photo-frame] img { border-radius: 0; }
:is(#phone-gallery, #phones, #phone-showcase) [data-photo-frame="iphone-silver"] img {
  clip-path: polygon(74.38% 13.06%, 76.35% 13.47%, 78.13% 15.00%, 79.69% 17.92%, 89.06% 40.14%, 90.21% 43.89%, 90.42% 46.81%, 89.79% 49.72%, 88.44% 52.22%, 86.35% 54.44%, 36.46% 92.92%, 34.58% 94.31%, 32.40% 94.72%, 30.31% 94.03%, 28.85% 92.78%, 27.60% 90.69%, 17.40% 67.50%, 16.46% 64.72%, 16.35% 62.22%, 16.77% 59.58%, 17.92% 57.08%, 20.10% 54.86%, 69.79% 15.00%, 72.40% 13.61%);
}
:is(#phone-gallery, #phones, #phone-showcase) [data-photo-frame="galaxy-lavender"] img {
  clip-path: polygon(60.94% 11.08%, 61.67% 11.36%, 84.48% 32.96%, 85.52% 34.22%, 85.63% 35.90%, 85.31% 38.01%, 84.48% 39.41%, 36.88% 85.83%, 35.10% 87.94%, 33.96% 88.22%, 32.81% 87.66%, 9.79% 64.38%, 8.85% 62.41%, 8.65% 60.03%, 8.96% 58.63%);
}
:is(#phone-gallery, #phones, #phone-showcase) [data-photo-frame="pixel-moonstone"] img {
  clip-path: polygon(22.20% 13.70%, 22.80% 10.69%, 24.60% 8.28%, 27.40% 6.93%, 31.00% 6.33%, 59.60% 9.04%, 64.80% 10.09%, 69.20% 12.20%, 71.20% 14.91%, 72.00% 18.07%, 80.60% 84.49%, 80.80% 87.20%, 80.20% 89.46%, 78.60% 91.57%, 76.20% 92.62%, 72.60% 93.22%, 33.60% 95.03%, 30.20% 94.58%, 27.40% 93.67%, 24.60% 92.17%, 22.80% 90.36%, 21.80% 87.95%);
}
:is(#phone-gallery, #phones, #phone-showcase) [data-photo-frame="iphone-sierra"] img {
  clip-path: polygon(20.68% 10.00%, 21.88% 7.44%, 24.79% 5.38%, 28.72% 4.10%, 32.14% 3.85%, 67.52% 3.97%, 71.97% 4.49%, 75.56% 5.90%, 77.61% 8.21%, 78.97% 11.15%, 79.32% 14.74%, 78.12% 85.90%, 77.61% 88.97%, 76.41% 91.03%, 74.02% 93.08%, 70.60% 94.36%, 66.32% 94.74%, 28.21% 94.62%, 24.62% 93.85%, 21.88% 92.44%, 20.00% 90.26%, 19.32% 87.69%);
}
:is(#phone-gallery, #phones, #phone-showcase) [data-photo-frame="iphone-space-black"] img {
  clip-path: polygon(19.49% 13.59%, 20.51% 11.15%, 22.91% 9.23%, 26.67% 8.33%, 31.28% 8.21%, 61.71% 8.33%, 65.98% 8.85%, 68.72% 9.87%, 70.60% 11.54%, 71.62% 13.85%, 72.14% 16.92%, 75.21% 84.49%, 75.04% 87.31%, 73.50% 90.13%, 71.45% 92.05%, 68.38% 93.33%, 64.27% 94.10%, 25.81% 93.97%, 21.37% 93.33%, 18.12% 91.92%, 15.73% 89.87%, 14.53% 87.18%, 14.19% 85.00%);
}
:is(#phone-gallery, #phones, #phone-showcase) [data-photo-frame="iphone-ultramarine"] img {
  clip-path: polygon(21.14% 14.00%, 22.29% 10.71%, 24.76% 8.43%, 28.76% 7.29%, 34.67% 7.14%, 65.14% 7.00%, 69.52% 7.29%, 72.95% 8.71%, 74.86% 11.00%, 75.62% 14.00%, 77.52% 85.71%, 77.14% 89.14%, 75.81% 91.57%, 73.33% 93.29%, 69.71% 94.57%, 65.90% 94.86%, 28.76% 94.86%, 25.14% 94.14%, 22.10% 92.86%, 19.81% 90.71%, 18.86% 87.71%);
}
:is(#phone-gallery, #phones, #phone-showcase) [data-photo-frame="pixel-rose"] img {
  clip-path: polygon(21.14% 8.86%, 23.05% 6.57%, 26.29% 5.14%, 30.67% 4.57%, 66.86% 4.43%, 71.05% 4.86%, 73.90% 6.00%, 75.62% 7.71%, 76.38% 10.86%, 76.95% 88.00%, 76.57% 90.57%, 74.67% 92.29%, 71.81% 93.14%, 67.81% 93.71%, 29.52% 94.29%, 25.90% 93.86%, 23.43% 92.71%, 22.48% 91.14%, 21.90% 88.57%, 20.38% 27.14%, 20.57% 11.86%);
}
:is(#phone-gallery, #phones, #phone-showcase) [data-photo-frame="pixel-seafoam"] img {
  clip-path: polygon(22.10% 9.29%, 23.05% 7.57%, 25.33% 6.71%, 28.76% 6.43%, 70.86% 6.29%, 73.14% 6.57%, 75.05% 7.43%, 76.00% 9.00%, 77.14% 89.71%, 76.57% 91.14%, 74.86% 92.57%, 72.76% 93.00%, 27.43% 93.43%, 25.33% 93.00%, 23.81% 92.14%, 23.05% 91.00%, 21.90% 23.71%);
}
:is(#phone-gallery, #phones, #phone-showcase) [data-photo-frame="galaxy-phantom"] img {
  clip-path: polygon(22.10% 5.43%, 23.05% 4.29%, 83.24% 3.14%, 85.52% 3.43%, 86.10% 4.29%, 93.90% 90.43%, 93.52% 92.43%, 92.19% 94.43%, 90.48% 95.00%, 9.71% 95.00%, 7.05% 94.00%, 6.29% 92.71%, 6.86% 90.29%);
}
#phone-gallery .catalog-card-body { padding: 1.03rem 1.08rem 1.08rem; }
#phone-gallery .catalog-card h3 { font-size: clamp(1.1rem, 2vw, 1.47rem); }
#phone-gallery .variant-finish { color: #3d526e; margin-top: .38rem; margin-bottom: .88rem; }
#phone-gallery .variant-choice {
  grid-template-columns: minmax(0,1fr) minmax(0,1.25fr);
  align-items: center;
}
#phone-gallery .variant-choice select { background: #f4f7fc; }
#phone-gallery [data-phone-action] {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: .9rem 0 0;
  padding: .48rem .5rem;
  border-radius: .65rem;
  color: white;
  background: #163d78;
  text-align: center;
  text-decoration: none;
}
#phone-gallery [data-phone-action]:hover { background: #20508f; }
#phone-gallery .catalog-arrow { color: #d9e7ff; background: #20334e; border-color: #829bbd; }
#phone-gallery .catalog-arrow:not(:disabled):hover { color: #fff; background: #355783; border-color: #a2c6f0; }
#phone-gallery .catalog-arrow:disabled { color: #90a1b7; background: #1c2b41; border-color: #4e617c; }
#phone-gallery .catalog-credit { color: #c6d5e9; margin-top: .65rem; }
#phone-gallery .catalog-credit a, #phone-gallery .catalog-credit summary { color: #c9deff; }
#phone-gallery .catalog-empty, #phone-gallery .catalog-empty p { color: #273c56; }
#phone-gallery :is(.catalog-arrow, .catalog-track, [data-catalog-reset], .catalog-credit a, .catalog-credit summary):focus-visible {
  outline-color: #b8d9ff;
}

.model-directory-description {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: .75rem;
}
.model-directory-photo {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  flex: none;
  overflow: hidden;
  border-radius: .58rem;
  background: #e3ebf6;
}
.model-directory-photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.model-directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .75rem;
  margin-top: .23rem;
}
.model-directory-actions a[data-directory-photos] { color: #113667; }
.model-directory-actions a[data-directory-inquiry] { color: #385471; }

@media (min-width: 800px) {
  #phone-gallery .catalog-heading { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); }
}
@media (max-width: 699px) {
  #phone-gallery .catalog-tools { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #phone-gallery .catalog-tools > :first-child { grid-column: span 2; }
  #phone-gallery .catalog-card-body { padding: .85rem .68rem; }
}
@media (max-width: 360px) {
  #phone-gallery .catalog-tools { grid-template-columns: minmax(0,1fr); }
  #phone-gallery .catalog-tools > :first-child { grid-column: 1; }
  #phone-gallery .variant-choice { grid-template-columns: 1fr; gap: .34rem; }
  .model-directory-photo { width: 55px; height: 55px; }
}
@media (forced-colors: active) {
  #phone-gallery [data-phone-action], #phone-gallery .catalog-arrow { border: 1px solid ButtonText; }
  #phone-gallery :is([data-phone-action], .catalog-arrow, [data-catalog-reset]) { color: ButtonText; }
}
