/* Comment Section Styles */
.comment-section {
  margin-top: 3rem;
}

/* Comment Display Styles */
.comment {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

.comment::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #b19777, #d4c4a8);
  border-radius: 12px 0 0 12px;
}

.comment__rating {
  margin-bottom: 1.5rem;
}

.comment__body {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: #2c3e50;
  font-size: 1.05rem;
}

.comment__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #7f8c8d;
  border-top: 1px solid #ecf0f1;
  padding-top: 1rem;
}

.comment__author {
  font-weight: 700;
  color: #b19777;
  font-size: 1rem;
}

.comment__time {
  font-style: italic;
  color: #95a5a6;
}

/* Comment Form Container */
.comment-section form {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.comment-section form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #b19777, #d4c4a8, #b19777);
}

/* Form Group Styles */
.comment-form__name,
.comment-form__rating,
.comment-form__body {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #2c3e50;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-label.required::after,
.form-item-name label::after,
.form-item-comment-body-0-value label::after {
  content: " *";
  color: #e74c3c;
  font-weight: bold;
}

/* Input Field Styling */
/* .comment-section input[type="text"],
.comment-section textarea,
.comment-section .form-text,
.comment-section .form-textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 2px solid #ecf0f1;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  color: #2c3e50;
}

.comment-section input[type="text"]:focus,
.comment-section textarea:focus,
.comment-section .form-text:focus,
.comment-section .form-textarea:focus {
  border-color: #b19777;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(177, 151, 119, 0.1);
  background-color: #ffffff;
  transform: translateY(-1px);
} */

.comment-section textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}


.rating-label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #2c3e50;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rating-label::after {
  content: " *";
  color: #e74c3c;
  font-weight: bold;
}

/* Unified Star Rating Styles */
.unified-star-rating {
  display: flex !important;
  gap: 0.5rem;
  margin-top: 0;
  padding: 1rem 0;
  justify-content: flex-start;
  visibility: visible !important;
}
#edit-comment-body-0-format-help-about,
a[href="#edit-comment-body-0-format-help-about"],
div[data-drupal-format-id="plain_text"] {
  display: none !important;
}

