/* onelight camera: only what the camera section adds to the plugin site's site.css */

/* header: the wordmark with a "camera" tag, and the switch back to the plugin */
.cam-logo { display: flex; align-items: center; gap: 9px; line-height: 1; text-decoration: none; }
.cam-tag { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 4px 6px 3px; border: 1px solid rgba(242,240,235,.5); color: var(--paper); }
.header-actions { gap: 20px; }
.header-actions .cam-switch { opacity: .7; }
.header-actions .cam-switch:hover { opacity: 1; }
.mobile-menu > a.cam-mm-switch { display: flex; justify-content: space-between; color: var(--stone); font-size: 20px; }

/* home hero: a live 3D scene over its own still */
.cam-hero .hero-3d { opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.cam-hero .hero-3d.ready { opacity: 1; }

/* placeholder footage is labelled on the frame */
.ph-tag { position: absolute; z-index: 4; left: 12px; top: 12px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: rgba(13,13,12,.72); color: #f2f0eb; padding: 7px 9px; border: 1px dashed rgba(242,240,235,.55); pointer-events: none; }
.cam-panes .frame img { position: absolute; inset: 0; display: block; }

/* six films: three across, with when to use each */
.frames.six { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 16px; }
@media (max-width: 860px) { .frames.six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; } }
.fcard .fw { margin: -6px 0 0; font-size: 14px; line-height: 1.45; color: var(--text-3); }
@media (max-width: 520px) { .fcard .fc { flex-direction: column; gap: 2px; } .fcard .fc b { font-size: 17px; } }

/* supported iPhones */
.cam-lineup { background: #0d0d0c; overflow: hidden; }
.cam-lineup img { display: block; width: 100%; height: auto; }
.phones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 28px; }
.phones > div { padding: 20px 20px 24px 0; border-bottom: 1px solid var(--line); }
.phones > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.phones b { display: block; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.phones span { display: block; color: var(--text-2); font-size: 15px; margin-top: 2px; }
.phones small { display: block; font: 400 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-top: 14px; }
@media (max-width: 960px) {
  .phones { grid-template-columns: 1fr 1fr; }
  .phones > div + div { padding-left: 0; border-left: 0; }
  .phones > div:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) { .phones { grid-template-columns: 1fr; } .phones > div:nth-child(2n) { padding-left: 0; border-left: 0; } }

/* the Duo band on the home page: a real photo from set */
.cam-set img { display: block; width: 100%; height: auto; max-height: 680px; object-fit: cover; }
.cam-set figcaption { margin-top: 10px; }

/* release band */
.release-title .cam-rt { display: block; font-size: .4em; letter-spacing: -.03em; margin-top: .14em; color: #c9c5be; }

.cam-tm { font-size: 12px; line-height: 1.5; color: var(--text-3); margin: 16px 0 0; }

/* the Duo page: live fold */
.cam-duo-stage { background: #0d0d0c; }
.cam-duo-stage canvas, .cam-duo-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-duo-stage canvas { opacity: 0; transition: opacity .6s; touch-action: pan-y; }
.cam-duo-stage canvas.ready { opacity: 1; cursor: grab; }
.cam-state { position: absolute; z-index: 2; left: 14px; top: 14px; font: 400 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #f2f0eb; background: rgba(13,13,12,.6); padding: 7px 9px; }
.cam-duo-ctl { display: flex; align-items: center; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.cam-fold { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.cam-fold input { flex: 1; accent-color: #f2f0eb; }
.cam-fold output { min-width: 4ch; color: var(--text); }
.cam-chips { display: flex; flex-wrap: wrap; gap: 0; margin-top: 14px; border: 1px solid var(--line-2); width: fit-content; max-width: 100%; }
.cam-chip { min-height: 40px; padding: 0 14px; border: 0; background: none; color: var(--text-2); font: 500 12px var(--font); letter-spacing: .03em; text-transform: uppercase; cursor: pointer; }
.cam-chip + .cam-chip { border-left: 1px solid var(--line-2); }
.cam-chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.cam-chip:disabled { opacity: .35; cursor: default; }
@media (max-width: 760px) { .cam-chips { border: 0; gap: 6px; } .cam-chip, .cam-chip + .cam-chip { border: 1px solid var(--line-2); } }

/* preview note */
.cam-preview-note { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: min(400px, calc(100vw - 32px)); background: #f2f0eb; color: #0d0d0c; font-size: 13px; line-height: 1.45; padding: 10px 40px 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.cam-preview-note b { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.cam-preview-note button { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; background: none; font-size: 18px; cursor: pointer; color: #0d0d0c; }
.cam-preview-note[hidden] { display: none; }

/* hero: the longer title needs the button clear of its first line */
@media (max-width: 1110px) { .cam-hero .home-hero__cta { display: none; } }
@media (max-width: 1240px) { .cam-hero .home-hero__credit { display: none; } }
@media (max-width: 760px) { .cam-hero .home-hero__title { font-size: clamp(40px, 13.2vw, 100px); } }
@media (max-width: 520px) {
  .header-in { gap: 12px; }
  .cam-logo img { height: 22px; }
  .cam-tag { font-size: 9px; padding: 3px 5px 2px; letter-spacing: .1em; }
  .cam-logo { gap: 7px; }
}
.release > img { object-position: 78% 30%; }
@media (max-width: 960px) {
  .phones > div:last-child { grid-column: 1 / -1; }
  .release > img { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 10; object-position: 72% 35%; }
  .release-in { padding-top: 8px; }
}
@media (max-width: 520px) { .phones { grid-template-columns: 1fr 1fr; } .phones > div:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); } .phones b { font-size: 17px; } }
@media (max-width: 760px) { .cam-duo-stage { aspect-ratio: 1 / 1; } }
@media (max-width: 760px) { .release > img { aspect-ratio: 1 / 1; object-position: 84% 22%; } }

/* hold a picture to see the same clip without the film: two clips in step, the top one fades while held */
.holdv { position: relative; overflow: hidden; background: #000; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; }
.holdv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.holdv .va { transition: opacity .12s, transform .4s ease; }
.holdv.held .va { opacity: 0; }
.hold-tag, .hold-hint { position: absolute; z-index: 2; font: 400 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #f2f0eb; background: rgba(13,13,12,.6); padding: 6px 8px; pointer-events: none; }
.hold-tag { left: 10px; top: 10px; }
.hold-hint { left: 50%; bottom: 12px; transform: translateX(-50%); border: 1px solid rgba(242,240,235,.6); transition: opacity .2s; }
.holdv.held .hold-hint { opacity: 0; }
.holdv:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.fcard-t { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }

/* six films page: the comparison at 16:9 */
.cam-reel169 { aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .cam-reel169 { aspect-ratio: 4 / 3; } }

/* Instagram band: an upright iPhone with a 9:16 take */
.cam-ph { width: min(290px, 68vw); margin: 0 auto; padding: 9px; border-radius: 46px; background: #050505; border: 1px solid #3a3835; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.cam-ph-scr { border-radius: 37px; overflow: hidden; background: #000; }
.cam-ph-scr .holdv { aspect-ratio: 9 / 16; }
.cam-ph-row { display: flex; justify-content: center; gap: 10px; padding: 16px 0 20px; }
.cam-ph-row span { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #f2f0eb; border: 1px solid rgba(242,240,235,.5); border-radius: 999px; padding: 7px 13px 6px; }
@media (max-width: 860px) { .cam-insta .cam-ph { margin-top: 36px; } }

/* final clips on the feature pages */
.cam-hold169 { aspect-ratio: 16 / 9; }
.cam-reel45 { aspect-ratio: 4 / 5; max-width: 560px; margin: 0 auto; }
@media (max-width: 760px) { .cam-reel45 { aspect-ratio: 4 / 5; } }
.cam-center { display: flex; justify-content: center; }
.cam-pn { margin: 14px 0 0; padding: 10px 12px; border: 1px dashed var(--line-2); font-size: 14px; line-height: 1.45; color: var(--text-2); max-width: 760px; }
.cam-pn b { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-right: 8px; color: var(--text); }
.cam-uses .card .tv { margin-bottom: 16px; }
@media (max-width: 520px) { .cam-ol { display: none; } }

/* an app screenshot under the heading of a text section */
.cam-shot { display: block; width: min(250px, 62%); height: auto; margin-top: 28px; }
