/* ==========================================
   Gallery, Modals, Toast, Mobile Override, Floating Contact
   (tách từ inline style trong index.html)
   ========================================== */

/* Flickr-style Gallery Container */
.flickr-gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  overflow: auto;
}

.flickr-gallery-overlay.active {
  display: block;
}

.flickr-gallery-container {
  position: relative;
  width: 90%;
  max-width: 1400px;
  margin: 50px auto;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.flickr-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 1px solid #333;
  background: rgba(0, 0, 0, 0.9);
}

.flickr-gallery-title {
  color: white;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  text-align: center;
  flex: 1;
}

.flickr-gallery-close {
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.flickr-gallery-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.btn-select-concept {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-select-concept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-select-concept:active {
  transform: translateY(0);
}

.flickr-justified-gallery {
  column-count: 4;
  column-gap: 8px;
  padding: 10px;
  background: transparent;
  width: 100%;
}

.flickr-justified-gallery > div {
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: #f0f0f0;
  margin-bottom: 8px;
  break-inside: avoid;
}

.flickr-justified-gallery > div:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 10;
  border-radius: 6px;
}

.flickr-justified-gallery img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  object-fit: cover;
}

.flickr-justified-gallery > div:hover img {
  transform: scale(1.05);
}

.flickr-gallery-item {
  display: block;
  text-decoration: none;
  border: none;
  width: 100%;
}

.flickr-gallery-item:focus {
  outline: none;
}

@media (max-width: 1200px) {
  .flickr-justified-gallery {
    column-count: 3;
    column-gap: 6px;
    padding: 8px;
  }
  .flickr-justified-gallery > div {
    margin-bottom: 6px;
  }
}

@media (max-width: 768px) {
  .flickr-justified-gallery {
    column-count: 2;
    column-gap: 4px;
    padding: 6px;
  }
  .flickr-justified-gallery > div {
    margin-bottom: 4px;
  }
}

@media (max-width: 480px) {
  .flickr-justified-gallery {
    column-count: 2;
    column-gap: 3px;
    padding: 4px;
  }
  .flickr-justified-gallery > div {
    margin-bottom: 3px;
  }
}

/* Edit Concept Modal */
.current-cover-preview {
  text-align: center;
  margin: 10px 0;
}

.current-cover-preview img {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
}

.current-photos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
  background: #f8f9fa;
}

.current-photo-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dee2e6;
}

.current-photo-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.current-photo-item .delete-photo-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 0, 0, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 100;
  pointer-events: auto;
}

.delete-photo-btn:hover {
  background: rgba(255, 0, 0, 1);
  transform: scale(1.2);
}

.flickr-justified-gallery .delete-photo-btn.admin-only {
  opacity: 1;
  transform: scale(1);
}

.flickr-justified-gallery .delete-photo-btn.admin-only:hover {
  transform: scale(1.2);
}

