/* Fake OS Bar Styles */
.os-bar {
  background-color: #2d2d2d;
  color: #ffffff;
  height: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 0 10px;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.os-bar-left, .os-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.os-bar-right {
  display: flex;
  align-items: center;
}

.os-logo {
  margin-right: 5px;
}

.os-app-name {
  font-weight: bold;
}

.os-menu-item {
  opacity: 0.85;
  cursor: default;
}

.os-menu-item:hover {
  opacity: 1;
}

.os-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

article {
  align-items: center;
}

.input-group .form-control {
  border-radius: 24px;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.input-group .form-control:focus {
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  border-color: #ddd;
}

.btn-light {
  padding: 8px 16px;
  border: 1px solid #f8f9fa;
}

.btn-light:hover {
  border: 1px solid #dadce0;
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
}

.search-result {
  padding: 8px 0;
}

header .btn {
  border: 1px solid #c2c2c3;
}

.search-result .title {
  cursor: pointer;
}

.search-result .title:hover {
  text-decoration: underline;
}

.search-result .url {
  font-size: 14px;
}

.search-result .description {
  font-size: 14px;
  line-height: 1.5;
}

/* When showing results, adjust article height */
article.has-results {
  height: auto;
  align-items: flex-start;
  padding-bottom: 2rem;
}

.result-item {
  cursor: pointer;
  padding: 8px 0;
}

.result-item:hover .result-title {
  text-decoration: underline;
}

.loading-animation {
  text-align: center;
  padding: 40px 0;
}

.loading-animation .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 4px;
  border-radius: 50%;
  background-color: #4285f4;
  animation: bounce 1.4s infinite ease-in-out both;
}

.loading-animation .dot:nth-child(1) { animation-delay: -0.32s; }
loading-animation .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { 
    transform: scale(0);
  } 
  40% { 
    transform: scale(1.0);
  }
}

.url-container {
  display: flex;
  align-items: center;
  gap: 4px;
}

.url-container .bi-lock-fill {
  font-size: 12px;
}

header {
  padding: 0.375rem !important;  /* 25% smaller than 0.5rem */
  position: absolute;
  z-index: 1000;
  width: 100%;
}

header .btn {
  padding: 0.375rem 0.75rem;  /* 25% smaller padding */
  font-size: 0.875rem;  /* 25% smaller font size */
}

header .form-control {
  height: calc(1.5em + 0.75rem + 2px);  /* 25% smaller input height */
  font-size: 0.875rem;  /* 25% smaller font size */
}

header .bi {
  font-size: 0.875rem;  /* 25% smaller icons */
}

