html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: #1b2430;
}

/* container */
.emi-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}
.emi-section {
  padding: 30px 0;
}
.page-intro {
  max-width: 760px;
  margin: 0.75rem 0 0;
  color: #5d6b7c;
  font-size: 1.05rem;
  line-height: 1.6;
}
.page-intro a {
  color: #000;
  text-decoration: none;
  font-size: .95rem;
}
.page-intro a:hover {
  color: #999;
  text-decoration: underline;
}
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* top bar */
.emi-topbar {
  background: #123a78;
  color: #fff;
  font-size: 16px;
}
.emi-topbar .emi-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.emi-topbar a {
  color: #fff;
  margin-left: 14px;
  text-decoration: none;
}


/* hero */
.emi-hero {
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.emi-hero img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.emi-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(255,255,255,0.2));
}


/* nav */
.emi-nav {
  background: #1f5fbf;
}

.emi-nav .emi-container {
  display: flex;
  gap: 30px;
}
.emi-nav a {
  color: #fff;
  text-decoration: none;
  padding: 14px 0;
  display: inline-block;
  font-weight: 500;
}
.emi-nav a:hover {
  text-decoration: underline;
}
.emi-nav a.active {
  font-weight: 600;
  border-bottom: 3px solid #fff;
}


/* footer */
.emi-footer {
  margin-top: 3rem;
  color: #fff;
  border-top: 1px solid #e0e6ef;
}
.emi-footer-top {
  position: relative;
  background: url('/app/assets/images/blue-tech-2.jpg') center center / cover no-repeat;
  overflow: hidden;
}
.emi-footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 25, 60, 0.75),
    rgba(10, 25, 60, 0.92)
  );
  pointer-events: none;
}
.emi-footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding: 2.5rem 0;
}
.emi-footer-col h3,
.emi-footer-col h4 {
  margin: 0 0 0.9rem;
  color: #fff;
}
.emi-footer-col p {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.emi-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.emi-footer-col li {
  margin: 0 0 0.55rem;
}
.emi-footer-col a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.emi-footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}
.emi-footer-bottom {
  background: #08152c;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}
.emi-footer-bottom-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}


/* app forms */
.emi-form {
  max-width: 760px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(18, 58, 120, 0.08);
}
.emi-form-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.emi-form-row label {
  font-weight: 700;
  color: #123a78;
}
.emi-form input[type="text"],
.emi-form input[type="email"],
.emi-form input[type="password"],
.emi-form select,
.emi-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}
.emi-form textarea {
  resize: vertical;
}
.emi-phone-fields {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
}
.emi-form-check {
  margin: 1.5rem 0;
  line-height: 1.5;
}
.emi-form-check label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.emi-form-check input {
  margin-top: 0.25rem;
}
.emi-form-actions {
  text-align: center;
  margin-top: 1.5rem;
}
.emi-form input[type="submit"] {
  background: #1f5fbf;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.8rem 1.8rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1rem;
}
.emi-form input[type="submit"]:hover {
  background: #174998;
}
.emi-form-links {
  margin-top: 1.5rem;
}
.error {
  color: #c62f3a;
  font-weight: 700;
}
.emi-empty-state h3 {
  margin: 0 0 0.5rem;
  color: #123a78;
}
.emi-empty-state p {
  margin: 0;
  color: #5d6b7c;
}

