/* Starsign Grid Shortcode */
.starsign-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 2em auto;
	max-width: 1200px !important;
}

.starsign-card {
    /*background: #fff;*/
    /*border-radius: 8px;*/
    /*padding: 1em;*/
    /*box-shadow: 0 2px 6px rgba(0,0,0,0.1);*/
    /*transition: transform 0.3s ease, box-shadow 0.3s ease;*/
    text-align: center;
}

.starsign-card:hover {
    /*transform: translateY(-5px);*/
    /*box-shadow: 0 6px 12px rgba(0,0,0,0.15);*/
}

.starsign-card img {
    max-width: 100%;
    height: auto;
    /*border-radius: 6px;*/
    margin-bottom: 0.5em;
	filter: grayscale(100%);
}

.starsign-card img:hover {
/*filter: invert(8%) sepia(74%) saturate(2974%) hue-rotate(284deg) brightness(91%) contrast(93%)*/;
transform: scale(1.2,1.2);
filter: none;
}

.starsign-card h3 {
    font-size: 3em;
    margin: 0.5em 0 0;
    color: #4a154b;
}

.starsign-grid p {
text-align:left;
}

.starsign-card h3 a {
    text-decoration: none;
    color: inherit;
}

.starsign-card p.starsign-date {
    font-size: 2em;
    color: #333;
	margin-top:0;
	text-align:center;
}

/* Responsive */
@media (max-width: 1024px) {
    .starsign-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 990px) {
  .starsign-card h3 {
  font-size: 2.5em;
  }
  }

@media (max-width: 768px) {
    .starsign-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 550px) {
    .starsign-grid {
        grid-template-columns: repeat(2,2fr);
    }
}

@media (max-width: 480px) {
    .starsign-grid {
        grid-template-columns: 1fr;
    }
	
	.starsign-card img:hover {
	transform:none;
	}
}

/* Main container for the grid and details */
.starsign-container {
    display: flex;
    gap: 5%;
	width:100%;
	max-width:1200px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Left column containing the grid */
.starsign-left {
    flex: 1 1 55%; /* Adjust basis/grow/shrink as needed */
}

/* Right column for details */
.starsign-right {
    flex: 1 1 40%; /* Adjust basis/grow/shrink as needed */
    padding: 1em;
    /*border: 1px solid #ddd;
    border-radius: 8px;*/
    min-height: 200px;
    box-sizing: border-box; /* Ensure padding is included in width */
}

h3#starsign-detail-title {
margin-bottom:0;
font-size:3.5em;
text-align:left;
}

#starsign-detail-date {
text-align:left;
margin-top:0;
}

#starsign-detail-horoscope {
    margin-top: 1em;
	line-height:150%;
    /*font-style: italic;*/
    color: #333;
}

#starsign-detail-content p,
#starsign-detail-horoscope p,
p.starsign-link {
text-align:left;
}

.starsign-detail-view-link {
    display: inline-block; /* Initially hidden by JS */
    margin-top: 1em;
    color: #ffffff;
	background-color:#e62000;
    font-weight: bold;
    text-decoration: none;
    display: none; /* Hide by default, shown by JS */
}

a.starsign-detail-view-link i {
  font-size: 20px;
  margin-right: 5px;
  font-weight: 300;
}

.starsign-detail-view-link:hover {
    text-decoration: underline;
}

/* Responsive: stack columns on small screens */
@media (max-width: 768px) {
    .starsign-container {
        flex-direction: column;
        flex-wrap: wrap;
    }
    .starsign-left,
    .starsign-right {
        flex: 1 1 100%;
        width: 100%; /* Stack full width */
    }
	
	
	p.starsign-link:has(.button) {
	text-align:center;
	}
}

/* Make entire grid item clickable with pointer cursor */
.starsign-card {
    cursor: pointer;
}

/* Style for the selected card */
.starsign-card.selected {
    /*border: 2px solid #4a154b;*/
    /*box-shadow: 0 8px 16px rgba(0,0,0,0.2);*/
    /*transform: translateY(-2px);*/
	
}

.starsign-card.selected img{
filter: none;
}
.starsign-extra-details,
#starsign-detail-content {
display:none;
}

.starsign-extra-details p{
text-align:left;
text-transform:uppercase;
font-size: 1.8em;
}

.starsign-extra-details p strong{
color:#4a154b;
}

h3#starsign-detail-horoscope-title {
text-align:left;
font-size:2.4em;
}

.page-template-page-horoscopes .starsign-extra-details,
.page-template-page-horoscopes #starsign-detail-content {
display:none;
}