#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 {
  background: radial-gradient(ellipse at 50% 36%, #faf9f7 12%, #eeece8 69%, #e5e2dd);
}
#phone-gallery .catalog-media {
  position: absolute;
  inset: 10%;
  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: .35rem;
}
#phone-gallery .catalog-photo[data-photo-frame] .catalog-media {
  inset: 0 4%;
  filter: drop-shadow(0 7px 8px #24221f30);
}
#phone-gallery .catalog-photo[data-photo-frame] .catalog-media img {
  max-height: var(--frame-image-height, 92%);
  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%);
}
/* Size each cutout by the visible phone instead of the source canvas. */
#phone-gallery [data-photo-frame="iphone-17-pro-deep-blue"] .catalog-media img {
  --frame-image-height: 83.5%;
  clip-path: polygon(
    4.84% 8.60%, 6.45% 5.80%, 9.68% 3.80%, 15.32% 2.20%,
    21.37% 1.40%, 79.03% 1.60%, 86.69% 2.40%, 91.53% 4.00%,
    95.16% 6.60%, 97.18% 9.80%, 97.58% 90.20%, 96.37% 93.20%,
    93.15% 95.80%, 88.71% 97.20%, 82.26% 98.00%, 21.37% 98.40%,
    14.92% 97.80%, 9.68% 96.40%, 6.45% 94.00%, 4.84% 91.00%
  );
}
#phone-gallery [data-photo-frame="iphone-17-black"] .catalog-media img {
  --frame-image-height: 95.1%;
  translate: 2.4% 2.6%;
  clip-path: polygon(
    12.16% 11.80%, 13.51% 9.20%, 16.55% 7.20%, 20.61% 6.00%,
    26.01% 5.40%, 66.22% 5.20%, 71.28% 5.60%, 75.68% 6.80%,
    78.72% 8.80%, 80.07% 11.80%, 80.74% 83.40%, 80.07% 85.80%,
    78.04% 87.80%, 74.66% 89.40%, 70.61% 90.00%, 25.68% 90.40%,
    20.95% 90.00%, 16.89% 88.60%, 14.53% 86.80%, 13.51% 84.20%,
    11.82% 39.80%
  );
}
#phone-gallery [data-photo-frame="iphone-17-mist-blue"] .catalog-media img {
  --frame-image-height: 85.1%;
  clip-path: polygon(
    2.45% 9.00%, 4.49% 6.20%, 8.57% 4.00%, 13.88% 2.40%,
    20.82% 1.60%, 75.51% 1.40%, 82.04% 1.80%, 86.94% 2.80%,
    91.02% 4.40%, 93.88% 7.00%, 95.51% 10.20%, 95.92% 87.40%,
    94.69% 90.60%, 91.43% 93.20%, 86.94% 95.00%, 80.82% 96.00%,
    20.00% 96.60%, 14.69% 96.20%, 9.39% 95.00%, 5.31% 93.00%,
    3.27% 90.60%, 2.45% 86.80%
  );
}
#phone-gallery [data-photo-frame="iphone-17-white"] .catalog-media img {
  --frame-image-height: 85.3%;
  clip-path: polygon(
    5.24% 9.40%, 6.85% 6.40%, 10.89% 4.20%, 15.73% 2.80%,
    21.37% 2.00%, 77.02% 1.60%, 82.66% 2.00%, 88.71% 3.40%,
    93.15% 5.80%, 95.56% 8.80%, 96.37% 12.20%, 96.37% 88.20%,
    95.16% 91.40%, 91.94% 93.80%, 87.10% 95.40%, 81.05% 96.40%,
    21.77% 96.60%, 15.73% 96.00%, 10.89% 94.80%, 7.26% 92.80%,
    5.24% 90.20%
  );
}
#phone-gallery [data-photo-frame="iphone-17-sage"] .catalog-media img {
  --frame-image-height: 85.1%;
  clip-path: polygon(
    3.19% 10.00%, 5.18% 7.00%, 8.37% 4.80%, 13.94% 3.00%,
    20.72% 2.20%, 74.10% 1.80%, 80.08% 2.20%, 85.66% 3.40%,
    90.04% 5.60%, 92.43% 8.60%, 93.63% 11.80%, 94.02% 88.60%,
    92.43% 91.60%, 89.24% 93.80%, 84.46% 95.40%, 78.09% 96.40%,
    21.12% 97.00%, 14.74% 96.20%, 9.56% 94.80%, 5.98% 92.60%,
    4.78% 89.80%
  );
}
#phone-gallery [data-photo-frame="pixel-6"] .catalog-media img {
  --frame-image-height: 93.1%;
  clip-path: polygon(
    20.53% 10.20%, 21.07% 8.60%, 22.93% 7.40%, 25.33% 7.00%,
    71.73% 6.40%, 73.87% 6.80%, 75.47% 8.00%, 76.00% 9.80%,
    77.07% 89.80%, 76.53% 91.20%, 75.20% 92.40%, 73.33% 93.00%,
    26.67% 93.40%, 25.07% 93.00%, 23.73% 92.20%, 22.67% 90.80%
  );
}
#phone-gallery [data-photo-frame="iphone-17-pro-max-cosmic-orange"] .catalog-media img {
  --frame-image-height: 91.8%;
  clip-path: polygon(
    10.41% 11.80%, 11.90% 9.20%, 14.50% 7.00%, 18.22% 5.40%,
    23.05% 4.60%, 74.35% 4.40%, 79.55% 4.80%, 83.64% 6.00%,
    86.99% 8.00%, 88.85% 10.60%, 89.59% 14.20%, 88.48% 86.20%,
    86.99% 88.60%, 84.39% 90.40%, 80.67% 91.60%, 75.46% 92.20%,
    23.79% 92.60%, 19.33% 92.20%, 15.24% 91.00%, 12.64% 89.20%,
    11.15% 86.60%
  );
}
#phone-gallery [data-photo-frame="iphone-air-sky-blue"] .catalog-media img {
  --frame-image-height: 86%;
  clip-path: polygon(
    4.42% 11.60%, 6.02% 8.20%, 9.24% 5.80%, 14.46% 3.80%,
    20.88% 2.80%, 75.50% 2.40%, 82.73% 2.80%, 87.95% 4.00%,
    91.57% 6.00%, 93.98% 8.60%, 94.78% 11.60%, 95.18% 86.60%,
    93.98% 90.00%, 90.76% 93.00%, 85.94% 94.80%, 79.92% 95.80%,
    21.69% 96.60%, 16.47% 96.00%, 11.24% 94.80%, 7.63% 92.60%,
    6.02% 90.00%
  );
}
#phone-gallery [data-photo-frame="iphone-air-light-gold"] .catalog-media img {
  --frame-image-height: 98.1%;
  translate: -1.7% 4.1%;
  clip-path: polygon(
    16.73% 12.40%, 18.25% 9.40%, 21.67% 7.40%, 26.62% 6.00%,
    32.70% 5.20%, 73.38% 4.60%, 78.71% 5.20%, 82.51% 6.40%,
    85.17% 8.40%, 86.69% 11.00%, 86.69% 79.00%, 85.55% 82.20%,
    83.27% 84.60%, 79.85% 86.20%, 75.67% 87.20%, 28.90% 85.60%,
    24.71% 85.20%, 20.91% 84.00%, 18.25% 82.20%, 17.11% 79.80%
  );
}
#phone-gallery [data-photo-frame="galaxy-z-fold3-phantom-green"] .catalog-media img {
  --frame-image-height: 92.5%;
  translate: -3.3% 0;
  clip-path: polygon(
    16.18% 10.60%, 17.43% 9.00%, 19.50% 7.80%, 23.24% 7.20%,
    87.14% 6.60%, 89.21% 7.00%, 90.46% 7.80%, 91.29% 91.80%,
    90.46% 93.40%, 88.80% 94.20%, 23.65% 93.80%, 20.33% 93.40%,
    17.84% 92.20%, 16.18% 90.80%, 15.35% 61.40%, 15.35% 36.40%
  );
}
#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; }
}