/* buttons */
.emi-btn {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;

  border-radius: 6px;
  border: none;

  background: #1f5fbf;
  color: #fff;

  cursor: pointer;
  text-align: center;

  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.emi-btn:hover {
  background: #174a96;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.emi-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


/* tools */
.emi-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 700px;
  margin: 2rem auto 0;
}
.emi-tool-card {
  display: block;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid #d7dfeb;
  border-radius: 16px;
  text-decoration: none;
  color: #1b2430;
  box-shadow: 0 10px 28px rgba(15, 47, 89, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.emi-tool-card h3 {
  margin: 0 0 0.5rem;
  color: #123a78;
  font-size: 1.25rem;
}
.emi-tool-card p {
  margin: 0;
  color: #5d6b7c;
  line-height: 1.5;
}
.emi-tool-card:hover {
  transform: translateY(-2px);
  border-color: #1f5fbf;
  box-shadow: 0 12px 30px rgba(18, 58, 120, 0.14);
}
.emi-tool-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.emi-tool-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}






/* alerts */

.emi-alert {
  padding: 14px 16px;
  border-radius: 10px;
  margin: 18px 0;
  font-size: 16px;
}

.emi-alert-success {
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
}

.emi-alert {
  position: relative;
  margin: 1.25rem 0;
  padding: 1rem 2.75rem 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
  line-height: 1.5;
}
.emi-alert p {
  margin: 0;
  text-align: center;
}

.emi-alert-success {
  background: #eaf7ee;
  border-color: #b7e2c5;
  color: #1f7a3a;
}

.emi-alert-warning {
  background: #fff8e6;
  border-color: #f0d9a7;
  color: #8a6d1a;
}

.emi-alert-danger {
  background: #fff1f2;
  border-color: #f3c2c6;
  color: #a11d2a;
}

.emi-alert-close {
  position: absolute;
  top: 0.55rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}


/* distributors */
.dist-results-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: #123a78;
}

.dist-flag {
  width: 36px;
  height: auto;
  border: 1px solid #d7dfeb;
}

.dist-results-table {
  margin-top: 1rem;
}
.emi-left img {
  max-height: 46px;
  width: auto;
  display: block;
}
.emi-empty-state {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f6f9fe;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  text-align: center;
}

.dist-map-card {
  max-width: 820px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(18, 58, 120, 0.08);
  text-align: center;
}

.dist-map-wrap {
  margin: 1.5rem auto;
  overflow-x: auto;
}

.dist-map-img {
  max-width: 100%;
  height: auto;
  border: 1px solid #d7dfeb;
  border-radius: 8px;
}

.dist-select-form {
  max-width: 420px;
  margin: 1.5rem auto 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.dist-select-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: #123a78;
  font-weight: 700;
}

.dist-select-form select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  font: inherit;
}



/*photo gallery */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  justify-content: center;
}
.gallery-filters button {
  border: 1px solid #d7dfeb;
  background: #fff;
  color: #123a78;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.gallery-filters button:hover,
.gallery-filters button.active {
  background: #123a78;
  color: #fff;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.gallery-grid .element {
  background: #fff;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 58, 120, 0.08);
}
.gallery-grid .element img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}
.gallery-grid .element > a {
  text-decoration: none;
  color: inherit;
}
.pcap {
  padding: 1rem;
}
.pcap h5 {
  margin: 0 0 0.4rem;
  color: #123a78;
  font-size: 1rem;
}
.pcap p {
  margin: 0;
  color: #5d6b7c;
  font-size: 0.9rem;
  line-height: 1.4;
}
.tags {
  font-weight: 700;
  color: #1b2430;
}
.photo-search-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
  margin: 2rem 0;
}
.photo-search-form {
  margin: 0;
}
.photo-search-form h3 {
  margin: 0 0 1.25rem;
  color: #123a78;
}
.photogal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.onefourthcolm,
.fullcall {
  background: #fff;
  border: 1px solid #d7dfeb;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 24px rgba(18, 58, 120, 0.08);
}

.fullcall {
  grid-column: 1 / -1;
  padding-bottom: 1.25rem;
}

.emenviro {
  background: #123a78;
  color: #fff;
  font-weight: 700;
  padding: 0.55rem;
}

.emtype,
.emframe,
.emimgname,
.emimgdesc {
  padding: 0.45rem 0.75rem;
}

.emtype {
  font-weight: 700;
  color: #123a78;
}

.emframe {
  font-weight: 700;
  color: #5d6b7c;
}

.emimgfile {
  padding: 0.75rem;
}

.photgal {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.onefourthcolm .photgal {
  width: 100%;
  height: 160px;
  object-fit: contain;
}

#imglinkbox {
  width: min(90%, 760px);
  padding: 0.65rem;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
}

.photo-result-note {
  text-align: center;
  color: #5d6b7c;
  margin: 1rem 0;
}

.emi-photo-index {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.emi-photo-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(15, 47, 89, 0.12);
    border-radius: 14px;
    background: #f8fbff;
}

.emi-photo-env {
    font-weight: 700;
    color: #12345c;
    display: flex;
    align-items: center;
}

.emi-photo-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 10px;
}

.emi-photo-option {
    background: #fff;
    border: 1px solid rgba(15, 47, 89, 0.12);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}

.emi-photo-option span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #43556f;
    margin-bottom: 8px;
}

.emi-photo-option a,
.emi-photo-option input,
.emi-photo-option button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
}
.emi-photo-index {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}
.emi-photo-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: stretch;
    padding: 16px;
    border: 1px solid rgba(15, 47, 89, 0.12);
    border-radius: 14px;
    background: #f8fbff;
}
.emi-photo-env {
    font-weight: 700;
    color: #12345c;
    display: flex;
    align-items: center;
}
.emi-photo-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 10px;
}
.emi-photo-option {
    background: #fff;
    border: 1px solid rgba(15, 47, 89, 0.12);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
}
.emi-photo-option span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #43556f;
    margin-bottom: 8px;
}
.emi-photo-option a,
.emi-photo-option input,
.emi-photo-option button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
}


