.exposure-tool-wrapper {
    --bg-color: #070709;
    --text-main: #f0f0f0;
    --text-accent: #a0a0a0;
    --slider-position: 50%;
    --left-accent: 245, 245, 245;
    --right-accent: 255, 190, 90;
    
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    padding: 2rem 1rem;
    border-radius: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  	position: relative;
}

.exposure-tool-wrapper * {
    box-sizing: border-box;
}

.exposure-tool-wrapper script {
    display: none !important;
}

.exposure-tool-wrapper .header-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: min(100%, 980px);
    margin: 0 auto 1rem;
}

.exposure-tool-wrapper .courtesy-text {
    font-family: 'PT Mono', monospace;
    font-size: 0.7rem; 
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    text-align: left;
}

.exposure-tool-wrapper .toggle-data-btn,
.exposure-tool-wrapper .equipment-toggle-btn {
    background: none;
    border: none;
    color: var(--text-accent);
    font-family: 'PT Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.exposure-tool-wrapper .toggle-data-btn:hover,
.exposure-tool-wrapper .equipment-toggle-btn:hover {
    color: var(--text-main);
}

.exposure-tool-wrapper .image-comparison {
    position: relative;
    width: min(100%, 980px);
    aspect-ratio: var(--viewer-aspect-ratio, 16 / 7);
    margin: 0 auto 0; 
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    user-select: none;
    touch-action: none;
}

.exposure-tool-wrapper .image-comparison img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.exposure-tool-wrapper .image-comparison__right {
    z-index: 1;
}

.exposure-tool-wrapper .image-comparison__left {
    z-index: 2;
    clip-path: inset(0 calc(100% - var(--slider-position)) 0 0);
    will-change: clip-path; /* Hardware acceleration */
}

.exposure-tool-wrapper .image-comparison__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--slider-position);
    width: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    z-index: 3;
    pointer-events: none;
    will-change: left; /* Hardware acceleration */
}

.exposure-tool-wrapper .image-comparison__handle {
    position: absolute;
    top: 50%;
    left: var(--slider-position);
    z-index: 4;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    background: rgba(7, 7, 9, 0.35);
    backdrop-filter: blur(8px);
    pointer-events: none;
    will-change: left; /* Hardware acceleration */
}

.exposure-tool-wrapper .image-comparison__handle::before,
.exposure-tool-wrapper .image-comparison__handle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    transform: translateY(-50%);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}

.exposure-tool-wrapper .image-comparison__handle::before {
    left: 13px;
    border-right: 9px solid #fff;
}

.exposure-tool-wrapper .image-comparison__handle::after {
    right: 13px;
    border-left: 9px solid #fff;
}

.exposure-tool-wrapper .image-comparison__range {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
}

.exposure-tool-wrapper .image-comparison__range:focus-visible + .image-comparison__line + .image-comparison__handle {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.exposure-tool-wrapper .comparison-toggle-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 8;
    padding: 0.48rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(7,7,9,0.24)), rgba(7, 7, 9, 0.42);
    color: rgba(255, 255, 255, 0.86);
    font-family: 'PT Mono', monospace;
    font-size: 0.62rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.28);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.exposure-tool-wrapper .comparison-toggle-btn:hover {
    border-color: rgba(255, 255, 255, 0.62);
    color: rgba(255, 255, 255, 0.96);
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(7,7,9,0.28)), rgba(7, 7, 9, 0.5);
}

.exposure-tool-wrapper .comparison-toggle-btn[aria-pressed="false"] {
    border-color: rgba(var(--left-accent), 0.7);
    color: rgba(var(--left-accent), 0.95);
    box-shadow: 0 0 0 1px rgba(var(--left-accent), 0.22), 0 0 22px rgba(var(--left-accent), 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* FULLSCREEN TOGGLE BUTTON */
.exposure-tool-wrapper .fullscreen-toggle-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(7,7,9,0.24)), rgba(7, 7, 9, 0.42);
    color: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.28);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.exposure-tool-wrapper .fullscreen-toggle-btn:hover {
    border-color: rgba(255, 255, 255, 0.62);
    color: #fff;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(7,7,9,0.28)), rgba(7, 7, 9, 0.5);
}