.unified-star-rating .star {
  font-size: 2.2rem;
  color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.unified-star-rating .star:hover,
.unified-star-rating .star.hover {
  color: #ffc107;
  transform: scale(1.1);
  text-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.unified-star-rating .star.active {
  color: #ffc107;
  text-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

/* Hide original fieldset and radio buttons */
.comment-section fieldset[data-drupal-selector="edit-field-rating"] {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
}

.comment-section fieldset[data-drupal-selector="edit-field-rating"] legend {
  display: none;
}

.comment-section .form-item-field-rating,
.comment-section .form-item-field-rating .form-radios,
.comment-section .js-form-item.form-item.js-form-type-radio {
  display: none !important;
}

/* Old star rating container - hide it */
.star-rating-container {
  display: none !important;
}

/* Comment Rating Display */
.comment__rating .field__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment__rating .fivestar-stars {
  display: flex;
  gap: 0.2rem;
}

/* Rating Stars Display for existing comments */
.rating-stars-display {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}

.rating-stars-display .star-display {
  font-size: 1.4rem;
  color: #ddd;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rating-stars-display .star-display.active {
  color: #ffc107;
  text-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.comment__rating .star {
  color: #ffc107;
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.comment__rating .star.empty {
  color: #ddd;
  text-shadow: none;
}

/* Form Actions */
.form-actions {
  margin-top: 2.5rem;
  text-align: center;
}

.form-actions .button,
.form-actions .btn,
.form-actions input[type="submit"] {
  background: linear-gradient(135deg, #b19777, #d4c4a8);
  color: white;
  border: none;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(177, 151, 119, 0.3);
}

.form-actions .button:hover,
.form-actions .btn:hover,
.form-actions input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(177, 151, 119, 0.4);
  background: linear-gradient(135deg, #a08660, #c7b599);
}

.form-actions .button:active,
.form-actions .btn:active,
.form-actions input[type="submit"]:active {
  transform: translateY(0);
}

/* Hide unwanted elements */
.comment .permalink,
.comment .indented,
.comment-form .description,
.comment-form .form-item-mail,
.comment-form .form-item-homepage,
.comment-form .filter-wrapper,
.comment-form .text-format-wrapper,
.filter-help,
.filter-guidelines {
  display: none !important;
}

/* Form Item Styling */
.comment-section .form-item {
  margin-bottom: 20px;
}

.comment-section .form-item label {
  margin: 10px 0;
}

/* Success Message Styling */
.comment-section .messages {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.comment-section .messages--status {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
}

/* Error Message Styling */
.comment-section .messages--error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
  .comment {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .comment-section form {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }

  .comment__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .star-rating-container .star {
    font-size: 2rem;
  }

  .form-actions .button,
  .form-actions .btn,
  .form-actions input[type="submit"] {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .comment-section form {
    padding: 1.5rem 1rem;
  }

  .star-rating-container {
    justify-content: center;
  }
}
.js-ajax-comments-messages {
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  padding: 2.5rem;
  background: #ffffff;
}
.js-ajax-comments-messages div[role="alert"] ul li {
    border-width: thick;
    display: flex;
    margin-bottom: 10px;
    text-decoration: underline;
    -webkit-text-decoration-color: #721c24;
            text-decoration-color: #721c24;
    -webkit-text-decoration-style: double;
            text-decoration-style: double;
}

/* Hide AJAX Throbber */
.ajax-progress-throbber {
  display: none !important;
}

.ajax-progress {
  display: none !important;
}

/* Comments Toggle Styles */
.comments-toggle {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  transition: all 0.3s ease;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.comments-toggle:hover {
  background: #f5f3f0;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(177, 151, 119, 0.15);
}

.comments-toggle h3 {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b19777;
  font-weight: 600;
  margin-bottom: 0 !important;
}

.comments-toggle h3 i.fa-comments {
  margin-right: 0.5rem;
  color: #b19777;
}

.toggle-icon {
  transition: transform 0.3s ease;
  color: #b19777;
}

.toggle-icon i {
  color: #b19777;
}

.comments-content {
  transition: all 0.3s ease;
}

/* Portfolio Grid Gallery */
.portfolio-grid-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 10px 0;
  width: 100%;
  justify-items: center;
}

/* Center single item in last row if odd number of items */
.portfolio-grid-gallery .gallery-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 60%;
}

.portfolio-grid-gallery .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: #fff;
}

.portfolio-grid-gallery .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-grid-gallery .lightbox-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.portfolio-grid-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-grid-gallery .gallery-item:hover img {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .portfolio-grid-gallery {
    gap: 12px;
  }

  .portfolio-grid-gallery .gallery-item:last-child:nth-child(odd) {
    max-width: 70%;
  }
}

@media (max-width: 480px) {
  .portfolio-grid-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Reset centering on mobile - single column */
  .portfolio-grid-gallery .gallery-item:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: 100%;
  }
}

.portfolio-lightbox-gallery .lightbox-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-lightbox-gallery .lightbox-item:hover .overlay {
  opacity: 1;
}

.portfolio-lightbox-gallery .lightbox-item .overlay i {
  color: white;
  font-size: 2rem;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.portfolio-lightbox-gallery .lightbox-item:hover .overlay i {
  transform: scale(1);
}

/* Custom Lightbox Styles */
.custom-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  -webkit-animation: fadeIn 0.3s ease;
          animation: fadeIn 0.3s ease;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  text-align: center;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-title {
  color: white;
  font-size: 1.2rem;
  margin-top: 1rem;
  font-weight: 600;
}

.lightbox-counter {
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-close {
  top: -60px;
  right: -60px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
}

@-webkit-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive lightbox */
@media (max-width: 768px) {
  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .lightbox-prev {
    left: 10px;
    bottom: 10px;
    top: auto;
    transform: none;
  }

  .lightbox-next {
    right: 10px;
    bottom: 10px;
    top: auto;
    transform: none;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next {
    font-size: 1.5rem;
    padding: 0.75rem;
    width: 45px;
    height: 45px;
  }
}

/* Homepage Categories Layout Fix - Reduce height when there are 6 categories */
.portfolio.full-bg .cluom:nth-child(n+4) {
  height: 45vh !important;
}

/* For mobile, further reduce height */
@media (max-width: 768px) {
  .portfolio.full-bg .cluom:nth-child(n+4) {
    height: 30vh !important;
  }
}

@media (max-width: 480px) {
  .portfolio.full-bg .cluom {
    height: 25vh !important;
  }
}