/* search */
.emi-search {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border: 1px solid #d7dfeb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  max-width: 760px;
  margin: 24px auto;
}

.emi-search .emi-tool-icon {
  font-size: 2rem;
  line-height: 1;
}

.emi-search-content {
  flex: 1;
}

.emi-search h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.emi-search p {
  margin: 0 0 16px;
  color: #526172;
}

.emi-search-form {
  display: flex;
  gap: 10px;
}

.emi-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
}

.emi-search-form input[type="search"]:focus {
  outline: none;
  border-color: #1f5fbf;
  box-shadow: 0 0 0 3px rgba(31,95,191,0.15);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .emi-search {
    flex-direction: column;
  }

  .emi-search-form {
    flex-direction: column;
  }

  .emi-search-form .emi-btn {
    width: 100%;
  }
}








/* =========================
   CAD / legacy page helpers
   ========================= */

.breadcrumbs {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: #5d6b7c;
}

.breadcrumbs a {
  color: #1f5fbf;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.thispg {
  color: #1b2430;
  font-weight: 700;
}

.page-header {
  margin: 0 0 1.5rem;
}

.section-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
  color: #123a78;
}

.specification {
  margin-top: 1.25rem;
}

.specification p {
  line-height: 1.6;
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 2rem;
  background: #fff;
  border: 1px solid #d7dfeb;
}

.table th,
.table td {
  padding: 0.85rem 1rem;
  border: 1px solid #d7dfeb;
  vertical-align: top;
  text-align: left;
  line-height: 1.45;
}

.table th {
  font-weight: 700;
}

.table a {
  color: #1f5fbf;
  text-decoration: none;
}

.table a:hover {
  text-decoration: underline;
}

.tblbackdkblue {
  background: #123a78;
  color: #fff;
}

.tblbackdkblue th,
.tblbackdkblue td {
  color: #fff;
}

.tblbackdkblue a {
  color: #fff;
}

.tblbackltblue {
  background: #f4f8fd;
}

.table.table-responsive td {
  padding: 1.5rem;
    
}
.table-striped tr:nth-child(even):not(.tblbackdkblue) {
  background: #eef4fb;
}

.envirothumbs {
  display: block;
  width: 72px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 0.5rem;
}

.clearpad {
  clear: both;
  height: 1px;
}
/* kill old float layout */
.photogal .onefourthcolm {
  float: none;
  width: auto;
  margin: 0;
}
.photogal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.photogal {
  align-items: stretch;
}

.onefourthcolm {
  display: flex;
  flex-direction: column;
}

.emimgfile {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}


.photocrumbs {
  text-align: right;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #5d6b7c;
}

.photocrumbs a,
.photocrumbs .thispg {
  display: inline-block;
  margin: 0 0.15rem;
}

.photocrumbs a {
  color: #1f5fbf;
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.photocrumbs a:hover {
  background: #eaf2ff;
  text-decoration: none;
}

.photocrumbs .thispg {
  font-weight: 700;
  color: #123a78;
  background: #eaf2ff;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.photo-count {
  text-align: right;
  font-weight: 700;
  color: #123a78;
  margin: 0 0 1.25rem;
}

.photo-pill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.photo-pill {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  background: #fff;
  border: 1px solid #d7dfeb;
  border-radius: 999px;
  color: #123a78;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(18, 58, 120, 0.06);
}

.photo-pill:hover {
  background: #123a78;
  border-color: #123a78;
  color: #fff;
  text-decoration: none;
}

.gallery-modal[hidden] { display: none; }
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 30, .68);
    backdrop-filter: blur(4px);
}
.gallery-modal-box {
    position: relative;
    width: min(1180px, 95vw);
    height: 90vh;
    margin: 4vh auto;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .35);
    display: flex;
    flex-direction: column;
}
.gallery-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #111827;
    color: #fff;
}
.gallery-modal-header h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}
.gallery-modal-header a {
    margin-left: auto;
    color: #a7d4ff;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}
.gallery-modal-header a:hover { text-decoration: underline; }
.gallery-modal-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.gallery-modal-close:hover { background: rgba(255, 255, 255, .22); }
.gallery-modal-content {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #f5f7fb;
}
.gallery-modal-content iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
.gallery-modal-image-wrap {
    width: 100%;
    height: 100%;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-modal-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
    background: #fff;
}
.gallery-modal-loading {
    position: absolute;
    inset: 56px 0 0;
    z-index: 1;
    display: none;
    align-items: center;
    justify-content: center;
    color: #334155;
    background: #f5f7fb;
    font-weight: 700;
}
.gallery-modal.is-loading .gallery-modal-loading { display: flex; }
.gallery-grid .element a { cursor: pointer; }
.gallery-grid .element a:not(.prettyphoto) .pcap h5::after {
    content: " ↗";
    font-size: .85em;
    opacity: .75;
}

.photo-gallery-wrap {
    margin-top: 24px;
}

.photo-gallery-intro {
    text-align: center;
    color: #4b5563;
    margin-bottom: 24px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.photo-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
    transition: transform .15s ease, box-shadow .15s ease;
}

.photo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .14);
}