.exposure-tool-wrapper .fullscreen-toggle-btn svg {
    width: 14px;
    height: 14px;
}

.exposure-tool-wrapper .fullscreen-toggle-btn[aria-pressed="true"] .icon-maximize {
    display: none;
}

.exposure-tool-wrapper .fullscreen-toggle-btn[aria-pressed="true"] .icon-minimize {
    display: block !important;
}

.exposure-tool-wrapper .image-comparison.comparison-disabled .image-comparison__left {
    clip-path: inset(0 0 0 0);
}

.exposure-tool-wrapper .image-comparison.comparison-disabled .image-comparison__right,
.exposure-tool-wrapper .image-comparison.comparison-disabled .image-comparison__line,
.exposure-tool-wrapper .image-comparison.comparison-disabled .image-comparison__handle,
.exposure-tool-wrapper .image-comparison.comparison-disabled .image-comparison__range,
.exposure-tool-wrapper .image-comparison.comparison-disabled .side-slot {
    opacity: 0;
    pointer-events: none;
}

.exposure-tool-wrapper .side-slot {
    --slot-accent: var(--left-accent);
    position: absolute;
    bottom: 16px;
    z-index: 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 75px;
    min-height: 23px;
    padding: 0.28rem 0.42rem;
    border: 1px solid rgba(var(--slot-accent), 0.55);
    background: linear-gradient(180deg, rgba(var(--slot-accent), 0.13), rgba(7, 7, 9, 0.28)), rgba(7, 7, 9, 0.32);
    color: var(--text-main);
    font-family: 'PT Mono', monospace;
    text-align: left;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.28);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.exposure-tool-wrapper .side-slot:hover {
    border-color: rgba(var(--slot-accent), 0.85);
    background: linear-gradient(180deg, rgba(var(--slot-accent), 0.18), rgba(7, 7, 9, 0.32)), rgba(7, 7, 9, 0.38);
}

