.container {
  max-width: 1378px !important;
  margin-top: 0;
}

.container-margin {
  padding-top: 0;
}

.photo-page {
  padding: 20px 24px 64px;
}

.photo-hero {
  position: relative;
  width: 100%;
  min-height: 445px;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(2px);
}

.photo-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  padding: 24px;
  text-align: center;
}

.photo-hero-content h1 {
  font-size: 42px;
  line-height: 1.35;
  font-weight: 800;
  color: #4d79c9;
  margin-bottom: 42px;
}

.photo-search-box {
  width: 100%;
  max-width: 760px;
  height: 64px;
  margin: 0 auto;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 8px 0 24px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.photo-search-box input {
  flex: 1;
  border: 0;
  outline: none;
  height: 100%;
  font-size: 16px;
  color: #222;
}

.photo-search-box input::placeholder {
  color: #b5b5b5;
}

.btn-photo-search {
  width: 128px;
  height: 52px;
  border: 0;
  background: #ff5722;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.btn-photo-search span {
  font-size: 24px;
  line-height: 1;
}

.photo-event-section {
  padding: 52px 64px 40px;
}

.photo-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.photo-section-head h2 {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  color: #111111;
  margin: 0 0 12px;
}

.photo-section-head p {
  font-size: 16px;
  color: #111111;
  margin: 0;
}

.btn-photo-see-more {
  min-width: 112px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #999999;
  background: #ffffff;
  color: #111111;
  font-size: 13px;
  font-weight: 700;
}

.photo-event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.photo-event-card {
  position: relative;
  aspect-ratio: 1 / 1.32;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #f2f2f2;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.photo-event-card:hover {
  /* transform: translateY(-4px); */
  /* box-shadow: 0 14px 30px rgba(0,0,0,0.14); */
}

.photo-event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 42%,
    rgba(0,0,0,0.65) 100%
  );
  transition: background .26s ease;
}

.photo-event-card:hover .photo-event-overlay,
.photo-event-card.is-upload-stats-open .photo-event-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.18) 24%,
    rgba(0,0,0,0.88) 100%
  );
}

.photo-event-upload-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  min-width: 54px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #ff5a1f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 30px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.22);
  cursor: pointer;
}

.photo-event-info {
  position: absolute;
  left: 24px;
  right: 20px;
  bottom: 24px;
  z-index: 1;
  color: #ffffff;
}

.photo-event-name {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.photo-event-date {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
}

.photo-event-upload-stats {
  max-height: 0;
  margin-top: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  background: rgba(20,20,20,0.84);
  box-shadow: 0 12px 28px rgba(0,0,0,0.24);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: max-height .26s ease, margin-top .26s ease, transform .26s ease, opacity .26s ease;
  backdrop-filter: blur(8px);
}

.photo-event-card:hover .photo-event-upload-stats,
.photo-event-card.is-upload-stats-open .photo-event-upload-stats {
  max-height: 160px;
  margin-top: 12px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.photo-event-upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.3;
}

.photo-event-upload-row + .photo-event-upload-row {
  margin-top: 5px;
}

.photo-event-upload-row span {
  min-width: 0;
  opacity: 0.86;
}

.photo-event-upload-row strong {
  flex-shrink: 0;
  font-weight: 800;
}

.photo-event-upload-progress {
  width: 100%;
  height: 5px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.28);
}

.photo-event-upload-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ff5a1f;
}

.photo-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: #777777;
  font-size: 16px;
}

@media screen and (max-width: 1200px) {
  .photo-event-section {
    padding-left: 32px;
    padding-right: 32px;
  }

  .photo-event-grid {
    gap: 22px;
  }

  .photo-event-name {
    font-size: 19px;
  }
}

@media screen and (max-width: 991px) {
  .photo-hero {
    min-height: 360px;
  }

  .photo-hero-content h1 {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .photo-event-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-event-section {
    padding: 40px 16px 32px;
  }
}

@media screen and (max-width: 768px) {
  .photo-page {
    padding: 16px 12px 48px;
  }

  .photo-hero {
    min-height: 300px;
    border-radius: 20px;
  }

  .photo-hero-content h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .photo-search-box {
    height: auto;
    padding: 10px;
    flex-direction: column;
    gap: 10px;
  }

  .photo-search-box input {
    width: 100%;
    height: 46px;
    padding: 0 12px;
  }

  .btn-photo-search {
    width: 100%;
  }

  .photo-section-head {
    align-items: flex-start;
  }

  .photo-section-head h2 {
    font-size: 24px;
  }

  .photo-section-head p {
    font-size: 14px;
  }

  .photo-event-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .photo-event-info {
    left: 16px;
    right: 16px;
    bottom: 18px;
  }

  .photo-event-name {
    font-size: 16px;
  }
}

@media screen and (max-width: 500px) {
  .photo-hero-content {
    padding: 18px;
  }

  .photo-hero-content h1 {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .photo-search-box input {
    font-size: 14px;
  }

  .btn-photo-search {
    height: 46px;
    font-size: 14px;
  }

  .btn-photo-search span {
    font-size: 20px;
  }

  .photo-event-section {
    padding-left: 0;
    padding-right: 0;
  }

  .photo-section-head {
    flex-direction: column;
    gap: 14px;
  }

  .photo-event-grid {
    grid-template-columns: 1fr;
  }

  .photo-event-card {
    aspect-ratio: 1 / 1.18;
  }

  .photo-event-name {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .photo-event-date {
    font-size: 12px;
  }

  .photo-event-upload-stats {
    padding: 12px;
  }

  .photo-event-upload-row {
    font-size: 11px;
  }
}


.mainpage-section-6 {
  margin: auto;
  width: 100%;
  max-width: 1026px;
  padding: 48px;
}

.footer-row {
  row-gap: 32px;
}

.footer-logo-list,
.footer-social-list,
.footer-action {
  display: flex;
}

.footer-logo-list {
  align-items: center;
  flex-wrap: wrap;
}

.footer-social-list,
.footer-action {
  margin-top: 12px;
}

.mainpage-footer-title {
  font-size: 24px;
  line-height: 28px;
  font-weight: bold;
}

.footer-img {
  max-width: 96px;
  height: auto;
  padding: 12px;
}

.mainpage-footer-detail,
.mainpage-footer-detail:hover {
  display: block;
  color: #000000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
  margin-top: 16px;
  cursor: pointer;
}

.footer-social-item,
.footer-social-item:hover {
  width: 72px;
  text-align: center;
  text-decoration: none;
  color: #000000;
  font-size: 12px;
}

.footer-quote-btn {
  width: 212px;
  height: 48px;
  font-size: 16px;
}

.social-img {
  margin: auto;
  width: 30px;
  height: 30px;
}

.mainpage-footer-social {
  width: 36px;
  height: 36px;
}

@media screen and (max-width: 768px) {
  .mainpage-section-6 {
    padding: 40px 24px;
  }

  .mainpage-footer-title {
    font-size: 22px;
    line-height: 26px;
  }
}

@media screen and (max-width: 575.98px) {
  .mainpage-section-6 {
    padding: 36px 18px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-logo-list,
  .footer-social-list,
  .footer-action {
    justify-content: center;
  }

  .footer-img {
    max-width: 88px;
    padding: 10px;
  }

  .mainpage-footer-detail,
  .mainpage-footer-detail:hover {
    font-size: 15px;
    margin-top: 12px;
  }

  .footer-quote-btn {
    width: 100%;
    max-width: 212px;
  }
}