.webmail-login {
  background-color: #f8f9fa;
  min-height: calc(100vh - 42px - 24px); /* Adjusted for OS bar height */
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.webmail-login .card {
  border: none;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.webmail-login .input-group-text {
  background-color: transparent;
  border-right: none;
}

.webmail-login .form-control {
  border-left: none;
}

.webmail-login .form-control:focus {
  box-shadow: none;
  border-color: #ced4da;
}

.webmail-login .btn-primary {
  padding: 0.75rem;
}

.webmail-interface {
  background-color: #f8f9fa;
  min-height: calc(100vh - 42px - 24px); /* Adjusted for OS bar height */
  display: flex;
  align-items: flex-start;
  padding: 1rem;
}

.webmail-interface .bg-light {
  border-right: 1px solid #e9ecef;
}

.webmail-interface .btn-danger {
  background-color: #d93025;
  border-color: #d93025;
}

.webmail-interface .btn-danger:hover {
  background-color: #c5221f;
  border-color: #c5221f;
}

.webmail-interface .card {
  width: 100%;
  border: none;
  border-radius: 0;
}

.webmail-interface .card-header {
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
}

.webmail-interface .list-group-item {
  border: none;
  border-bottom: 1px solid #e9ecef;
}

.webmail-interface .list-group-item:last-child {
  border-bottom: none;
}

.webmail-interface .btn-outline-secondary {
  border-color: #ced4da;
}

.webmail-interface .btn-outline-secondary:hover {
  background-color: #e9ecef;
}

.webmail-interface .input-group .form-control {
  border-radius: 0;
}

.webmail-interface .input-group .btn-outline-secondary {
  border-radius: 0;
}

.new-message {
  background-color: #e9f7fe;
  font-weight: bold;
}

.full-message {
  margin-top: 10px;
  padding: 10px;
  background-color: #f1f1f1;
  border-radius: 5px;
}

.full-message .action-icons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.full-message .action-icons .icon {
  cursor: pointer;
  font-size: 16px;
  color: #6c757d;
}

.full-message .action-icons .icon:hover {
  color: #495057;
}

.download-section {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  margin-top: 15px;
}

.progress {
  height: 6px;
  border-radius: 3px;
}

.download-actions {
  display: flex;
  gap: 10px;
}

.alert {
  font-size: 0.875rem;
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}

/* New message visibility and animations */
.message-hidden {
  display: none;
}

.message-fade-in {
  animation: fadeIn 0.5s ease-in;
}

.refresh-spin {
  animation: spin 1s linear;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.list-group-flush {
  position: relative;
}

.refresh-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 249, 250, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.refresh-overlay.active {
  opacity: 1;
  visibility: visible;
}

.login-success {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: #28a745;
  color: white;
  text-align: center;
  font-size: 18px;
  padding: 1.4rem 2rem;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.login-success.show {
  transform: translateY(0);
}

.login-success i {
  margin-right: 0.5rem;
}

/* Guest Book Styles */
.guestbook-screen {
  background-color: #f8f9fa;
  min-height: calc(100vh - 42px - 24px); /* Adjusted for OS bar height */
  padding: 2rem 0;
}

.rating-stars {
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
  display: inline-block;
}

.rating-stars .rating-star {
  margin-right: 5px;
  transition: color 0.2s;
}

.rating-star.hovered,
.rating-star.selected {
  color: #ffc107;
}

.review-item {
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 0;
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 0.5rem;
}

.review-stars {
  color: #ffc107;
  font-size: 0.9rem;
}

.review-date {
  font-size: 0.8rem;
  color: #6c757d;
}

.review-content {
  font-size: 0.95rem;
}

.review-submit-success {
  display: none;
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  animation: fadeInOut 4s ease-in-out;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

/* Add a little separation between stars */
.rating-star {
  margin-right: 5px;
}

/* Reviews section toggle */
.reviews-header {
  margin-bottom: 1rem;
}

.reviews-header .btn-link {
  text-decoration: none;
  color: #212529;
}

.reviews-header .btn-link:hover {
  color: #0056b3;
}

.reviews-toggle-icon {
  transition: transform 0.3s ease;
}

.reviews-toggle-icon.rotated {
  transform: rotate(180deg);
}

.reviews-container {
  transition: max-height 0.3s ease;
  overflow: hidden;
}

/* Rating alert styles */
.rating-alert {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  margin-top: 0.25rem;
}

/* Auto-typing toggle adjustments */
.custom-control.custom-switch {
  min-height: 1.5rem;
}

.guestbook-screen .form-group label {
  margin-bottom: 0.5rem;
}

/* Auto-resizing textarea styles */
textarea.form-control {
  transition: height 0.1s ease;
  overflow-y: hidden; /* Hide the scrollbar */
}

/* Add a small bottom padding for better text visibility */
#review-text {
  padding-bottom: 8px;
}

/* Desktop Screen Styles */
.desktop-screen {
  background-image: url('../img/wallpaper.jpg');
  background-size: cover;
  background-position: center;
  min-height: calc(100vh - 24px); /* Full height minus OS bar */
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Desktop Icons - Positioned firmly on the left */
.desktop-icons {
  padding: 20px;
  display: grid;
  grid-template-columns: 80px;
  grid-gap: 10px;
  align-content: start;
  justify-content: start;
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
}

.desktop-icon {
  width: 80px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.desktop-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.desktop-icon .icon-image {
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.desktop-icon .icon-image i {
  font-size: 24px;
  color: white;
}

.desktop-icon .icon-label {
  color: white;
  font-size: 12px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Taskbar */
.taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background-color: rgba(45, 45, 45, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 0 15px;
  color: white;
  z-index: 100;
}

.start-button {
  display: flex;
  align-items: center;
  padding: 0 15px;
  height: 34px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  margin-right: 20px;
  cursor: pointer;
  font-weight: bold;
}

.start-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.start-button i {
  margin-right: 5px;
}

.taskbar-apps {
  display: flex;
  gap: 10px;
}

.taskbar-app {
  width: 34px;
  height: 34px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.taskbar-app:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.taskbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.taskbar-time {
  font-size: 14px;
}

/* Remote Connection Notification */
.remote-notification {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.remote-notification.show {
  opacity: 1;
  visibility: visible;
}

.notification-content,
.connection-content {
  background-color: #333;
  color: white;
  width: 500px;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.notification-header,
.connection-header {
  background-color: #222;
  padding: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #444;
}

.notification-header i,
.connection-header i {
  margin-right: 10px;
  color: #ff5555;
}

.notification-body,
.connection-body {
  padding: 20px;
  font-size: 16px;
  line-height: 1.5;
}

.notification-footer {
  padding: 15px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
  border-top: 1px solid #444;
}

.connection-target {
  color: #77dd77;
  margin: 15px 0;
  font-family: monospace;
  font-size: 14px;
}

.progress-container {
  height: 10px;
  background-color: #444;
  border-radius: 5px;
  margin: 20px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #77dd77;
  width: 0%;
  transition: width 0.1s linear;
}

.connection-status {
  font-size: 14px;
  color: #aaa;
}

.remote-notification.success .progress-bar {
  background-color: #77dd77;
}

/* Social Media Gallery Screen Styles */
.social-gallery-screen {
  background-color: #f0f2f5;
  min-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.social-header {
  height: 56px;
  background-color: #ffffff;
  border-bottom: 1px solid #dddfe2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Social Logo */
.social-logo {
  display: flex;
  align-items: center;
  font-size: 1.7rem;
  font-weight: bold;
  color: #3b5998;
}

.social-logo i {
  margin-right: 10px;
}

/* Profile Banner */
.profile-banner {
  background: rgb(238,174,202);
background: linear-gradient(90deg, rgba(238,174,202,1) 0%, rgba(148,187,233,1) 100%);
  border-bottom: 1px solid #dddfe2;
  padding: 20px 0;
  width: 100%;
  max-width: 1200px; /* Match header and content width */
  margin: 0 auto; /* Center align */
  box-sizing: border-box; /* Include padding in width */
}

.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.profile-info {
  flex: 1;
  min-width: 300px;
  padding-left: 0;
}

.profile-name {
  font-size: 32px;
  font-weight: bold;
  margin: 0 0 8px 0;
  color: #1a1a1a;
  line-height: 1.2;
}

.profile-subtitle {
  color: #65676b;
  margin: 0 0 15px 0;
  font-size: 16px;
}

.profile-subtitle-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.profile-stats {
  display: flex;
  gap: 16px;
  font-size: 0.875rem; /* Make stats smaller */
  color: #65676b;
}

.profile-stats .stat {
  display: flex;
  align-items: center;
  gap: 8px; /* Add spacing for icons */
}

.profile-stats .stat i {
  font-size: 1rem; /* Icon size */
  color: #1877f2; /* Icon color */
}

.profile-actions {
  display: flex;
  gap: 12px;
}

.profile-actions .btn {
  font-size: 0.875rem;
  padding: 6px 12px;
}

/* Profile Banner End */

/* Ensure social container has proper constraints */
.social-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.social-search {
  width: 300px;
}

.social-search .input-group {
  background-color: #f0f2f5;
  border-radius: 50px;
  overflow: hidden;
}

.social-search .input-group-text {
  background-color: #f0f2f5;
  border: none;
}

.social-search .form-control {
  background-color: #f0f2f5;
  border: none;
  box-shadow: none;
}

.social-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.social-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.social-sidebar {
  width: 240px;
  background-color: #ffffff;
  padding: 16px 8px;
  border-right: 1px solid #dddfe2;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sidebar-item:hover {
  background-color: #f0f2f5;
}

.sidebar-item.active {
  background-color: #e7f3ff;
  color: #1877f2;
}

.sidebar-item i {
  margin-right: 12px;
  font-size: 1.25rem;
}

.social-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.gallery-actions {
  display: flex;
  gap: 8px;
}

/* Social Media Gallery Post Styles - Fixed header visibility */
.post-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #ffffff;
  border-bottom: 1px solid #f0f2f5;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 1px solid #dddfe2;
}

.post-info {
  flex: 1;
}

.post-user {
  font-weight: bold;
  font-size: 14px;
  color: #050505;
}

.post-date {
  color: #65676b;
  font-size: 12px;
}

.post-options {
  color: #65676b;
  cursor: pointer;
  padding: 4px;
}

.post-options:hover {
  background-color: #f0f2f5;
  border-radius: 50%;
}

/* Make sure gallery post has proper structure and visibility */
.gallery-post {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 16px;
  max-width: 600px;
  width: 100%;
}

.gallery-grid {
  margin: 0; /* Remove any outer margin */
  padding: 0 16px; /* Add padding to align with the container */
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  transition: transform 0.2s;
  position: relative;
  padding: 0px;
width: 45%;
margin: 10px;
float: left;}

.gallery-item img {
  display: block;
  width: 100%; /* Ensure the image spans the full width */
  height: auto;
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: #65676b;
  background-color: #f8f9fa;
  border-top: 1px solid #ddd;
}

.gallery-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gallery-meta i {
  color: #1877f2;
}

/* Ensure post caption is visible */
.post-caption {
  padding: 12px 16px;
  font-size: 14px;
  color: #050505;
  border-bottom: 1px solid #f0f2f5;
}

.gallery-grid {
  margin: 0 auto;
}

.gallery-post {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.gallery-grid .gallery-post img {
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* Ensure fallback images are displayed correctly */
.gallery-grid .gallery-post img[src*="fallback"] {
  border: 1px solid #ddd;
  background-color: #f9f9f9;
}

.post-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}

.post-info {
  flex: 1;
}

.post-user {
  font-weight: bold;
  font-size: 14px;
}

.post-date {
  color: #65676b;
  font-size: 12px;
}

.post-options {
  color: #65676b;
  cursor: pointer;
  padding: 4px;
}

.post-caption {
  padding: 0 16px 12px;
  font-size: 14px;
}

.post-image {
  width: 100%;
  cursor: pointer;
}

.post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-actions {
  display: flex;
  padding: 8px 16px;
  border-top: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
}

.post-action {
  display: flex;
  align-items: center;
  margin-right: 24px;
  padding: 8px 0;
  color: #65676b;
  font-size: 14px;
  cursor: pointer;
}

.post-action:hover {
  color: #1877f2;
}

.post-action i {
  margin-right: 6px;
  font-size: 16px;
}

.post-action-right {
  margin-left: auto;
  margin-right: 0;
}

.post-action-right:first-of-type {
  margin-right: 24px;
}

.post-comments {
  padding: 12px 16px;
}

.comment-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.view-all {
  color: #65676b;
  text-decoration: none;
  font-size: 12px;
}

.view-all:hover {
  text-decoration: underline;
}

.text-danger {
  color: #e41e3f !important;
}

/* Media query to adjust gallery layout on smaller screens */
@media (max-width: 768px) {
  .gallery-grid {
    width: 100%;
  }
  
  .post-actions {
    padding: 8px 12px;
  }
  
  .post-action {
    margin-right: 16px;
  }
  
  .post-header {
    padding: 10px 12px;
  }
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-image {
  height: 180px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-image:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 12px;
  font-size: 0.9rem;
  color: #333;
}

/* Image Overlay Styles */
.image-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0.3s;
}

.image-overlay.d-none {
  opacity: 0;
  visibility: hidden;
}

#overlay-image {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  transition: transform 0.3s ease-in-out;
}

.overlay-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 1001;
}

.overlay-close,
.overlay-prev,
.overlay-next {
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.overlay-close:hover,
.overlay-prev:hover,
.overlay-next:hover {
  opacity: 1;
}

.overlay-prev {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.overlay-next {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.overlay-caption {
  color: white;
  padding: 16px;
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
}

.image-overlay.d-none {
  opacity: 0;
  visibility: hidden;
}

.overlay-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  z-index: 1001;
}

.overlay-close,
.overlay-prev,
.overlay-next {
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.overlay-close:hover,
.overlay-prev:hover,
.overlay-next:hover {
  opacity: 1;
}

.overlay-prev {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.overlay-next {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.overlay-caption {
  color: white;
  padding: 16px;
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;


.action-card {
  width: 100%;
}
