
.um-form{
padding:90px 0 60px !important;
}

.photo_album-template-default .btn_rev{
  display: flex;
  justify-content: center;
}
.um-field-checkbox-option{
  display: none !important;
}
/* ─── フォトアルバム 単一投稿 ────────────────────────────────── */

.pa-single {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 0 40px;
}

.pa-single__title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-top:50px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.pa-single__eyecatch {
  margin-bottom: 28px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.pa-single__eyecatch-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.pa-single__content {
  margin-top: 8px;
}

/* ユーザー情報バッジ（一覧ページ）*/
.pa-user-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 28px;
  padding: 8px 20px;
  background: #f0f4ff;
  border: 1px solid #c5d3f0;
  border-radius: 24px;
  font-size: 0.875rem;
  color: #333;
  flex-wrap: wrap;
  justify-content: center;
}

.pa-user-info .fa {
  color: #4a90e2;
  margin-right: 4px;
}

.pa-user-info__sep {
  color: #bbb;
}

/* アイキャッチ未設定時のプレースホルダー */
.pa-no-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #f0f4f8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 2.4rem;
}

/* ─── 写真ギャラリー ─────────────────────────────────────────── */

#photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* スマホ: 2列 */
  gap: 8px;
  width: 100%;
}

@media (min-width: 600px) {
  #photo-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (min-width: 960px) {
  #photo-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (min-width: 1280px) {
  #photo-gallery {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* サムネイル: 正方形にトリミング */
.pg-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background-color: #f0f0f0;
  position: relative;
}

.pg-item img,
.pg-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.pg-item img:hover,
.pg-item video:hover {
  transform: scale(1.04);
}

/* 動画はアスペクト比を保ちつつ枠いっぱいに */
.pg-item--video {
  aspect-ratio: auto;
  background: #000;
}

.pg-item--video video {
  object-fit: contain;
}

/* PDF */
.pg-item--pdf {
  aspect-ratio: auto;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.pg-pdf-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 120px;
  padding: 16px 8px;
  text-decoration: none;
  color: #333;
  gap: 8px;
}

.pg-pdf-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #e53e3e;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.pg-pdf-name {
  font-size: 11px;
  word-break: break-all;
  text-align: center;
  line-height: 1.4;
}

/* ─── 管理者バー ────────────────────────────────────────────── */

.pg-admin-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
}

.pg-admin-bar label {
  font-weight: 600;
  white-space: nowrap;
}

#pg-class-select {
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  
  cursor: pointer;
}

/* ─── 状態メッセージ ────────────────────────────────────────── */

.pg-loading,
.pg-empty,
.pg-error,
.pg-login-notice,
.pg-notice {
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
}

.pg-loading {
  color: #555;
  background-color: #f8f8f8;
}

.pg-empty {
  color: #555;
  background-color: #f0f4f8;
}

.pg-error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

.pg-login-notice {
  color: #383d41;
  background-color: #e2e3e5;
  border: 1px solid #d6d8db;
}

.pg-login-notice a {
  font-weight: 600;
  color: #0056b3;
  text-decoration: underline;
}

.pg-notice {
  color: #856404;
  background-color: #fff3cd;
  border: 1px solid #ffc107;
}

/* ─── ギャラリーサムネイル クリック可能 ─────────────────────── */

.pg-lb-trigger {
  cursor: pointer;
}

.pg-lb-trigger:focus-visible {
  outline: 3px solid #4a90e2;
  outline-offset: 2px;
}

/* 動画サムネイルの再生ボタン */
.pg-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  pointer-events: none;
  transition: opacity 0.2s;
}

/* ─── 選択モード ──────────────────────────────────────────── */

/* ─── ツールバー（選択ボタン＋並び順）─────────────────────── */

.pg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pg-sort-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pg-sort-label {
  color: #666;
  white-space: nowrap;
}

.pg-sort-select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
}

/* 選択切替ボタン */
.pg-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 7px 18px;
  background: #fff;
  border: 2px solid #4a90e2;
  border-radius: 20px;
  color: #4a90e2;
  
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.pg-select-btn--active {
  background: #4a90e2;
  color: #fff;
}

/* 選択中のサムネイル枠 */
.pg-item--selected {
  outline: 3px solid #4a90e2;
  outline-offset: -3px;
}

/* チェックマークアイコン */
.pg-check-icon {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  background: rgba(200,200,200,0.55);
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: transparent;
  pointer-events: none;
  transition: background 0.15s, color 0.15s;
  z-index: 1;
  visibility: hidden;
}

.pg-selecting .pg-lb-trigger .pg-check-icon {
  color: transparent;
  background: rgba(200,200,200,0.55);
  visibility: visible;
  
}

.pg-item--selected .pg-check-icon {
  background: #4a90e2;
  border-color: #4a90e2;
  color: #fff;
  color: #4a90e2 !important;
  font-size: 18px !important;
}

/* 選択モード時にマウスオーバーでチェック枠をハイライト */
.pg-selecting .pg-lb-trigger:hover .pg-check-icon {
  background: rgba(74, 144, 226, 0.4);
}

/* ─── 選択アクションバー（画面下部固定）──────────────────── */

.pg-sel-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid #4a90e2;
  padding: 12px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.14);
  z-index: 9998;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pg-sel-bar--open {
  display: flex;
}

.pg-sel-count {
  flex: 1;
  font-weight: 600;
  color: #333;
  min-width: 80px;
}

.pg-sel-dl-btn {
  padding: 10px 22px;
  background: #4a90e2;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.pg-sel-dl-btn:hover:not(:disabled) { background: #2c6fc7; }

.pg-sel-dl-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

.pg-sel-clear-btn,
.pg-sel-cancel-btn {
  padding: 9px 16px;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 4px;
  
  cursor: pointer;
  color: #555;
  transition: border-color 0.2s, color 0.2s;
}

.pg-sel-clear-btn:hover,
.pg-sel-cancel-btn:hover {
  border-color: #999;
  color: #333;
}

/* 選択バーが出ているときギャラリー下に余白 */
body.pg-has-selbar #photo-gallery,
body.pg-has-selbar .pg-select-btn {}

/* ─── ライトボックス ─────────────────────────────────────────── */

#pg-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

#pg-lightbox.pg-lb--open {
  display: flex;
}

.pg-lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.pg-lb-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 92vh;
  z-index: 1;
}

/* 閉じるボタン */
.pg-lb-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}

.pg-lb-close:hover {
  background: rgba(255,255,255,0.2);
}

/* コンテンツエリア */
.pg-lb-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 88vw;
  max-height: 80vh;
}

.pg-lb-img {
  display: block;
  max-width: 88vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  object-fit: contain;
}

.pg-lb-video {
  display: block;
  max-width: 88vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 4px;
}

/* 前へ / 次へ ボタン */
.pg-lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.pg-lb-nav:hover {
  background: rgba(255,255,255,0.2);
}

.pg-lb-prev { left: 16px; }
.pg-lb-next { right: 16px; }

/* フッター（カウンター＋ダウンロード）*/
.pg-lb-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
}

.pg-lb-counter {
  color: rgba(255,255,255,0.75);
  min-width: 60px;
  text-align: center;
}

.pg-lb-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  color: #fff !important;
  text-decoration: none;
  transition: background 0.2s;
}

.pg-lb-dl:hover {
  background: rgba(255,255,255,0.28);
  color: #fff;
}

/* スマホでナビボタンを小さく */
@media (max-width: 600px) {
  .pg-lb-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  .pg-lb-prev { left: 8px; }
  .pg-lb-next { right: 8px; }
}
