#yg-feed {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0 0 24px;
  padding: 18px 0 28px;
  box-sizing: border-box;
  background: #111;
  border: 0;
  box-shadow: none;
}

.yg-feed-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

#yg-feed .yg-disasters-title,
#yg-feed .yg-photo-gallery-title {
  margin: 0 5px 8px;
}

#yg-feed .yg-photo-gallery-title {
  margin-bottom: 10px;
}

.yg-feed-sortbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 5px 12px;
}
.yg-feed-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffe566;
  font: 700 14px/1 system-ui, sans-serif;
  letter-spacing: 0.04em;
}
.yg-feed-sort svg {
  flex-shrink: 0;
  fill: currentColor;
}
.yg-feed-sort select {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 8px 32px 8px 12px;
  border: 2px solid #ffe566;
  border-radius: 8px;
  background: #111 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ffe566' d='M1 1l5 5 5-5'/></svg>") no-repeat right 10px center;
  color: #fff;
  font: 700 14px/1.2 system-ui, sans-serif;
  outline: none;
  cursor: pointer;
}
.yg-feed-sort select:focus {
  box-shadow: 0 0 0 3px rgba(255, 229, 102, 0.35);
}

.yg-feed-meta {
  margin: 0 5px 16px;
  text-align: center;
  color: #ffe566;
  font: 700 clamp(20px, 3.2vw, 32px) / 1.25 Georgia, "Times New Roman", serif;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

/* Wix Pro Gallery collage / vertical masonry (yasgod.info/gallary):
   targetItemSize 280, minItemSize 120, imageMargin 5, radius 13,
   cubeImages false, titlePlacement SHOW_ON_HOVER, gallerySpacing 0. */
.yg-feed-grid,
.yg-feed-grid.yg-tetris,
.yg-feed-grid.yg-feed-plain,
.yg-feed-grid.yg-wix-masonry {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  max-width: 100%;
  min-height: 240px;
  overflow-anchor: none;
  padding: 0;
}

.yg-feed-grid > .yg-mason-col {
  flex: 1 1 280px;
  min-width: 120px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.yg-feed-grid .yg-disaster-card,
.yg-feed-grid .yg-photo-card-wrap {
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 0;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  vertical-align: top;
  box-sizing: border-box;
  position: relative;
  border-radius: 13px !important;
  overflow: hidden;
  background: #cfcfcf;
  border: 0 !important;
  grid-column: auto !important;
  grid-row: auto !important;
  height: auto !important;
  contain: layout paint style;
}

#yg-feed .yg-photo-card {
  border-radius: 0 !important;
  min-height: 120px;
  background: #cfcfcf;
  overflow: hidden;
}

#yg-feed .yg-photo-card img,
#yg-feed .yg-disaster-poster,
#yg-feed .yg-disaster-card video {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  display: block;
  background: #cfcfcf;
  transform: none !important;
}

#yg-feed .yg-photo-card-wrap:hover .yg-photo-card.is-ready img {
  transform: none !important;
}

#yg-feed .yg-photo-cap,
#yg-feed .yg-disaster-body {
  position: absolute;
  inset: 0;
  z-index: 4;
  margin: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  background: rgba(93, 91, 91, 0.6);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  overflow: hidden;
}

#yg-feed .yg-photo-card-wrap:hover .yg-photo-cap,
#yg-feed .yg-photo-card-wrap:focus-within .yg-photo-cap,
#yg-feed .yg-disaster-card:hover .yg-disaster-body,
#yg-feed .yg-disaster-card:focus-within .yg-disaster-body {
  opacity: 1;
}

#yg-feed .yg-photo-cap .yg-disaster-handle,
#yg-feed .yg-photo-cap .yg-disaster-date,
#yg-feed .yg-photo-cap .yg-photo-tweet,
#yg-feed .yg-disaster-body .yg-disaster-handle,
#yg-feed .yg-disaster-body .yg-disaster-date,
#yg-feed .yg-disaster-body .yg-disaster-tweet,
#yg-feed .yg-disaster-body .yg-disaster-title {
  color: #fff;
}

.yg-feed-grid > .yg-disasters-loading,
.yg-feed-grid > .yg-photo-gallery-empty,
.yg-feed-loading-big {
  flex: 1 1 100%;
  width: 100%;
  margin: 28px 0;
  text-align: center;
  color: #ffe566;
  font: 700 clamp(22px, 3.6vw, 36px) / 1.3 Georgia, "Times New Roman", serif;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.yg-feed-more {
  display: none;
  margin: 18px auto 6px;
  padding: 14px 22px;
  width: fit-content;
  max-width: 92%;
  text-align: center;
  color: #111;
  background: #ffe566;
  border: 2px solid #111;
  border-radius: 999px;
  font: 800 clamp(16px, 2.4vw, 22px) / 1.2 system-ui, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.yg-feed-more.is-on {
  display: block;
}

.yg-feed-skel {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 13px;
  background: linear-gradient(110deg, #1a1a1a 8%, #2c2c2c 18%, #1a1a1a 33%);
  background-size: 200% 100%;
  animation: yg-feed-skel 1.1s linear infinite;
  border: 1px solid rgba(255, 229, 102, 0.25);
}

@keyframes yg-feed-skel {
  to {
    background-position-x: -200%;
  }
}

#yg-feed .yg-photo-card img {
  opacity: 1 !important;
}

