/* Fakta Kalimantan — external URL photo grid */
.lk-external-photo-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:8px;
  width:100%;
  margin:1.5rem 0 1.75rem;
  align-items:start;
}
.lk-external-photo{
  grid-column:span 12;
  min-width:0;
  margin:0;
  padding:2px;
  border:1px solid #dfe4e7;
  background:#fff;
  overflow:hidden;
}
.lk-external-photo__link{
  display:block;
  width:100%;
  line-height:0;
  cursor:zoom-in;
}
.lk-external-photo img{
  display:block;
  width:100%;
  max-width:none;
  aspect-ratio:16 / 9;
  height:auto;
  min-height:0;
  margin:0;
  object-fit:cover;
  object-position:center center;
}
.lk-external-photo__caption{
  display:block;
  width:calc(100% - 4px);
  height:15px;
  margin:6px 2px 1px;
  box-sizing:border-box;
  padding:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:9.5px;
  line-height:15px;
  color:#777d82;
  font-style:normal;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.lk-external-photo-grid--2 .lk-external-photo{grid-column:span 6}
.lk-external-photo-grid--3 .lk-external-photo{grid-column:span 4}
.lk-external-photo-grid--4 .lk-external-photo{grid-column:span 6}
.lk-external-photo-grid--5{
  grid-template-columns:repeat(6,minmax(0,1fr));
}
.lk-external-photo-grid--5 .lk-external-photo{grid-column:span 2}
.lk-external-photo-grid--5 .lk-external-photo:nth-child(4){grid-column:2 / span 2}
.lk-external-photo-grid--5 .lk-external-photo:nth-child(5){grid-column:4 / span 2}

/* In-editor helper: the toolbar button becomes active when the caret is on a photo grid. */
.mce-content-body .lk-external-photo-grid{
  cursor:pointer;
}
.mce-content-body .lk-external-photo-grid:hover{
  outline:1px dashed #b9c2c9;
  outline-offset:2px;
}

/* Admin preview modal */
.lk-photo-url-modal-open{overflow:hidden!important}
.lk-photo-url-modal-overlay{
  position:fixed;
  inset:0;
  z-index:100100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(11,29,42,.48);
}
.lk-photo-url-modal{
  width:min(920px,100%);
  max-height:calc(100vh - 48px);
  overflow:auto;
  background:#fff;
  border:1px solid #dfe4e7;
  box-shadow:0 22px 65px rgba(11,29,42,.28);
  border-radius:7px;
}
.lk-photo-url-head{
  display:flex;
  gap:18px;
  justify-content:space-between;
  align-items:flex-start;
  padding:18px 20px 15px;
  border-bottom:1px solid #e6eaed;
}
.lk-photo-url-kicker{
  margin-bottom:4px;
  color:#920303;
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
}
.lk-photo-url-head h2{
  margin:0;
  color:#0b1d2a;
  font-size:20px;
  line-height:1.2;
}
.lk-photo-url-head p{
  margin:6px 0 0;
  color:#6d7780;
  font-size:12px;
  line-height:1.45;
}
.lk-photo-url-close{
  flex:0 0 auto;
  width:34px;
  height:34px;
  border:1px solid #d8dde1;
  background:#fff;
  color:#0b1d2a;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  border-radius:4px;
}
.lk-photo-url-close:hover{border-color:#c7cdd2;color:#920303}
.lk-photo-url-body{padding:18px 20px 16px}
.lk-photo-url-controls{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:13px;
}
.lk-photo-url-controls label{
  color:#0b1d2a;
  font-size:12px;
  font-weight:800;
}
.lk-photo-url-controls select{
  min-width:140px;
  border:1px solid #cfd5da;
  background:#fff;
  padding:6px 9px;
  border-radius:3px;
}
.lk-photo-url-click-setting{
  margin:0 0 12px;
  padding:9px 11px;
  border:1px solid #e3e7ea;
  background:#fbfcfc;
}
.lk-photo-url-checkbox{
  display:flex !important;
  align-items:center;
  gap:8px;
  margin:0 !important;
  color:#30373d !important;
  font-size:11px !important;
  font-weight:700 !important;
  cursor:pointer;
}
.lk-photo-url-checkbox input{
  width:16px !important;
  min-height:16px !important;
  margin:0 !important;
  padding:0 !important;
}
.lk-photo-url-fields{display:grid;gap:8px}
.lk-photo-url-field{
  display:grid;
  grid-template-columns:86px minmax(0,1fr);
  column-gap:10px;
  row-gap:6px;
  align-items:center;
  padding:8px 0;
  border-bottom:1px solid #eef1f3;
}
.lk-photo-url-field:last-child{border-bottom:0}
.lk-photo-url-field label{
  color:#0b1d2a;
  font-size:11px;
  font-weight:800;
}
.lk-photo-url-field input{
  width:100%;
  min-height:35px;
  border:1px solid #cfd5da;
  border-radius:3px;
  padding:7px 9px;
  font-size:12px;
}
.lk-photo-url-field input:focus{
  border-color:#2271b1;
  box-shadow:0 0 0 1px #2271b1;
  outline:none;
}
.lk-photo-url-caption-label{
  color:#6d7780;
  font-size:10px !important;
  font-weight:700 !important;
}
.lk-photo-url-caption-input{
  width:100%;
  min-height:32px;
  border:1px solid #d7dde1 !important;
  padding:6px 8px;
  font-size:11px !important;
  color:#30373d;
}
.lk-photo-url-field.is-hidden{display:none}
.lk-photo-url-status{
  grid-column:2;
  min-height:14px;
  color:#727b82;
  font-size:10px;
  line-height:1.3;
}
.lk-photo-url-status.is-loading{color:#6d7780}
.lk-photo-url-status.is-ok{color:#18794e}
.lk-photo-url-status.is-error{color:#b42318}
.lk-photo-url-section-title{
  margin:18px 0 8px;
  color:#0b1d2a;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.lk-photo-url-preview{
  min-height:90px;
  padding:10px;
  border:1px solid #e3e7ea;
  background:#f7f8f9;
}
.lk-photo-url-live-grid{
  margin:0;
  gap:7px;
}
.lk-photo-url-live-grid .lk-external-photo{padding:2px;background:#fff}
.lk-photo-url-empty{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#8a9298;
  font-size:11px;
  text-align:center;
}
.lk-photo-url-global-status{
  min-height:18px;
  margin-top:8px;
  color:#6d7780;
  font-size:11px;
}
.lk-photo-url-global-status.is-ready{color:#18794e}
.lk-photo-url-global-status.is-error{color:#b42318}
.lk-photo-url-foot{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:12px 20px 16px;
  border-top:1px solid #e6eaed;
  background:#fbfcfc;
}
.lk-photo-url-foot .button{min-height:34px}

.lk-photo-url-caption-modal{width:min(620px,100%)}
.lk-photo-url-edit-caption-label{
  display:block;
  margin:0 0 6px;
  color:#0b1d2a;
  font-size:11px;
  font-weight:800;
}
.lk-photo-url-edit-caption-input{
  display:block;
  width:100%;
  min-height:36px;
  box-sizing:border-box;
  border:1px solid #cfd5da;
  border-radius:3px;
  padding:7px 9px;
  font-size:12px;
  color:#30373d;
}
.lk-photo-url-edit-caption-input:focus{
  border-color:#2271b1;
  box-shadow:0 0 0 1px #2271b1;
  outline:none;
}
.lk-photo-url-edit-caption-note{
  margin-top:7px;
  color:#7a838b;
  font-size:10px;
  line-height:1.45;
}

@media(max-width:700px){
  .lk-external-photo-grid{
    grid-template-columns:minmax(0,1fr);
    gap:6px;
    margin:1.25rem 0 1.5rem;
  }
  .lk-external-photo-grid--1 .lk-external-photo,
  .lk-external-photo-grid--2 .lk-external-photo,
  .lk-external-photo-grid--3 .lk-external-photo,
  .lk-external-photo-grid--4 .lk-external-photo,
  .lk-external-photo-grid--5 .lk-external-photo,
  .lk-external-photo-grid--5 .lk-external-photo:nth-child(4),
  .lk-external-photo-grid--5 .lk-external-photo:nth-child(5){
    grid-column:1 / -1;
  }
  .lk-photo-url-modal-overlay{padding:10px}
  .lk-photo-url-modal{max-height:calc(100vh - 20px)}
  .lk-photo-url-head,.lk-photo-url-body{padding-left:14px;padding-right:14px}
  .lk-photo-url-foot{padding-left:14px;padding-right:14px}
  .lk-photo-url-field{grid-template-columns:76px minmax(0,1fr)}
}

@media(prefers-reduced-motion:reduce){
  .lk-photo-url-close{transition:none}
}