.exposure-tool-wrapper .side-slot.is-active {
    border-color: rgba(var(--slot-accent), 0.95);
    box-shadow: 0 0 0 1px rgba(var(--slot-accent), 0.45), 0 0 22px rgba(var(--slot-accent), 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.exposure-tool-wrapper .side-slot--left {
    --slot-accent: var(--left-accent);
    left: 16px;
}

.exposure-tool-wrapper .side-slot--right {
    --slot-accent: var(--right-accent);
    right: 16px;
}

.exposure-tool-wrapper .side-slot__eyebrow {
    display: block;
    margin-bottom: 0.12rem;
    font-size: 0.42rem;
    line-height: 1;
    color: rgba(var(--slot-accent), 0.78);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.exposure-tool-wrapper .side-slot__label {
    display: block;
    max-width: 105px;
    overflow: hidden;
    font-size: 0.55rem;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.035em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.exposure-tool-wrapper .exposure-bar-block {
    display: grid;
    grid-template-rows: 0fr;
    width: min(100%, 980px);
    margin: 0 auto 1.5rem;
    transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.exposure-tool-wrapper .exposure-bar-block.active {
    grid-template-rows: 1fr;
    margin-top: 0.35rem;
}

.exposure-tool-wrapper .exposure-bar-wrapper {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.exposure-tool-wrapper .exposure-bar-block.active .exposure-bar-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease-out 0.12s, transform 0.45s ease-out 0.08s;
}

.exposure-tool-wrapper .exposure-bar-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 42px;
    object-fit: cover;
}

.exposure-tool-wrapper .image-data-block {
    display: grid;
    grid-template-rows: 0fr;
    width: min(100%, 980px);
    margin: 0 auto;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin-bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.exposure-tool-wrapper .image-data-block.active {
    grid-template-rows: 1fr;
    margin-bottom: 2rem;
}

.exposure-tool-wrapper .image-data-wrapper {
    min-height: 0; /* Ensures the wrapper physically collapses to 0 pixels when closed */
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.exposure-tool-wrapper .image-data-block.active .image-data-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out 0.2s, transform 0.5s ease-out 0.1s; 
}

.exposure-tool-wrapper .image-data-content {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.65fr);
    grid-template-areas: "camera lighting" "equipment equipment" "note note";
    gap: 0;
    padding: 0.15rem 1rem 0;
    font-family: 'PT Mono', monospace;
    text-align: left;
}

.exposure-tool-wrapper .image-data-panel--camera {
    grid-area: camera;
    padding: 0.15rem 2rem 0.25rem 0;
}

.exposure-tool-wrapper .image-data-panel--lighting {
    grid-area: lighting;
    padding: 0.15rem 0 0.25rem 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.exposure-tool-wrapper .image-data-title {
    margin: 0 0 0.85rem;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1;
    color: rgba(240, 240, 240, 0.48);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.exposure-tool-wrapper .exposure-info-icon {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    margin-left: 4px;
    color: rgba(240, 240, 240, 0.35);
    cursor: help;
    transition: color 0.2s ease;
}

.exposure-tool-wrapper .exposure-info-icon:hover {
    color: rgba(255, 255, 255, 0.9);
}

.exposure-tool-wrapper .exposure-info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin-top: 8px;
    width: max-content;
    max-width: 220px;
    padding: 0.65rem 0.85rem;
    background: #111114;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, margin-top 0.2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
    z-index: 100;
    pointer-events: none;
}

.exposure-tool-wrapper .image-data-title .exposure-info-icon::after {
    left: 0;
    right: auto;
    transform: none;
}

.exposure-tool-wrapper .exposure-info-icon:hover::after {
    opacity: 1;
    visibility: visible;
    margin-top: 12px;
}

.exposure-tool-wrapper .lighting-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0 0;
}

.exposure-tool-wrapper .lighting-diagram-toggle,
.exposure-tool-wrapper .lighting-theory-link {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--text-accent);
    background: transparent;
    color: var(--text-main);
    font-family: 'PT Mono', monospace;
    font-size: 0.72rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.exposure-tool-wrapper .lighting-diagram-toggle:hover,
.exposure-tool-wrapper .lighting-theory-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.exposure-tool-wrapper .lighting-diagram-toggle[aria-expanded="true"] {
    border-color: rgba(var(--right-accent), 0.95);
    background: rgba(var(--right-accent), 0.09);
    box-shadow: inset -2px 0 0 rgba(var(--right-accent), 0.95), 0 0 18px rgba(var(--right-accent), 0.11);
}

.exposure-tool-wrapper .lighting-diagram-block {
    display: grid;
    grid-template-rows: 0fr;
    margin: 0;
    transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.exposure-tool-wrapper .lighting-diagram-block.active {
    grid-template-rows: 1fr;
    margin-top: 0.85rem;
}

.exposure-tool-wrapper .lighting-diagram-wrapper {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.exposure-tool-wrapper .lighting-diagram-block.active .lighting-diagram-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.42s ease-out 0.08s, transform 0.42s ease-out 0.06s;
}

.exposure-tool-wrapper .lighting-diagram-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

.exposure-tool-wrapper .lighting-diagram-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exposure-tool-wrapper .camera-data-grid {
    display: grid;
    gap: 0;
}

.exposure-tool-wrapper .camera-data-row {
    display: grid;
    grid-template-columns: minmax(104px, 0.85fr) minmax(0, 1fr);
    column-gap: 1.15rem;
    align-items: baseline;
    padding: 0.46rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.exposure-tool-wrapper .camera-data-row:first-child {
    padding-top: 0;
}

.exposure-tool-wrapper .camera-data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exposure-tool-wrapper .image-data-label {
    font-size: 0.68rem;
    line-height: 1.35;
    color: rgba(240, 240, 240, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.exposure-tool-wrapper .image-data-value {
    font-size: 0.82rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.86);
    white-space: nowrap;
}

.exposure-tool-wrapper .lighting-data-grid {
    display: grid;
    grid-template-columns:
        minmax(110px, 0.9fr)
        minmax(140px, 1.15fr)
        minmax(180px, 1.5fr)
        minmax(130px, 1fr);
    gap: 0;
}

.exposure-tool-wrapper .lighting-data-column {
    min-width: 0;
    padding: 0 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.exposure-tool-wrapper .lighting-data-column:first-child {
    padding-left: 0;
    border-left: none;
}

.exposure-tool-wrapper .lighting-data-column:last-child {
    padding-right: 0;
}

.exposure-tool-wrapper .lighting-data-subtitle {
    margin: 0 0 0.7rem;
    min-height: 2.5em;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.86);
    letter-spacing: 0.04em;
    white-space: normal;
    overflow-wrap: normal;
}

.exposure-tool-wrapper .lighting-data-list {
    display: grid;
    gap: 0;
}

.exposure-tool-wrapper .lighting-data-item {
    display: block;
    min-height: 1.85rem;
    padding: 0.42rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.exposure-tool-wrapper .lighting-data-item:first-child {
    padding-top: 0;
}

.exposure-tool-wrapper .lighting-data-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exposure-tool-wrapper .image-equipment-disclosure {
    grid-area: equipment;
    margin-top: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-family: 'PT Mono', monospace;
    text-align: left;
}

.exposure-tool-wrapper .equipment-toggle-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 2.8rem;
    padding: 0.65rem 0;
}

.exposure-tool-wrapper .equipment-toggle-btn {
    flex: 0 0 auto;
}

.exposure-tool-wrapper .equipment-block {
    display: grid;
    grid-template-rows: 0fr;
    margin: 0;
    transition:
        grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        margin-bottom 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.exposure-tool-wrapper .equipment-block.active {
    grid-template-rows: 1fr;
    margin-bottom: 0.85rem;
}

.exposure-tool-wrapper .equipment-block-wrapper {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity 0.25s ease-out,
        transform 0.25s ease-out;
}

.exposure-tool-wrapper .equipment-block.active .equipment-block-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.42s ease-out 0.08s,
        transform 0.42s ease-out 0.06s;
}

.exposure-tool-wrapper .image-equipment-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    padding-top: 0.25rem;
}

.exposure-tool-wrapper .equipment-links-block {
    min-width: 0;
}

.exposure-tool-wrapper .equipment-links-title {
    margin: 0 0 0.7rem;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1;
    color: rgba(240, 240, 240, 0.48);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.exposure-tool-wrapper .equipment-links-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.exposure-tool-wrapper .equipment-links-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(90px, 0.45fr);
    column-gap: 1rem;
    align-items: baseline;
    min-height: 1.85rem;
    padding: 0.42rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.exposure-tool-wrapper .equipment-links-item:first-child {
    padding-top: 0;
}

.exposure-tool-wrapper .equipment-links-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.exposure-tool-wrapper .equipment-links-name,
.exposure-tool-wrapper .equipment-links-name:visited {
    font-size: 0.82rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.32);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.exposure-tool-wrapper .equipment-links-name:hover {
    color: #fff;
    text-decoration-color: currentColor;
}

.exposure-tool-wrapper .equipment-links-name--plain {
    text-decoration: none;
}

.exposure-tool-wrapper .equipment-links-note {
    font-size: 0.68rem;
    line-height: 1.35;
    color: rgba(240, 240, 240, 0.45);
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.exposure-tool-wrapper .equipment-affiliate-disclosure {
    margin: 0.9rem 0 0;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.62rem;
    line-height: 1.45;
    color: rgba(240, 240, 240, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.exposure-tool-wrapper .image-equipment-disclosure + .image-data-note {
    margin-top: 0;
}

.exposure-tool-wrapper .image-data-note {
    grid-area: note;
    margin: 0.95rem 0 0;
    padding: 0.65rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(240, 240, 240, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.exposure-tool-wrapper .image-selectors {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.exposure-tool-wrapper .selector-btn {
    background: transparent;
    border: 1px solid var(--text-accent);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    font-family: 'PT Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.exposure-tool-wrapper .selector-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.exposure-tool-wrapper .selector-btn.active-left {
    border-color: rgba(var(--left-accent), 0.95);
    background: rgba(var(--left-accent), 0.08);
    box-shadow: inset 2px 0 0 rgba(var(--left-accent), 0.95), 0 0 18px rgba(var(--left-accent), 0.08);
}

.exposure-tool-wrapper .selector-btn.active-right {
    border-color: rgba(var(--right-accent), 0.95);
    background: rgba(var(--right-accent), 0.09);
    box-shadow: inset -2px 0 0 rgba(var(--right-accent), 0.95), 0 0 18px rgba(var(--right-accent), 0.11);
}

.exposure-tool-wrapper .selector-btn.active-left.active-right {
    border-color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(90deg, rgba(var(--left-accent), 0.1), rgba(var(--right-accent), 0.12));
    box-shadow: inset 2px 0 0 rgba(var(--left-accent), 0.95), inset -2px 0 0 rgba(var(--right-accent), 0.95), 0 0 20px rgba(var(--right-accent), 0.1);
}

.exposure-tool-wrapper .selector-instructions {
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-accent);
    margin-top: 0;
    margin-bottom: 1rem;
    font-style: italic;
    text-align: center;
}

@media (max-width: 1050px) {
    .exposure-tool-wrapper .lighting-data-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.25rem;
    }

    .exposure-tool-wrapper .lighting-data-column:nth-child(odd) {
        padding-left: 0;
        border-left: none;
    }

    .exposure-tool-wrapper .lighting-data-column:nth-child(even) {
        padding-right: 0;
    }
}

.exposure-tool-wrapper [hidden] {
    display: none !important;
}

.exposure-tool-wrapper .exposure-set-header {
    width: min(100%, 980px);
    margin: 0 auto 1.15rem;
    text-align: center;
}

.exposure-tool-wrapper .exposure-set-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.35rem, 3vw, 2.2rem);
    font-weight: 500;
    line-height: 1.08;
    color: var(--text-main);
    letter-spacing: -0.025em;
}

.exposure-tool-wrapper .exposure-set-description {
    max-width: 760px;
    margin: 0.55rem auto 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.55;
    color: var(--text-accent);
}

.exposure-tool-wrapper .exposure-set-counter {
    margin-top: 0.65rem;
    font-family: 'PT Mono', monospace;
    font-size: 0.62rem;
    line-height: 1;
    color: rgba(240, 240, 240, 0.48);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.exposure-tool-wrapper .exposure-comparison-stage {
    width: min(100%, 980px);
    margin: 0 auto;
}

.exposure-tool-wrapper .exposure-comparison-stage.has-set-navigation {
    display: grid;
    grid-template-columns: 32px minmax(0, 980px) 32px;
    column-gap: 8px;
    align-items: center;
    width: min(100%, 1060px);
}

.exposure-tool-wrapper .exposure-comparison-stage .image-comparison {
    width: 100%;
    margin: 0;
}

.exposure-tool-wrapper .set-navigation-btn {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 72px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-family: 'PT Mono', monospace;
    cursor: pointer;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    transition:
        color 0.2s ease,
        opacity 0.2s ease,
        text-shadow 0.2s ease;
}

.exposure-tool-wrapper .set-navigation-btn span {
    display: block;
    font-size: 3.2rem;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-0.05em);
    transition: transform 0.2s ease;
}

.exposure-tool-wrapper .set-navigation-btn:hover:not(:disabled),
.exposure-tool-wrapper .set-navigation-btn:focus-visible {
    color: #fff;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

.exposure-tool-wrapper .set-navigation-btn:hover:not(:disabled) span,
.exposure-tool-wrapper .set-navigation-btn:focus-visible span {
    transform: translateY(-0.05em) scale(1.08);
}

.exposure-tool-wrapper .set-navigation-btn:disabled {
    opacity: 0.2;
    cursor: default;
    text-shadow: none;
}

.exposure-tool-wrapper .image-comparison img {
    transition: opacity 0.2s ease;
}

.exposure-tool-wrapper.is-set-changing .image-comparison img {
    opacity: 0.45;
}

.exposure-tool-wrapper .lighting-diagram-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    color: rgba(240, 240, 240, 0.5);
    font-family: 'PT Mono', monospace;
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: center;
}

/* WP wpautop Fix */
.exposure-tool-wrapper .exposure-comparison-stage.has-set-navigation > p {
    display: contents !important;
}

.exposure-tool-wrapper .exposure-comparison-stage.has-set-navigation > br {
    display: none !important;
}

.exposure-tool-wrapper .exposure-comparison-stage.has-set-navigation {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) 32px !important; 
    width: 100% !important;
    align-items: center !important;
}

.exposure-tool-wrapper .image-comparison {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    grid-column: 2 !important;
}

.exposure-tool-wrapper .set-navigation-btn--previous {
    grid-column: 1 !important;
}

.exposure-tool-wrapper .set-navigation-btn--next {
    grid-column: 3 !important;
}

.exposure-tool-wrapper {
    width: 100% !important;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.exposure-tool-wrapper .exposure-comparison-stage.has-set-navigation {
    width: 100% !important;
    max-width: 100% !important; 
}

.exposure-tool-wrapper .set-navigation-btn--previous,
.exposure-tool-wrapper .image-comparison,
.exposure-tool-wrapper .set-navigation-btn--next {
    grid-row: 1 !important;
    align-self: center !important;
}

/* -----------------------------------------------------------
   FULLSCREEN MODE OVERLAYS
----------------------------------------------------------- */

.exposure-tool-wrapper.is-fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    z-index: 999999;
    margin: 0 !important;
    padding: 2rem 5vw !important;
    overflow-y: auto;
    border-radius: 0;
    background-color: var(--bg-color);
}

.exposure-tool-wrapper.is-fullscreen .exposure-comparison-stage,
.exposure-tool-wrapper.is-fullscreen .header-info-row,
.exposure-tool-wrapper.is-fullscreen .exposure-set-header,
.exposure-tool-wrapper.is-fullscreen .image-data-block,
.exposure-tool-wrapper.is-fullscreen .exposure-bar-block {
    width: 100%;
    max-width: 1400px;
}

.exposure-tool-wrapper.is-fullscreen .exposure-comparison-stage.has-set-navigation {
    max-width: 1480px !important; /* Extra width for arrows */
}

.exposure-tool-wrapper.is-fullscreen .image-comparison {
    width: auto !important;
    height: 75vh !important; /* Drives the size of the container */
    max-width: 100% !important; /* Forces it to shrink proportionally if it hits the screen edge */
    max-height: 75vh !important;
    aspect-ratio: var(--viewer-aspect-ratio, 16 / 7) !important;
    margin: 0 auto !important;
}

.exposure-tool-wrapper.is-fullscreen .exposure-bar-image {
    max-height: none !important;
    object-fit: contain !important;
}

/* 2. Tighten the margins to bring buttons closer to the image */
.exposure-tool-wrapper.is-fullscreen .exposure-bar-block {
    margin-bottom: 0.5rem !important;
}

.exposure-tool-wrapper.is-fullscreen .image-selectors {
    margin-top: 0.5rem !important;
}

/* -----------------------------------------------------------
   MOBILE REDESIGN OVERRIDES 
----------------------------------------------------------- */

@media (max-width: 768px) {
    .exposure-tool-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-radius: 0 !important;
    }

    .exposure-tool-wrapper > * {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .exposure-tool-wrapper .image-comparison {
        border-radius: 0 !important;
    }

    .exposure-tool-wrapper .set-navigation-btn--previous,
    .exposure-tool-wrapper .image-comparison,
    .exposure-tool-wrapper .set-navigation-btn--next {
        grid-row: auto !important;
        align-self: auto !important;
    }

    .exposure-tool-wrapper .exposure-comparison-stage,
    .exposure-tool-wrapper .exposure-comparison-stage.has-set-navigation {
        display: contents !important;
    }

    .exposure-tool-wrapper .header-info-row,
    .exposure-tool-wrapper .exposure-set-header,
    .exposure-tool-wrapper .image-data-block,
    .exposure-tool-wrapper .image-selectors,
    .exposure-tool-wrapper .selector-instructions,
    .exposure-tool-wrapper .exposure-bar-block {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box !important;
    }

    .exposure-tool-wrapper .exposure-set-header {
        order: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }
    
    .exposure-tool-wrapper .exposure-set-title {
        order: 1 !important;
        font-size: clamp(1.25rem, 7vw, 1.8rem) !important;
    }
    
    .exposure-tool-wrapper .exposure-set-counter {
        order: 2 !important;
        margin-top: 0.4rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .exposure-tool-wrapper .exposure-set-description {
        order: 3 !important;
        margin-top: 0 !important;
        font-size: 0.84rem !important;
    }

    .exposure-tool-wrapper .header-info-row {
        order: 2 !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.6rem !important;
        margin-bottom: 1rem !important;
    }

    .exposure-tool-wrapper .courtesy-text {
        font-size: 0.6rem !important;
        text-align: center !important; 
    }

    .exposure-tool-wrapper .toggle-data-btn,
    .exposure-tool-wrapper .equipment-toggle-btn {
        font-size: 0.65rem !important;
    }

    .exposure-tool-wrapper .image-comparison {
        order: 3 !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .exposure-tool-wrapper .exposure-bar-block {
        order: 4 !important;
    }

    .exposure-tool-wrapper .set-navigation-btn--previous {
        order: 5 !important;
        grid-column: 1 !important;
        justify-self: end !important;
        margin-right: 1.5rem !important;
        margin-top: 1rem !important;
        width: 64px !important;
    }
    
    .exposure-tool-wrapper .set-navigation-btn--next {
        order: 5 !important;
        grid-column: 2 !important;
        justify-self: start !important;
        margin-left: 1.5rem !important;
        margin-top: 1rem !important;
        width: 64px !important;
    }

    .exposure-tool-wrapper .set-navigation-btn {
        height: 48px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
        margin-bottom: 1rem !important;
    }
    
    .exposure-tool-wrapper .set-navigation-btn span {
        font-size: 2.2rem !important;
    }

    .exposure-tool-wrapper .image-data-block { order: 6 !important; margin-top: 1.5rem !important; }
    .exposure-tool-wrapper .image-selectors { order: 7 !important; margin-top: 0.5rem !important; }
    .exposure-tool-wrapper .selector-instructions { order: 8 !important; }

    .exposure-tool-wrapper .image-selectors {
        display: flex !important; 
        gap: 0.5rem !important;
        justify-content: center !important;
    }
    
    .exposure-tool-wrapper .selector-btn {
        flex: 1 1 calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.25rem) !important;
        padding: 0.6rem 0.4rem !important;
        font-size: 0.65rem !important;
        text-align: center !important;
    }

    .exposure-tool-wrapper .image-comparison__handle {
        width: 46px;
        height: 46px;
    }

    .exposure-tool-wrapper .comparison-toggle-btn {
        top: 12px;
        right: 12px;
        padding: 0.42rem 0.56rem;
        font-size: 0.54rem;
    }

    /* Hide Fullscreen Button on Mobile */
    .exposure-tool-wrapper .fullscreen-toggle-btn {
        display: none !important;
    }

    .exposure-tool-wrapper .side-slot {
        bottom: 12px;
        min-width: 64px;
        min-height: 22px;
        padding: 0.24rem 0.34rem;
    }

    .exposure-tool-wrapper .side-slot--left {
        left: 12px;
    }

    .exposure-tool-wrapper .side-slot--right {
        right: 12px;
    }

    .exposure-tool-wrapper .side-slot__eyebrow {
        font-size: 0.38rem;
    }

    .exposure-tool-wrapper .side-slot__label {
        max-width: 78px;
        font-size: 0.5rem;
    }

    .exposure-tool-wrapper .exposure-bar-image {
        max-height: 34px;
    }

    .exposure-tool-wrapper .image-data-content {
        grid-template-columns: minmax(0, 1fr) !important; 
        grid-template-areas: "camera" "lighting" "equipment" "note";
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .exposure-tool-wrapper .image-data-panel--camera {
        padding: 0;
        min-width: 0 !important; 
    }

    .exposure-tool-wrapper .image-data-panel--lighting {
        padding: 1rem 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        min-width: 0 !important; 
    }

    .exposure-tool-wrapper .camera-data-row {
        grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1fr);
        column-gap: 1rem;
    }

    .exposure-tool-wrapper .exposure-info-icon::after {
        left: auto !important;
        right: -10px !important; 
        transform: none !important;
        text-align: left !important;
    }
    
    .exposure-tool-wrapper .image-data-title .exposure-info-icon::after {
        left: 0 !important; 
        right: auto !important;
    }

    .exposure-tool-wrapper .lighting-data-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-bottom: 4.5rem !important; 
        margin-bottom: -3.5rem !important; 
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    }
    
    .exposure-tool-wrapper .lighting-data-grid::-webkit-scrollbar {
        height: 4px;
    }
    
    .exposure-tool-wrapper .lighting-data-grid::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .exposure-tool-wrapper .lighting-data-grid::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.15);
        border-radius: 10px;
    }

    .exposure-tool-wrapper .lighting-data-column,
    .exposure-tool-wrapper .lighting-data-column:nth-child(odd),
    .exposure-tool-wrapper .lighting-data-column:nth-child(even) {
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 0 1.75rem 0 0 !important;
        border: none !important;
    }

    .exposure-tool-wrapper .lighting-data-column:last-child {
        padding-right: 1rem !important;
    }

    .exposure-tool-wrapper .lighting-data-subtitle {
        white-space: nowrap !important;
        min-height: auto !important;
        margin-bottom: 1rem !important;
    }
    
    .exposure-tool-wrapper .lighting-data-item {
        white-space: nowrap !important;
    }

    .exposure-tool-wrapper .image-data-value {
        white-space: normal;
    }

    .exposure-tool-wrapper .lighting-actions {
        flex-direction: column;
        align-items: stretch;
        position: relative !important; 
        z-index: 10 !important; 
    }

    .exposure-tool-wrapper .lighting-diagram-toggle,
    .exposure-tool-wrapper .lighting-theory-link {
        width: 100%;
    }

    .exposure-tool-wrapper .equipment-toggle-row {
        justify-content: flex-start;
    }

    .exposure-tool-wrapper .image-equipment-columns {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .exposure-tool-wrapper .equipment-links-item {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .exposure-tool-wrapper .equipment-links-note {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .exposure-tool-wrapper .lighting-data-grid {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .exposure-tool-wrapper .lighting-data-column,
    .exposure-tool-wrapper .lighting-data-column:nth-child(even),
    .exposure-tool-wrapper .lighting-data-column:nth-child(odd) {
        padding: 1rem 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .exposure-tool-wrapper .lighting-data-column:first-child {
        padding-top: 0;
        border-top: none;
    }
}