/* Toast */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: white;
  border-radius: 8px;
  padding: 16px;
  min-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.success { border-left: 4px solid #28a745; }
.toast.error { border-left: 4px solid #dc3545; }
.toast.info { border-left: 4px solid #17a2b8; }

.toast-icon { font-size: 20px; }
.toast.success .toast-icon { color: #28a745; }
.toast.error .toast-icon { color: #dc3545; }
.toast.info .toast-icon { color: #17a2b8; }

.toast-message {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover { color: #333; }

/* Upload Progress */
.upload-progress-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.upload-progress {
  background: white;
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 320px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e0e0;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-progress.show {
  opacity: 1;
  transform: translateY(0);
}

.upload-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.upload-progress-title {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-progress-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #5f6368;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.upload-progress-close:hover {
  background: #f1f3f4;
  color: #202124;
}

.upload-progress-bar {
  height: 4px;
  background: #e8eaed;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.upload-progress-fill {
  height: 100%;
  background: #1a73e8;
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.upload-progress-text {
  font-size: 12px;
  color: #5f6368;
  text-align: right;
  font-weight: 400;
}

/* Custom Confirm Modal */
.custom-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.custom-confirm-modal.show {
  display: flex;
}

.custom-confirm-content {
  background: white;
  border-radius: 12px;
  padding: 0;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: confirmSlideIn 0.3s ease;
}

@keyframes confirmSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.custom-confirm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
  border-bottom: 1px solid #e9ecef;
}

.custom-confirm-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.custom-confirm-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.custom-confirm-close:hover {
  background: #f8f9fa;
  color: #333;
}

.custom-confirm-body { padding: 20px; }

.custom-confirm-message {
  font-size: 16px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.custom-confirm-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 20px 20px;
}

.custom-confirm-footer .btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.custom-confirm-footer .btn-secondary {
  background: #6c757d;
  color: white;
}

.custom-confirm-footer .btn-secondary:hover {
  background: #5a6268;
}

.custom-confirm-footer .btn-danger {
  background: #dc3545;
  color: white;
}

.custom-confirm-footer .btn-danger:hover {
  background: #c82333;
}

/* Mobile Layout for Concepts */
@media (max-width: 768px) {
  .concept-cover::before {
    display: none !important;
  }
  .tab-pane .row,
  .tab-pane .row.row-cols-2,
  .tab-pane .row.row-cols-md-3,
  .tab-pane .row.row-cols-lg-5 {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    grid-template-columns: none !important;
  }
  .tab-pane .col,
  .tab-pane .col.concept-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    flex-basis: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .concept-item {
    display: flex !important;
    align-items: center !important;
    background: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
    min-height: 120px !important;
  }
  .concept-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  }
  .concept-item .concept-cover {
    width: 100px !important;
    height: 100px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-right: 20px !important;
    flex-shrink: 0 !important;
    position: relative !important;
    aspect-ratio: 1 !important;
  }
  .concept-item .concept-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
  }
  .concept-item:hover .concept-cover img {
    transform: scale(1.05) !important;
  }
  .concept-item .concept-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
  .concept-item .concept-name {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
  }
  .concept-item .concept-views {
    font-size: 14px !important;
    color: #666 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
  }
  .concept-item .concept-views::before {
    content: "👁" !important;
    font-size: 12px !important;
  }
  .concept-item .btn-delete-concept {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
  }
  .add-concept-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 140px !important;
    border: 2px dashed #ddd !important;
    background: #f9f9f9 !important;
    border-radius: 12px !important;
  }
  .add-concept-card i {
    font-size: 24px !important;
    color: #999 !important;
    margin-bottom: 5px !important;
  }
  .add-concept-card span {
    font-size: 12px !important;
    color: #666 !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .tab-pane .row-cols-lg-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flickr-loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

.flickr-loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid #333;
  border-top: 3px solid #1acc8d;
  border-radius: 50%;
  animation: flickr-spin 1s linear infinite;
}

@keyframes flickr-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .flickr-gallery-container {
    width: 95%;
    margin: 20px auto;
    padding: 15px;
  }
  .flickr-gallery-title { font-size: 18px; }
  .flickr-gallery-close {
    font-size: 24px;
    width: 30px;
    height: 30px;
  }
}

/* ========== MOBILE OVERRIDE - MAXIMUM PRIORITY ========== */
@media (max-width: 768px) {
  #grid-baby.row,
  #grid-family.row,
  #grid-beauty.row,
  #grid-kyyeu.row,
  .tab-pane .row.row-cols-2,
  .tab-pane .row.row-cols-md-3,
  .tab-pane .row.row-cols-lg-5 {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    padding: 0 15px !important;
  }
  #grid-baby > .col,
  #grid-baby > .col.concept-item,
  #grid-family > .col,
  #grid-family > .col.concept-item,
  #grid-beauty > .col,
  #grid-beauty > .col.concept-item,
  #grid-kyyeu > .col,
  #grid-kyyeu > .col.concept-item,
  .tab-pane .row > .col,
  .tab-pane .row .col.concept-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }
  .col.concept-item,
  div.concept-item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    background: white !important;
    border-radius: 12px !important;
    padding: 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    margin: 0 0 15px 0 !important;
    min-height: 140px !important;
    position: relative !important;
    cursor: pointer !important;
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
  }
  .col.concept-item > .concept-cover,
  div.concept-item > div.concept-cover,
  div.concept-item .concept-cover {
    width: 120px !important;
    left: 10px !important;
    height: 120px !important;
    min-width: 120px !important;
    min-height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin: 0 15px 0 0 !important;
    flex: 0 0 120px !important;
    position: relative !important;
    background: transparent !important;
    pointer-events: none !important;
    box-sizing: border-box !important;
    border: 2px solid #f0f0f0 !important;
  }
  .col.concept-item > .concept-cover img,
  div.concept-item > div.concept-cover img,
  div.concept-item div.concept-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    pointer-events: none !important;
  }
  .col.concept-item > .concept-cover .btn-delete-concept,
  .col.concept-item > .concept-cover .btn-edit-concept,
  div.concept-item div.concept-cover .btn-delete-concept,
  div.concept-item div.concept-cover .btn-edit-concept {
    pointer-events: auto !important;
    z-index: 1000 !important;
  }
  .col.concept-item > .concept-info,
  div.concept-item > div.concept-info,
  div.concept-item div.concept-info {
    position: relative !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    display: flex !important;
    left: 20px !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    text-align: left !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 2 !important;
    pointer-events: auto !important;
    gap: 6px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .col.concept-item > .concept-info .concept-name,
  div.concept-item div.concept-info .concept-name {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    text-shadow: none !important;
    text-transform: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .col.concept-item > .concept-info .concept-views,
  div.concept-item div.concept-info .concept-views {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #666666 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
  .col.concept-item > .concept-info .concept-views::before,
  div.concept-item div.concept-info .concept-views::before {
    content: "" !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z'/%3E%3Cpath d='M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    flex-shrink: 0 !important;
  }
  .col.concept-item .btn-delete-concept,
  div.concept-item .btn-delete-concept {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 100 !important;
    width: 24px !important;
    height: 24px !important;
    pointer-events: auto !important;
  }
}

/* Desktop: Restore overlay (min-width: 769px) */
@media (min-width: 769px) {
  .tab-pane .row,
  #grid-baby,
  #grid-family,
  #grid-beauty,
  #grid-kyyeu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 -0.5rem !important;
  }
  .tab-pane .row > .col,
  #grid-baby > .col,
  #grid-family > .col,
  #grid-beauty > .col,
  #grid-kyyeu > .col {
    flex: 0 0 20% !important;
    width: 20% !important;
    max-width: 20% !important;
    padding: 0 0.5rem 1rem 0.5rem !important;
    margin: 0 !important;
  }
  .tab-pane .col.concept-item {
    position: relative !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    min-height: auto !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    display: block !important;
  }
  .tab-pane .col.concept-item .concept-cover {
    position: relative !important;
    cursor: pointer !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    width: 100% !important;
    padding-bottom: 100% !important;
    height: 0 !important;
    margin: 0 !important;
    pointer-events: auto !important;
    display: block !important;
  }
  .tab-pane .col.concept-item .concept-cover:hover {
    transform: translateY(-5px) !important;
  }
  .tab-pane .col.concept-item .concept-cover img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0 !important;
  }
  .tab-pane .col.concept-item .concept-cover::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 50% !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    display: block !important;
    border-radius: 0 0 12px 12px !important;
  }
  .tab-pane .col.concept-item > .concept-info {
    position: absolute !important;
    bottom: 35px !important;
    left: 12px !important;
    right: 12px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    pointer-events: none !important;
    z-index: 10 !important;
    width: auto !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
  }
  .tab-pane .col.concept-item > .concept-info .concept-name {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    text-align: left !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .tab-pane .col.concept-item > .concept-info .concept-views {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .tab-pane .col.concept-item > .concept-info .concept-views::before {
    content: "👁" !important;
    font-size: 14px !important;
    filter: grayscale(100%) brightness(200%) !important;
    display: inline !important;
  }
  .tab-pane .col.concept-item .concept-cover .concept-info {
    display: none !important;
  }
}

/* Gallery item wrapper */
.gallery-item-wrapper {
  margin: 8px !important;
  padding: 0 !important;
  break-inside: avoid !important;
}

.gallery-item-wrapper img {
  border-radius: 8px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.gallery-item-wrapper:hover img {
  transform: scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

#flickrJustifiedGallery {
  column-count: 2 !important;
  column-gap: 16px !important;
  padding: 16px !important;
}

@media (min-width: 576px) {
  #flickrJustifiedGallery { column-count: 3 !important; }
}

@media (min-width: 768px) {
  #flickrJustifiedGallery { column-count: 4 !important; }
}

@media (min-width: 992px) {
  #flickrJustifiedGallery { column-count: 5 !important; }
}

/* Floating Contact */
.floating-contact {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  z-index: 9999;
  border-radius: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.floating-contact img {
  width: 22px;
  height: 22px;
}

.floating-contact span {
  width: 50px;
  height: 50px;
  line-height: 50px;
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  position: absolute;
  left: 50%;
  margin-left: -25px;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
  color: white;
  font-size: 11px;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
}

.floating-contact nav { font-size: 0; }

.floating-contact a {
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  display: inline-block;
  background-color: #ffffff;
  color: #ffffff;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  margin: 0 -14px;
  box-shadow: 3px 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.floating-contact.expanded span {
  opacity: 0;
  pointer-events: none;
}

.floating-contact.expanded a {
  border-radius: 50%;
  margin: 0 7px;
  color: #667eea;
  font-size: 22px;
  opacity: 1;
  pointer-events: auto;
}

.floating-contact a:nth-child(1) {
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  margin-left: 0;
}

.floating-contact a:nth-child(1):hover { background-color: #1877f2; }
.floating-contact a:nth-child(2):hover { background-color: #00b2ff; }

.floating-contact a:nth-child(3) {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  margin-right: 0;
}

.floating-contact a:nth-child(3):hover { background-color: #0068ff; }
.floating-contact a:nth-child(4):hover { background-color: #25d366; }

.floating-contact:hover a:hover {
  color: #fff;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .floating-contact {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
  }
  .floating-contact span,
  .floating-contact a {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
  .floating-contact span {
    cursor: pointer;
    pointer-events: auto;
    margin-left: -20px;
    font-size: 9px;
  }
  .floating-contact a {
    pointer-events: none;
    margin: 0 -11px;
  }
  .floating-contact.expanded a {
    pointer-events: auto;
    margin: 0 5.5px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .floating-contact {
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
  }
  .floating-contact span,
  .floating-contact a {
    width: 35px;
    height: 35px;
    line-height: 35px;
  }
  .floating-contact span {
    cursor: pointer;
    pointer-events: auto;
    margin-left: -17.5px;
    font-size: 8px;
  }
  .floating-contact a {
    pointer-events: none;
    margin: 0 -10px;
  }
  .floating-contact.expanded a {
    pointer-events: auto;
    margin: 0 5px;
    font-size: 16px;
  }
}