.photo-card-meta {
    padding: 14px 16px 10px;
    text-align: center;
}

.photo-enviro {
    background: linear-gradient(135deg, #102a56, #1f5fbf);
    color: #fff;
    font-weight: 700;
    padding: 8px 10px;
    font-size: 15px;
}

.photo-type {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.photo-frame {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.photo-name {
    font-size: 13px;
    color: #6b7280;
    min-height: 34px;
}

.photo-image-link {
    display: block;
    padding: 12px 16px 18px;
    text-align: center;
}

.photo-image-link img {
    width: 100%;
    max-height: 170px;
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
    padding: 8px;
}

.photo-card-action {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1f5fbf;
}

.gallery-actions {
    text-align: center;
    margin: 30px 0;
}

.gallery-button {
    display: inline-block;
    background: #1f5fbf;
    color: #fff !important;
    text-decoration: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(31, 95, 191, .22);
}

.gallery-button:hover {
    background: #123a78;
}


/* Modal */
.app-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.app-modal[hidden] {
    display: none;
}

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.68);
    backdrop-filter: blur(4px);
}

.app-modal-box {
    position: relative;
    width: min(1100px, 94vw);
    height: 88vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0,0,0,.38);
}

.app-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #111827;
    color: #fff;
}

.app-modal-header h3 {
    margin: 0;
    font-size: 16px;
    flex: 1;
}

.app-modal-header a {
    color: #9ecbff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.app-modal-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.app-modal-body {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #f8fafc;
}

.app-modal-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}



.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 9999;
}

.skip-link:focus {
  left: 8px;
}

.emi-review-banner {
  background: #fff3cd;
  color: #664d03;
  border-bottom: 1px solid #ffecb5;
  padding: 10px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}



/* @media */

@media (max-width: 1079px) {
    .photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 1000px) {
  .photogal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-search-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .section-title {
    font-size: 1.7rem;
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .table th,
  .table td {
    min-width: 160px;
  }
  .emi-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 800px) {
    .emi-photo-row {
        grid-template-columns: 1fr;
    }
    .emi-photo-env {
        font-size: 1.05rem;
    }

}

@media (max-width: 768px) {
  .emi-nav .emi-container {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .emi-nav a {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 12px 16px;
    border-radius: 6px;
  }

  .emi-nav a:hover,
  .emi-nav a.active {
    background: rgba(255,255,255,0.16);
    text-decoration: none;
    border-bottom: none;
  }
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-modal-box {
        width: 96vw;
        height: 90vh;
        margin: 4vh auto;
    }
}


@media (max-width: 700px) {
   .gallery-modal-box {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    .gallery-modal-header { gap: 10px; }
    .gallery-modal-header h3 { font-size: 14px; }
    .gallery-modal-header a { font-size: 13px; }
    
  .emi-topbar a {
    margin-left: 8px;
    margin-right: 8px;
  }

  .emi-nav .emi-container {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .emi-tool-grid {
    grid-template-columns: 1fr;
  }
  .emi-form {
    padding: 1.25rem;
  }

  .emi-form-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .emi-phone-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .breadcrumbs {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .table th,
  .table td {
    padding: 0.7rem 0.8rem;
  }

  .envirothumbs {
    width: 56px;
  }
  .emi-footer-grid {
    grid-template-columns: 1fr;
  }

  .emi-footer-bottom-row {
    flex-direction: column;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .element img {
    height: auto;
  }
}

@media (max-width: 600px) {
  .photogal {
    grid-template-columns: 1fr;
  }

  .onefourthcolm .photgal {
    height: auto;
  }
}

@media (max-width: 539px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
}



